HomePhabricator

[LLD][ELF] - Set DF_STATIC_TLS flag for X64 target

Authored by grimar on Feb 6 2019, 11:59 PM.

Description

[LLD][ELF] - Set DF_STATIC_TLS flag for X64 target

This is the same as D57749, but for x64 target.

"ELF Handling For Thread-Local Storage" p41 says (https://www.akkadia.org/drepper/tls.pdf):
R_X86_64_GOTTPOFF relocation is used for IE TLS models.
Hence if linker sees this relocation we should add DF_STATIC_TLS flag.

Differential revision: https://reviews.llvm.org/D57821

llvm-svn: 353378

Details

Committed
grimarFeb 6 2019, 11:59 PM
Differential Revision
D57821: [LLD][ELF] - Set DF_STATIC_TLS flag for X64 target
Parents
rGc41835230ae1: [sanitizer] Fix Android tests
Branches
Unknown
Tags
Unknown