public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/17711] New: copy relocations against protected symbols don't work
@ 2014-12-14 12:43 hjl.tools at gmail dot com
  2014-12-14 15:05 ` Ondřej Bílka
                   ` (31 more replies)
  0 siblings, 32 replies; 33+ messages in thread
From: hjl.tools at gmail dot com @ 2014-12-14 12:43 UTC (permalink / raw)
  To: glibc-bugs

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]$ 

Should it be disallowed by linker?

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


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2015-08-02  3:55 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-14 12:43 [Bug dynamic-link/17711] New: copy relocations against protected symbols don't work hjl.tools at gmail dot com
2014-12-14 15:05 ` Ondřej Bílka
2014-12-14 15:06 ` [Bug dynamic-link/17711] " neleai at seznam dot cz
2014-12-14 15:14 ` hjl.tools at gmail dot com
2014-12-14 20:24 ` hjl.tools at gmail dot com
2014-12-15  0:58 ` hjl.tools at gmail dot com
2014-12-17 16:27 ` hjl.tools at gmail dot com
2014-12-17 21:25 ` hjl.tools at gmail dot com
2015-02-27 21:25 ` hjl.tools at gmail dot com
2015-02-27 22:14 ` cvs-commit at gcc dot gnu.org
2015-02-27 22:16 ` hjl.tools at gmail dot com
2015-03-05 23:20 ` hjl.tools at gmail dot com
2015-03-05 23:50 ` cvs-commit at gcc dot gnu.org
2015-03-06 12:59 ` cvs-commit at gcc dot gnu.org
2015-03-06 13:02 ` cvs-commit at gcc dot gnu.org
2015-03-06 19:39 ` cvs-commit at gcc dot gnu.org
2015-03-06 21:26 ` cvs-commit at gcc dot gnu.org
2015-03-06 22:56 ` hjl.tools at gmail dot com
2015-03-06 23:43 ` cvs-commit at gcc dot gnu.org
2015-03-07  0:59 ` cvs-commit at gcc dot gnu.org
2015-03-07  1:08 ` cvs-commit at gcc dot gnu.org
2015-03-07 14:26 ` cvs-commit at gcc dot gnu.org
2015-03-27 17:21 ` hjl.tools at gmail dot com
2015-03-31 12:17 ` cvs-commit at gcc dot gnu.org
2015-03-31 12:22 ` cvs-commit at gcc dot gnu.org
2015-04-01  0:02 ` cvs-commit at gcc dot gnu.org
2015-04-01  0:05 ` cvs-commit at gcc dot gnu.org
2015-04-01  0:07 ` cvs-commit at gcc dot gnu.org
2015-04-01  0:19 ` cvs-commit at gcc dot gnu.org
2015-04-01  0:28 ` cvs-commit at gcc dot gnu.org
2015-07-11 19:46 ` neleai at seznam dot cz
2015-07-24  9:08 ` cvs-commit at gcc dot gnu.org
2015-08-02  3:55 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).