Rename TlsGdToLeSkip.

It will also be used for GT_TO_IE relaxations.

llvm-svn: 271813
This commit is contained in:
Rafael Espindola 2016-06-04 23:04:39 +00:00
parent 5c66b8260e
commit f807d47164
3 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,7 @@ static unsigned handleTlsRelocation(uint32_t Type, SymbolBody &Body,
}
C.Relocations.push_back(
{R_RELAX_TLS_GD_TO_LE, Type, Offset, Addend, &Body});
return Target->TlsGdToLeSkip;
return Target->TlsGdRelaxSkip;
}
// Initial-Exec relocs can be relaxed to Local-Exec if the symbol is locally

View File

@ -278,7 +278,7 @@ X86TargetInfo::X86TargetInfo() {
TlsOffsetRel = R_386_TLS_DTPOFF32;
PltEntrySize = 16;
PltZeroSize = 16;
TlsGdToLeSkip = 2;
TlsGdRelaxSkip = 2;
}
RelExpr X86TargetInfo::getRelExpr(uint32_t Type, const SymbolBody &S) const {
@ -507,7 +507,7 @@ X86_64TargetInfo::X86_64TargetInfo() {
TlsOffsetRel = R_X86_64_DTPOFF64;
PltEntrySize = 16;
PltZeroSize = 16;
TlsGdToLeSkip = 2;
TlsGdRelaxSkip = 2;
}
RelExpr X86_64TargetInfo::getRelExpr(uint32_t Type, const SymbolBody &S) const {

View File

@ -57,7 +57,7 @@ public:
virtual void relocateOne(uint8_t *Loc, uint32_t Type, uint64_t Val) const = 0;
virtual ~TargetInfo();
unsigned TlsGdToLeSkip = 1;
unsigned TlsGdRelaxSkip = 1;
unsigned PageSize = 4096;
// On freebsd x86_64 the first page cannot be mmaped.