From 71934f948a5d511b0d9f2fc0dd3dedca4cc9b84b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 10 Jan 2008 14:28:49 +0000 Subject: [PATCH] PR ld/5533 * ldlang.c (lang_end): Issue a warning for a missing start symbol of a shared library if the symbol was specified on the command line. --- ld/ChangeLog | 7 +++++++ ld/ldlang.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 359624ed346..9ef8fb7c4f6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2008-01-10 Daniel Jacobowitz + + PR ld/5533 + * ldlang.c (lang_end): Issue a warning for a missing start symbol + of a shared library if the symbol was specified on the command + line. + 2008-01-10 Alan Modra * ld.texinfo (--gc-sections): Describe linker behaviour. diff --git a/ld/ldlang.c b/ld/ldlang.c index faeae3adc63..9d3c513d54b 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -5078,7 +5078,7 @@ lang_end (void) bfd_boolean warn; if (link_info.relocatable || link_info.shared) - warn = FALSE; + warn = entry_from_cmdline; else warn = TRUE; -- 2.30.2