From: H.J. Lu Date: Fri, 6 May 2005 15:40:24 +0000 (+0000) Subject: 2005-05-06 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ef24a2e9db7de18d20bd29ee5cce01ac72344de;p=binutils-gdb.git 2005-05-06 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms): Just check link_info.executable. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index f1056030a25..1e9042b8a52 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-05-06 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms): + Just check link_info.executable. + 2005-05-06 Nick Clifton * Update the address and phone number of the FSF organization in diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index fb6efb17a74..474efb6b515 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",