bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCOFF relocation data gets mangled by ld.


From: Jason Sullivan
Subject: XCOFF relocation data gets mangled by ld.
Date: Thu, 1 Aug 2002 11:40:47 -0600

I'm using the gas assembler snapshot binutils-020702, configured with the
following options...

./configure --host=rs6000-ibm-aix4.3.3.0 --target=powerpc-ibm-aix

I've been taking the attached assembley through the assembling/linking
process, and the gas linker mangles (apparently) all of the bcla calls into
illegal opcodes.  As an example, line 18 (bcla  0xc,lt,BLT1) assembles to
4180002b, and turns into c180002b after going though the gnu ld program.
When I send it through the AIX ld program, I get the following errors...

ld: 0711-787 ERROR: Symbol .vp_branchafvt (entry 2) in object
vp_branchafvt.o:
        The instruction at address 0x00000020 is not a branch. It is
0x01204180.        RLD type: R_BA;   RLD length: 16;    Referenced symbol:
.vp_branchafvt
ld: 0711-787 ERROR: Symbol .vp_branchafvt (entry 2) in object
vp_branchafvt.o:
        The instruction at address 0x00000034 is not a branch. It is
0x01204180.        RLD type: R_BA;   RLD length: 16;    Referenced symbol:
.vp_branchafvt
ld: 0711-937 SEVERE ERROR: Severe errors have occurred and the output
        file (vp_branchafvt.lo) already exists. The file will not be
overwritten.

...all of which that something might still be going awry with the way gas
writes XCOFF relocations.  I've attached my code and results just in case
I'm doing something dumb again.

The command lines I used to generate these files are as follows....

 % ./gas/as-new -m booke -al -o vp_branchafvt.o vp_branchafvt.as >
vp_branchafvt.lst
 % ./ld/ld-new vp_branchafvt.o -Ttext=0xFFFF8000 -Tdata=0xFFF06000
-evp_branchafvt -o vp_branchafvt.lo

(See attached file: vp_branchafvt.as)(See attached file: vp_branchafvt.lo)
(See attached file: vp_branchafvt.lst)(See attached file: vp_branchafvt.o)

--
Jason M. Sullivan
PowerPC Embbedded Processor Solutions
IBM Microelectronics
address@hidden (919.543.5650)

Attachment: vp_branchafvt.as
Description: Binary data

Attachment: vp_branchafvt.lo
Description: Binary data

Attachment: vp_branchafvt.lst
Description: Binary data

Attachment: vp_branchafvt.o
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]