https://sourceware.org/bugzilla/show_bug.cgi?id=20159
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- Works for me with glibc 2.22 and binutils 2.26: [hjl@gnu-tools-1 pr20159]$ cat foo.c #include <stdio.h> #include <time.h> void nothing( ) { printf( "%lld\n", (long long)time( NULL ) ); } [hjl@gnu-tools-1 pr20159]$ cat bar.c #include <time.h> time_t time( time_t * ptr ) { return 42; } [hjl@gnu-tools-1 pr20159]$ cat main.c #include <stdio.h> #include <time.h> extern void nothing( void ); int main( ) { printf( "%lld\n", (long long)time( NULL ) ); nothing( ); return 0; } [hjl@gnu-tools-1 pr20159]$ make gcc -B./ -fPIC -c -o bar.o bar.c gcc -B./ -o libbar.so -shared -rdynamic bar.o gcc -B./ -c -o main.o main.c gcc -B./ -c -o foo.o foo.c gcc -B./ -o x main.o foo.o libbar.so -Wl,-R,. ./x 42 42 [hjl@gnu-tools-1 pr20159]$ Can anyone reproduce it on non-Ubuntu machine? -- 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