aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-03-20 17:39:04 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-03-20 17:39:04 +0000
commit4bf27aa9bace1519a934017fe12cdc5a60da43ad (patch)
tree3cea6d3f2c940308e8ac7e9da773b05ef9a76c08 /ld/ldlang.c
parent8c21ca2102f56852e43af8cb94a53f060a761e96 (diff)
downloadgdb-4bf27aa9bace1519a934017fe12cdc5a60da43ad.zip
gdb-4bf27aa9bace1519a934017fe12cdc5a60da43ad.tar.gz
gdb-4bf27aa9bace1519a934017fe12cdc5a60da43ad.tar.bz2
ld/
2009-03-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/9970 * ldlang.c (lang_end): Warn missing entry symbol for -pie. ld/testsuite/ 2009-03-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/9970 * ld-pie/pie.exp: Use -fpie to compile. Run *.d tests. * ld-pie/start.d: New. * ld-pie/start.s: Likewise.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9f62e9f..55d1043 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -5417,7 +5417,7 @@ lang_end (void)
bfd_boolean warn;
if ((link_info.relocatable && !link_info.gc_sections)
- || link_info.shared)
+ || (link_info.shared && !link_info.executable))
warn = entry_from_cmdline;
else
warn = TRUE;