public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Don't use removed section for bound symbols
@ 2005-05-09 23:06 H. J. Lu
  2005-05-10  1:04 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: H. J. Lu @ 2005-05-09 23:06 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: Don't use removed section for bound symbols
  2005-05-09 23:06 PATCH: Don't use removed section for bound symbols H. J. Lu
@ 2005-05-10  1:04 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2005-05-10  1:04 UTC (permalink / raw)
  To: H. J. Lu; +Cc: binutils

On Mon, May 09, 2005 at 03:34:54PM -0700, H. J. Lu wrote:
> 	* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
> 	Don't use the removed section.

OK.  "Don't use a removed section." is a better changelog entry.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-10  0:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 23:06 PATCH: Don't use removed section for bound symbols H. J. Lu
2005-05-10  1:04 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).