This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold commit] Allow gold to resolve defined TLS symbols in a PIE link
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Thu, 9 Apr 2015 15:49:15 -0700
- Subject: [gold commit] Allow gold to resolve defined TLS symbols in a PIE link
- Authentication-results: sourceware.org; auth=none
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.
2015-04-09 Cary Coutant <ccoutant@google.com>
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.
-cary