> 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).

--
Eric Botcazou



_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to