This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Problem with gotplt
- From: Uwe Reimann <libc-alpha at pulsar dot homelinux dot net>
- To: libc-alpha at sources dot redhat dot com
- Cc: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Mon, 16 Jun 2003 13:52:47 +0200
- Subject: Problem with gotplt
Hi,
while cross-compiling glibc-2.3.1 for cris with gcc-3.2.3 WITHOUT
"-mno-gotplt", I get the following error:
cris-axis-linux-gnu-gcc -nostdlib -nostartfiles -r -o
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/librtld.os
'-Wl,-('
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/dl-allobjs.os
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/libc_pic.a
-lgcc '-Wl,-)'
cris-axis-linux-gnu-gcc -nostdlib -nostartfiles -shared
\
-Wl,-z,combreloc -Wl,--verbose 2>&1 | \
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . -
SIZEOF_HEADERS;/' \
>
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/ld.so.lds
cris-axis-linux-gnu-gcc -nostdlib -nostartfiles -shared -o
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/ld.so
-Wl,-z,combreloc \
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/librtld.os
-Wl,--version-script=/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/ld.map
\
-Wl,-soname=ld.so.1 -T
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/ld.so.lds
/usr/lib/gcc-lib/cris-axis-linux-gnu/3.2.3/../../../../cris-axis-linux-gnu/bin/ld:
/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/librtld.os:
No PLT nor GOT for relocation R_CRIS_16_GOTPLT against symbol
`_dl_setup_hash' from .text section
/usr/lib/gcc-lib/cris-axis-linux-gnu/3.2.3/../../../../cris-axis-linux-gnu/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: ***
[/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/buildhere/elf/ld.so]
Error 1
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.3.1-r6/work/glibc-2.3.1'
make: *** [all] Error 2
When using "-mno-gotplt", glibc compiles. Is it a good idea to use
"-mno-gotplt"? What files should I have a look at to make glibc compile
without "-mno-gotplt"?
Best regards, Uwe