diff options
author | Cary Coutant <ccoutant@google.com> | 2015-04-09 15:47:13 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2015-04-09 15:47:37 -0700 |
commit | a6a177507c8b677e79b3440e36091cb0270c55b8 (patch) | |
tree | d4c54714d9b8c17c35580033a468015ce2b88273 /gdb/nat/linux-btrace.c | |
parent | 18ece1defb99cf50dc7769444e3394c26329d497 (diff) | |
download | gdb-a6a177507c8b677e79b3440e36091cb0270c55b8.zip gdb-a6a177507c8b677e79b3440e36091cb0270c55b8.tar.gz gdb-a6a177507c8b677e79b3440e36091cb0270c55b8.tar.bz2 |
Allow gold to resolve defined TLS symbols in a PIE link.
This patch fixes Symbol::final_value_is_known so that a defined TLS symbol
in a PIE link is treated as having a known final value, thus allowing
GD->LE TLS optimization, eliminating an unnecessary GOT entry and dynamic
relocation.
gold/
* symtab.cc (Symbol::final_value_is_known): Check for TLS symbol
in a PIE link.
* testsuite/Makefile.am (tls_pie_test.sh): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/tls_pie_test.sh: New.
Diffstat (limited to 'gdb/nat/linux-btrace.c')
0 files changed, 0 insertions, 0 deletions