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]

Re: Odd code generated by binutils assembler for x86


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)


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