This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
@fixup relocation and powerpc64 target
- From: "Stephane E. Potvin" <sepotvin at videotron dot ca>
- To: binutils at sources dot redhat dot com
- Date: Wed, 23 Jun 2004 16:40:41 -0400
- Subject: @fixup relocation and powerpc64 target
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
While trying to compile crtbeginS.c of the gcc 3.4 sources using a
i386->powerpc64 cross-compiler and binutils 2.15, I get the following
errors:
crtbeginS.S: Assembler messages:
crtbeginS.S:27: Error: junk at end of line, first unrecognized character
is `@'
crtbeginS.S:37: Error: junk at end of line, first unrecognized character
is `@'
crtbeginS.S:85: Error: syntax error; found `@' but expected `,'
crtbeginS.S:85: Error: junk at end of line: `@plt'
crtbeginS.S:103: Error: syntax error; found `@' but expected `,'
crtbeginS.S:103: Error: junk at end of line: `@plt'
crtbeginS.S:124: Error: syntax error; found `@' but expected `,'
crtbeginS.S:124: Error: junk at end of line: `@local'
crtbeginS.S:164: Error: syntax error; found `@' but expected `,'
crtbeginS.S:164: Error: junk at end of line: `@plt'
crtbeginS.S:173: Error: syntax error; found `@' but expected `,'
crtbeginS.S:173: Error: junk at end of line: `@plt'
crtbeginS.S:189: Error: syntax error; found `@' but expected `,'
crtbeginS.S:189: Error: junk at end of line: `@local'
The relevent lines from the source assembler code is:
23: .align 2
24: .type __dso_handle, @object
25: __dso_handle:
26: .LCP0:
27: .long (__dso_handle)@fixup
28: .section ".fixup","aw"
29: .align 2
30: .long .LCP0
31: .previous
32: .section .data.rel.local,"aw",@progbits
33: .align 2
34: .type p.0, @object
35: p.0:
36: .LCP1:
37: .long (__DTOR_LIST__+4)@fixup
38: .section ".fixup","aw"
39: .align 2
40: .long .LCP1
41: .previous
85: bl __cxa_finalize@plt
The errors at lines 103, 124, 164 and 173 are similars
189: bl __frame_dummy@local
I've tracked it down to the fixup, plt and local relocations being
defined with MAP32 instead of MAP in the tc-cpp.c:ppc_elf_suffix
function. Does anyone have any idea how this should be fixed?
Thanks in advance
Steph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFA2erJmdOXtTCX/nsRAjrWAKDQA43XqpU5wvKeIt7lTq/AgTFDegCg07Lr
JfETRm0K+R6dVfsU5YyBPU0=
=KDMR
-----END PGP SIGNATURE-----