2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 10 May 2005 01:07:30 +0000 (01:07 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 10 May 2005 01:07:30 +0000 (01:07 +0000)
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
Don't use a removed section.

ld/ChangeLog
ld/emultempl/elf32.em

index 9da68d5dd018fa04d89bc80262d229390b29ff43..646ab62555148fde87dd739ee11c44bdef9a685e 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ldmain.c (reloc_overflow): Use output_bfd if the symbol
index 69b5c2623d778123c8722a778360c1cac79beeab..3705c251e8bf2472c472e59dee3081a60fa762f5 100644 (file)
@@ -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);
 }