This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

ld bug found


The bug is in the way how ld -r treats ".stabs". It screws things up
by treating it as of without -r.


H.J.
------
# gcc -c x.s
# ld-1.9 -r -x -o 1.9 x.o
# ld-2.5 -r -x -o 2.5 x.o
# nm 2.5 1.9 x.o
2.5:
00000010 - 00 0000   (6) __BUILTIN_FIXUPS__
         U __GOT__AM
00000000 T _foo
 
1.9:
00000020 - 00 0000   (6) __BUILTIN_FIXUPS__
         U __GOT__AM
00000000 T _foo
 
x.o:
00000020 - 00 0000   (6) __BUILTIN_FIXUPS__
         U __GOT__AM
00000010 d ___fixup_list
------x.s----
	.globl _foo
_foo:
	.long 0x100
	.long 0x100
	.long 0x100
	.long 0x100

.data
___fixup_list:
	.stabs "__BUILTIN_FIXUPS__",25,0,0,___fixup_list
	.long __GOT__AM