summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Target.cpp3
-rw-r--r--lld/ELF/Target.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 483458bb6d3..bcb276ae2e1 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -304,7 +304,6 @@ void TargetInfo::writeGotPltHeaderEntries(uint8_t *Buf) const {}
X86TargetInfo::X86TargetInfo() {
CopyReloc = R_386_COPY;
- PCRelReloc = R_386_PC32;
GotReloc = R_386_GLOB_DAT;
PltReloc = R_386_JUMP_SLOT;
IRelativeReloc = R_386_IRELATIVE;
@@ -610,7 +609,6 @@ void X86TargetInfo::relocateTlsIeToLe(unsigned Type, uint8_t *Loc,
X86_64TargetInfo::X86_64TargetInfo() {
CopyReloc = R_X86_64_COPY;
- PCRelReloc = R_X86_64_PC32;
GotReloc = R_X86_64_GLOB_DAT;
PltReloc = R_X86_64_JUMP_SLOT;
RelativeReloc = R_X86_64_RELATIVE;
@@ -973,7 +971,6 @@ void PPCTargetInfo::relocateOne(uint8_t *Loc, uint8_t *BufEnd, uint32_t Type,
}
PPC64TargetInfo::PPC64TargetInfo() {
- PCRelReloc = R_PPC64_REL24;
GotReloc = R_PPC64_GLOB_DAT;
RelativeReloc = R_PPC64_RELATIVE;
PltEntrySize = 32;
diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h
index 00359c08859..e74bab12cc6 100644
--- a/lld/ELF/Target.h
+++ b/lld/ELF/Target.h
@@ -96,7 +96,6 @@ protected:
uint64_t VAStart = 0x10000;
unsigned CopyReloc;
- unsigned PCRelReloc;
unsigned GotReloc;
unsigned PltReloc;
unsigned RelativeReloc;
OpenPOWER on IntegriCloud