This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Don't use removed section for bound symbols
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Mon, 9 May 2005 15:34:54 -0700
- Subject: PATCH: Don't use removed section for bound symbols
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);
}