------- Additional Comments From tg at mirbsd dot de 2010-01-01 14:37 ------- Created an attachment (id=4488) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4488&action=view) New minimal testcase
New more minimal testcase. I used an external function to make sure gcc doesnt optimise the store to __progname away. I didnt use any header files for simplicity, but do assume your libc has __progname. u...@debian-mipsel:~ $ gcc -O2 -g -Wall tc.c /usr/bin/ld: non-dynamic relocations refer to dynamic symbol __progname@@GLIBC_2.0 /usr/bin/ld: failed to set dynamic section sizes: Bad value collect2: ld returned 1 exit status 1|u...@debian-mipsel:~ $ gcc -O2 -g -Wall tc.c -DUSE_EXTERN u...@debian-mipsel:~ $ This is Debian sid (a-g d-ud from aurel32s qemu image): binutils 2.20-4 gcc 4:4.4.2-2 >From working on the autossh package, this bug did not occur with the versions in Debian lenny. Hope this helps. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10144 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils