Problem with gotplt

Uwe Reimann libc-alpha@pulsar.homelinux.net
Mon Jun 16 11:52:00 GMT 2003


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



More information about the Libc-alpha mailing list