This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problem with relocation in reload1 on powerpc-apple-darwin
- From: Geert bosch <bosch at gnat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 16 Nov 2001 11:54:07 -0500
- Subject: Problem with relocation in reload1 on powerpc-apple-darwin
When trying to bootstrap on powerpc-apple-darwin using current CVS
sources,
I get the following error in stage2:
stage1/xgcc -Bstage1/ -B/usr/local/powerpc-apple-darwin5.1/bin/
-DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -o cc1 \
c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o
c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o
c-semantics.o c-dump.o libcpp.a darwin-c.o main.o libbackend.a
obstack.o ../libiberty/libiberty.a
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: libbackend.a(reload1.o) section 4 (__TEXT,__literal4)
in load command 0 has relocation entries which it shouldn't for its
type (flags)
/usr/bin/ld: warning multiple definitions of symbol _strncmp
../libiberty/libiberty.a(strncmp.o) definition of _strncmp in
section (__TEXT,__text)
/usr/lib/libSystem.dylib(strncmp.o) definition of _strncmp
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap2] Error 2
Recompiling reload1.s with the following command...
darwin%stage1/xgcc -Bstage1/ -B/usr/local/powerpc-apple-
darwin5.1/bin/ -S -DIN_GCC -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc
-I../../gcc/. -I../../gcc/config -I../../gcc/../include
../../gcc/reload1.c -o reload1.s
... gives this assembly output:
.data
.literal4
.align 2
LC62:
.long _reg_state+4
So, it seems that GCC puts a constant in the .data segment which
requires
relocation, even though that is not allowed in Apple's position
independent
objects.
Does anybody have a clue on how to fix this? Thanks in advance.
-Geert