This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [build] Avoid ld -v error message with Sun ld on SPARC


From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Tue, 12 Apr 2011 15:00:53 +0200

> On Solaris 10, as assembles the test just fine, but ld cannot deal with
> gas 2.21 output:
> 
> ld: fatal: relocation error: R_SPARC_GOTDATA_HIX22: file gotdata.o: symbol <unknown>: offset 0xff370163 is non-aligned
> ld: fatal: relocation error: R_SPARC_GOTDATA_LOX10: file gotdata.o: symbol <unknown>: offset 0xff370167 is non-aligned
> ld: fatal: file gotdata: creation interrupted: Error 0

Really strange error message, could you see if adding something as simply as
".align 4" after the ".text" in the test assembler makes this go away?

> 
> On Solaris 11, all is fine.
> 
> I get the same results with an unmodifed tree and the following
> simplified version of my patch.
> 
> Ok for mainline?

I'm fine with this patch, we can try to attack the above problem independently.


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