More Xcoff coughing, this time with ld.
Alan Modra
amodra@bigpond.net.au
Wed May 29 22:47:00 GMT 2002
On Wed, May 29, 2002 at 03:34:44PM -0400, Jason Sullivan wrote:
> I'm trying to get ld to link an XCoff file generated by gas, and I'm
> getting the following errors....
>
> vp_branchafvt.o(.pr+0x8):fake: relocation truncated to fit: 0x08
> .vp_branchafvt
> vp_branchafvt.o(.pr+0xc):fake: relocation truncated to fit: 0x08
> .vp_branchafvt
> vp_branchafvt.o(.pr+0x1c):fake: relocation truncated to fit: 0x08
> .vp_branchafvt
> vp_branchafvt: Linker errors
I note you're using "bcla" and "bla", ie. branch to absolute address
rather than branch relative. What address did you link your
testcase at?
$ /usr/tmp/ppc/binaix/ld/ld-new -o vp vp.o
/usr/tmp/ppc/binaix/ld/ld-new: warning: cannot find entry symbol __start; defaulting to 0000000010000000
vp.o(.pr+0x8):fake: relocation truncated to fit: 0x08 .vp_branchafvt
vp.o(.pr+0xc):fake: relocation truncated to fit: 0x08 .vp_branchafvt
vp.o(.pr+0x1c):fake: relocation truncated to fit: 0x08 .vp_branchafvt
$ /usr/tmp/ppc/binaix/ld/ld-new -Ttext=0x1000 -o vp vp.o
/usr/tmp/ppc/binaix/ld/ld-new: warning: cannot find entry symbol __start; defaulting to 0000000000001000
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list