PATCH: Don't use removed section for bound symbols
H. J. Lu
hjl@lucon.org
Mon May 9 23:06:00 GMT 2005
When a section is removed from the output, we shouldn't use it for
section bound symbols.
H.J.
----
2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
Don't use the removed section.
--- ld/emultempl/elf32.em.removed 2005-05-09 15:15:49.000000000 -0700
+++ ld/emultempl/elf32.em 2005-05-09 15:30:13.000000000 -0700
@@ -1460,6 +1460,8 @@ gld${EMULATION_NAME}_provide_bound_symbo
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);
}
More information about the Binutils
mailing list