This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: More Xcoff coughing, this time with ld.


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


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