[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26) |
Date: |
Sun, 29 May 2016 13:55:00 +0000 |
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:
address@hidden pr20159]$ cat foo.c
#include <stdio.h>
#include <time.h>
void nothing( )
{
printf( "%lld\n", (long long)time( NULL ) );
}
address@hidden pr20159]$ cat bar.c
#include <time.h>
time_t time( time_t * ptr )
{
return 42;
}
address@hidden 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;
}
address@hidden 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
address@hidden 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 ld/20159] New: Dynamic Linking Change for Shared Libraries (1.24 to 1.26), paul.braman at nielsen dot com, 2016/05/27
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), amodra at gmail dot com, 2016/05/28
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26),
hjl.tools at gmail dot com <=
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), amodra at gmail dot com, 2016/05/29
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), hjl.tools at gmail dot com, 2016/05/29
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), amodra at gmail dot com, 2016/05/29
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), hjl.tools at gmail dot com, 2016/05/29
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), amodra at gmail dot com, 2016/05/30
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), amodra at gmail dot com, 2016/05/30
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), hjl.tools at gmail dot com, 2016/05/31
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), paul.braman at nielsen dot com, 2016/05/31
- [Bug ld/20159] Dynamic Linking Change for Shared Libraries (1.24 to 1.26), hjl.tools at gmail dot com, 2016/05/31