From 4ef24a2e9db7de18d20bd29ee5cce01ac72344de Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 6 May 2005 15:40:24 +0000 Subject: [PATCH] 2005-05-06 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms): Just check link_info.executable. --- ld/ChangeLog | 5 +++++ ld/emultempl/elf32.em | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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", -- 2.30.2