bfd 2.10.90: Handle R_MIPS_REL32 relocations correctly

Ulf Carlsson ulfc@calypso.engr.sgi.com
Tue Jun 20 10:13:00 GMT 2000


 >  How does `objdump -r' on your relocateable look like?  I've seen this
 > happening for R_MIPS_32 relocations in .data section that refer to a
 > versioned symbol in a shared object upon linking.
 > 
 >  OK, try to supply:
 > 
 > 	.data
 > 	.globl	myfree
 > myfree:
 > 	.word	free
 > 	.text
 > 	.globl	main
 > main:
 > 
 > to gas and then link it instead.
 
I had another nasty problem with gcc 2.96 by the way that caused ld to
crash at exactly the same place.  I've added an assertion failure
there now.  For me the offending object file was in libgcc.

Ulf


More information about the Binutils mailing list