This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/17711] copy relocations against protected symbols don't work


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

--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
On Sun, Dec 14, 2014 at 12:43:50PM +0000, hjl.tools at gmail dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=17711
> 
>             Bug ID: 17711
>            Summary: copy relocations against protected symbols don't work
>            Product: glibc
>            Version: 2.21
>             Status: NEW
>           Severity: normal
>           Priority: P2
>          Component: dynamic-link
>           Assignee: unassigned at sourceware dot org
>           Reporter: hjl.tools at gmail dot com
> 
> On Linux/x86-64, I got
> 
> [hjl@gnu-tools-1 pr15228]$ cat x.c 
> extern int a;
> 
> extern void bar (void);
> 
> int main()
> {
>   bar ();
>   if (a != 30)
>     __builtin_abort();
>   return 0;
> }
> [hjl@gnu-tools-1 pr15228]$ cat bar.c 
> int a;
> 
> __attribute__((visibility("protected"))) int a;
> 
> void
> bar ()
> {
>   a = 30;
> }
> [hjl@gnu-tools-1 pr15228]$ make all
> gcc  -B/bin/    -c -o x.o x.c
> gcc  -B/bin/ -fPIC   -c -o bar.o bar.c
> ./ld -shared -o libbar.so bar.o
> gcc  -B/bin/  -o x x.o libbar.so -Wl,-rpath,.
> ./x
> make: *** [all] Aborted (core dumped)
> [hjl@gnu-tools-1 pr15228]$ 
> 
What commit does git bisect report?

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]