bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/12392] New: Many static link tests fail


From: rguenth at gcc dot gnu.org
Subject: [Bug gold/12392] New: Many static link tests fail
Date: Wed, 12 Jan 2011 10:58:30 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12392

           Summary: Many static link tests fail
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: address@hidden
        ReportedBy: address@hidden


One example, the errors are common:

g++ -W -Wall    -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-fmerge-constants -O2 -g   -o basic_static_test -Bgcctestdir/ -static
basic_test.o
gcctestdir/ld:
/usr/lib/gcc/i586-suse-linux/4.5/../../../libc.a(errlist.o):(.debug_info+0x1c3):
warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
gcctestdir/ld:
/usr/lib/gcc/i586-suse-linux/4.5/../../../libc.a(errlist.o):(.debug_info+0x1f1):
warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.5/../../../libc.a(elf-init.o): in
function __libc_csu_irel:elf-init.c:94: error: undefined reference to
'__rel_iplt_end'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.5/../../../libc.a(elf-init.o): in
function __libc_csu_irel:elf-init.c:94: error: undefined reference to
'__rel_iplt_start'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.5/../../../libc.a(elf-init.o): in
function __libc_csu_irel:../sysdeps/i386/dl-irel.h:36: error: undefined
reference to '__rel_iplt_start'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.5/../../../libc.a(elf-init.o): in
function __libc_csu_irel:../sysdeps/i386/dl-irel.h:33: error: undefined
reference to '__rel_iplt_start'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.5/../../../libc.a(elf-init.o): in
function __libc_csu_irel:../sysdeps/i386/dl-irel.h:36: error: undefined
reference to '__rel_iplt_start'
collect2: ld returned 1 exit status
make[5]: *** [basic_static_test] Error 1

The linker is invoked as

./gcctestdir/ld -m elf_i386 -static -o basic_static_test
/usr/lib/gcc/i586-suse-linux/4.5/../../../crt1.o
/usr/lib/gcc/i586-suse-linux/4.5/../../../crti.o
/usr/lib/gcc/i586-suse-linux/4.5/crtbeginT.o -Lgcctestdir
-L/usr/lib/gcc/i586-suse-linux/4.5
-L/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/lib
-L/usr/lib/gcc/i586-suse-linux/4.5/../../.. basic_test.o -lstdc++ -lm
--start-group -lgcc -lgcc_eh -lc --end-group
/usr/lib/gcc/i586-suse-linux/4.5/crtend.o
/usr/lib/gcc/i586-suse-linux/4.5/../../../crtn.o

using GNU ld the link works fine.

On x86_64-linux this works fine, but on i586-linux it breaks.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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