This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: More Xcoff coughing, this time with ld.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jason Sullivan <jasonsul at us dot ibm dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 30 May 2002 15:17:08 +0930
- Subject: Re: More Xcoff coughing, this time with ld.
- References: <OFB7CE75CA.B9F70496-ON85256BC8.006B08FB@raleigh.ibm.com>
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