On 01/09/2012 05:14 PM, Rainer Orth wrote:
While the combination of Sun as with GNU ld isn't a recommended
configuration on Solaris, it used to work half a year ago, but doesn't
right now: stage 1 libgomp fails to link:

/vol/gcc/bin/gld-2.22: .libs/team.o: unrecognized relocation (0xc) in section 
`.text'
/vol/gcc/bin/gld-2.22: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[5]: *** [libgomp.la] Error 1

where 0xc is R_386_TLS_GD_PLT, which is supported by Sun as and ld, but
not (yet) by gas and gld 2.22.  The following patch makes sure that both
assembler and linker support the relocation (and its companion,
R_386_TLS_LDM_PLT) before using it.  It allowed the bootstrap to
complete successfully, will commit after a as/ld bootstrap to verify it.

Ok.

Paolo

Reply via email to