bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binutils 2.16.1 assembler dwarf2 relocations break solaris native ld


From: Daniel Jacobowitz
Subject: Re: binutils 2.16.1 assembler dwarf2 relocations break solaris native ld
Date: Fri, 12 Aug 2005 17:10:22 -0400
User-agent: Mutt/1.5.8i

On Fri, Aug 12, 2005 at 04:28:12PM +0200, Eric Botcazou wrote:
> > So who is right here? Is there really an alignment problem with the
> > debug sections in the object file, or is the solaris linker just
> > confused? If there is a problem, why doesn't binutils ld complain?
> 
> GNU ld supports unaligned R_SPARC_32 relocations, while Sun ld doesn't.  The
> relocations should have been R_SPARC_UA32 for Sun ld to be able to grok
> them.  The bottom line is that you need GNU ld if you want to directly
> use -gdwarf2 with GNU as (or use -g on an assembly file with GCC).

Silly question, perhaps, but why not have gas generate R_SPARC_UA32?

-- 
Daniel Jacobowitz
CodeSourcery, LLC




reply via email to

[Prev in Thread] Current Thread [Next in Thread]