HomePhabricator

[LLD][ELF] - Set DF_STATIC_TLS flag for i386 target.

Authored by grimar on Feb 6 2019, 5:38 AM.

Description

[LLD][ELF] - Set DF_STATIC_TLS flag for i386 target.

DF_STATIC_TLS flag indicates that the shared object or executable
contains code using a static thread-local storage scheme.

Patch checks if IE/LE relocations were used to check if the code uses
a static model. If so it sets the DF_STATIC_TLS flag.

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

llvm-svn: 353293

Details