LD version 2.18.x produces bogus "section .xxx overlaps section .bss", while LD
version 2.16.1 works just fine. Here is cut-down test to reproduce the problem:
$ echo -n | ~/try/bin/sparc-elf-as -o test.o
$ ~/try/bin/sparc-elf-ld -v -o test -T test.lnk test.o
GNU ld (GNU Binutils) 2.18.50.20080218
--- Additional Comments From vda dot linux at googlemail dot com
2008-02-21 12:00 ---
Created an attachment (id=2279)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2279&action=view)
Fix for bug 5543: disallow symbols .set to register name to be .global
Behavior with this patch:
--- Additional Comments From vda dot linux at googlemail dot com
2008-02-21 11:58 ---
Sorry H.J. Lu, I tried the patch and both test programs:
.globl foo
.setfoo,(%eax)
and
.setfoo,(%eax)
.globl foo
still produced this message:
./gas/as-new: