https://sourceware.org/bugzilla/show_bug.cgi?id=16403

Dmitry V. Levin <ldv at altlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ldv at altlinux dot org

--- Comment #2 from Dmitry V. Levin <ldv at altlinux dot org> ---
Not quite unusual for x86 as it looks, I see the same happens e.g. with build
of samba.
Here is a more simple test case:

$ cat f.c 
void fun(void){}
$ gcc -c -fPIC -fstack-protector-all f.c 
$ nm f.o
         U __stack_chk_fail_local
00000000 T fun
$ gcc -shared -Wl,--as-needed,--no-undefined -o f.so f.o       
/usr/lib/libc_nonshared.a(stack_chk_fail_local.oS): In function
`__stack_chk_fail_local':
/usr/src/RPM/BUILD/glibc-2.17-alt7/debug/stack_chk_fail_local.c:45: undefined
reference to `__stack_chk_fail'
collect2: error: ld returned 1 exit status

It looks for me more like libc.so script bug rather than ld --as-needed bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to