Odd code generated by binutils assembler for x86

H . J . Lu hjl@lucon.org
Tue Mar 26 01:40:00 GMT 2002


On Mon, Mar 25, 2002 at 05:01:03PM -0800, H . J . Lu wrote:
> On Tue, Mar 26, 2002 at 11:24:58AM +1030, Alan Modra wrote:
> > On Tue, Mar 26, 2002 at 01:14:56AM +0100, Teemu Torma wrote:
> > > On Tue, 2002-03-26 at 00:27, H . J . Lu wrote:
> > > > Alan, should we make it a fatal error instead of just a warning? I
> > > > don't believe it is safe at all now.
> > 
> > I tend to agree.
> > 

I am checking it in soon.


H.J.
---
2002-03-26  H.J. Lu  (hjl@gnu.org)

	* elflink.h (elf_link_input_bfd): Complain about relocations
	against local symbols in discarded sections.

--- bfd/elflink.h.discard	Fri Mar 22 00:48:10 2002
+++ bfd/elflink.h	Tue Mar 26 01:35:49 2002
@@ -6843,8 +6843,7 @@ elf_link_input_bfd (finfo, input_bfd)
 		      if (sec != NULL && elf_discarded_section (sec))
 			{
 #if BFD_VERSION_DATE < 20031005
-			  if ((o->flags & SEC_DEBUGGING) != 0
-			      || (sec->flags & SEC_LINK_ONCE) != 0)
+			  if ((o->flags & SEC_DEBUGGING) != 0)
 			    {
 #if BFD_VERSION_DATE > 20021005
 			      (*finfo->info->callbacks->warning)



More information about the Binutils mailing list