This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]