From baf6e97fe34d64813e70c232c69127c5ad031ace Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 10 May 2005 01:07:30 +0000 Subject: [PATCH] 2005-05-09 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): Don't use a removed section. --- ld/ChangeLog | 5 +++++ ld/emultempl/elf32.em | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 9da68d5dd01..646ab625551 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-05-09 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): + Don't use a removed section. + 2005-05-09 H.J. Lu * ldmain.c (reloc_overflow): Use output_bfd if the symbol diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 69b5c2623d7..3705c251e8b 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1454,6 +1454,8 @@ gld${EMULATION_NAME}_provide_bound_symbols (const char *sec, const char *end) { asection *s = bfd_get_section_by_name (output_bfd, sec); + if (s && bfd_section_removed_from_list (output_bfd, s)) + s = NULL; _bfd_elf_provide_section_bound_symbols (&link_info, s, start, end); } -- 2.30.2