aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-06 15:40:24 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-06 15:40:24 +0000
commit4ef24a2e9db7de18d20bd29ee5cce01ac72344de (patch)
tree4e873f2842603722ac09b0e27f21a025d7f78f61 /ld/emultempl
parent93a9f99109e969599ee1f6bca17f6b67ffbe7abf (diff)
downloadgdb-4ef24a2e9db7de18d20bd29ee5cce01ac72344de.zip
gdb-4ef24a2e9db7de18d20bd29ee5cce01ac72344de.tar.gz
gdb-4ef24a2e9db7de18d20bd29ee5cce01ac72344de.tar.bz2
2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms): Just check link_info.executable.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index fb6efb1..474efb6 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1475,7 +1475,7 @@ gld${EMULATION_NAME}_provide_bound_symbols (const char *sec,
static void
gld${EMULATION_NAME}_provide_init_fini_syms (void)
{
- if (!link_info.relocatable && !link_info.shared)
+ if (link_info.executable)
{
gld${EMULATION_NAME}_provide_bound_symbols (".preinit_array",
"__preinit_array_start",