This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
elflink.c assertion failure during glibc build
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 16 Mar 2004 13:23:41 +0100
- Subject: elflink.c assertion failure during glibc build
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
cat > 1.c <<EOF
int __attribute__((weak)) foo (void) { return 1; }
EOF
cat > 2.c <<EOF
int old_foo (void) { return 2; }
int new_foo (void) { return 3; }
asm (".symver old_foo, foo@GLIBC_2.0");
asm (".symver new_foo, foo@@GLIBC_2.3.4");
EOF
gcc -O2 -fpic -r -o test.o 1.c 2.c
(simplified testcase from glibc on PPC{,64}) gives:
ld: BFD 2.15.90 20040312 assertion fail ../../bfd/elflink.c:1391
(on all arches I've tried).
Jakub