aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-10 01:07:30 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-10 01:07:30 +0000
commitbaf6e97fe34d64813e70c232c69127c5ad031ace (patch)
treee774e5c9d944131bc5cbe30643bcd6f55cf7d959 /ld/emultempl
parenta6e1b90f78109a93688a5935ab3efc0d8b49e0e3 (diff)
downloadfsf-binutils-gdb-baf6e97fe34d64813e70c232c69127c5ad031ace.zip
fsf-binutils-gdb-baf6e97fe34d64813e70c232c69127c5ad031ace.tar.gz
fsf-binutils-gdb-baf6e97fe34d64813e70c232c69127c5ad031ace.tar.bz2
2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): Don't use a removed section.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 69b5c26..3705c25 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);
}