PR gold/12980
commitb949bd6432bed0590a9616e1d81736be09b8d9a3
authorIan Lance Taylor <ian@airs.com>
Tue, 12 Jul 2011 22:29:09 +0000 (12 22:29 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 12 Jul 2011 22:29:09 +0000 (12 22:29 +0000)
tree8f9852ea30dccf78d42e5906af8c3e9c4bfa279d
parent62b80fd53ab41281b7291b07cd52d765b847c8d3
PR gold/12980
* i386.cc (Target_i386::Scan::global): For a GOT reloc, use a
GLOB_DAT relocation rather than a RELATIVE relocation for a
protected symbol when creating a shared library.
* x86_64.cc (Target_x86_64::Scan::global): Likewise.
* testsuite/protected_1.cc (f2, get_f2_addr): New functions.
* testsuite/protected_main_1.cc (main): Test that protected
function has same address.
gold/ChangeLog
gold/i386.cc
gold/testsuite/protected_1.cc
gold/testsuite/protected_main_1.cc
gold/x86_64.cc