summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-01-10 14:28:49 +0000
committerNick Clifton <nickc@redhat.com>2008-01-10 14:28:49 +0000
commit2a49effe023201da30cc1452d00c65dd19323be7 (patch)
treeb2db2546403193c71fe6789b810e92cab23da396
parent28f68b4ed0cbe9fd1741d7878e337d6b4cf707c0 (diff)
downloadbinutils-redhat-2a49effe023201da30cc1452d00c65dd19323be7.tar.gz
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.
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/ldlang.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 359624ed34..9ef8fb7c4f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
+
+ 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 <amodra@bigpond.net.au>
* ld.texinfo (--gc-sections): Describe linker behaviour.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index faeae3adc6..9d3c513d54 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;