This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: Results for binutils-2.16.92 testsuite on i686-pc-linux-gnu
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <binutils at sourceware dot org>
- Date: Mon, 17 Apr 2006 16:59:18 +0100
- Subject: RE: Results for binutils-2.16.92 testsuite on i686-pc-linux-gnu
On 17 April 2006 13:53, Dave Korn wrote:
> === ld tests ===
>
>
> Running target unix
> ERROR: /home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elf/preinit.c:
> compilation failed
> UNRESOLVED: preinit array
> ERROR: /home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elf/preinit.c:
> compilation failed
> UNRESOLVED: static preinit array
> ERROR: /home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elf/init.c:
> compilation failed
> UNRESOLVED: init array
> ERROR: /home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elf/init.c:
> compilation failed
> UNRESOLVED: static init array
> ERROR: /home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elf/fini.c:
> compilation failed
> UNRESOLVED: fini array
> ERROR: /home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elf/fini.c:
> compilation failed
> UNRESOLVED: static fini array
These are all caused by assembler errors of the form:
/home/dk/binutils/obj/ld/tmpdir/gas/as -V -Qy -o tmpdir/init.o init.s
GNU assembler version 2.16.92 (i686-pc-linux-gnu) using BFD version 2.16.92
20060416
init.s: Assembler messages:
init.s:98: Warning: ignoring incorrect section type for .init_array
[dk@pepper ld]$ /home/dk/binutils/obj/ld/tmpdir/gas/as --version
GNU assembler 2.16.92 20060416
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-linux-gnu'.
[dk@pepper ld]$ cat -n init.s | head -101 | tail -7
95 .Lfe3:
96 .size init_2,.Lfe3-init_2
97 .globl init_array
98 .section .init_array,"a",@progbits
99 .align 4
100 .type init_array,@object
101 .size init_array,12
[dk@pepper ld]$
> FAIL: ELF weak func first DSO
> FAIL: ELF weak func last DSO
> FAIL: ELF weak data first DSO
> FAIL: ELF weak data last DSO
> FAIL: ELF weak data first DSO common
> FAIL: ELF weak data last DSO common
These all show the wrong symbol being selected:
diff tmpdir/foo.out
/home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elfweak/weak.dat
1c1
< strong foo
---
> weak foo
child process exited abnormally
FAIL: ELF weak func last DSO
diff tmpdir/foo.out
/home/dk/binutils/binutils-2.16.92/ld/testsuite/ld-elfweak/weakdata.dat
1c1
< strong deallocate_foo
---
> weak deallocate_foo
child process exited abnormally
FAIL: ELF weak data last DSO
[ etc. etc. ]
cheers,
DaveK
--
Can't think of a witty .sigline today....