[Bug binutils/4959] Multiple relocs for the same symbol are not handled correctly

2007-08-24 Thread atgraham at gmail dot com
--- Additional Comments From atgraham at gmail dot com 2007-08-24 16:32 --- Created an attachment (id=1974) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1974&action=view) GCC Output Output of: mipsel-linux-gcc-4.2.1 -Os -S tworelocs.c -- http://sourceware.org/bugzilla

[Bug binutils/4959] New: Multiple relocs for the same symbol are not handled correctly

2007-08-24 Thread atgraham at gmail dot com
Sample code: #include "pthread.h" static __typeof(pthread_mutex_lock) __gthrw_pthread_mutex_lock __attribute__ ((__weakref__("pthread_mutex_lock"))); int main() { __gthrw_pthread_mutex_lock(0); pthread_mutex_lock(0); } This (mipsel-linux-gcc-4.2.1 -Os -c) generates the following object code: