summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Target.cpp1
-rw-r--r--lld/ELF/Target.h6
2 files changed, 4 insertions, 3 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index b3100a01b73..a5fe030d762 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -936,6 +936,7 @@ PPC64TargetInfo::PPC64TargetInfo() {
PltRel = GotRel = R_PPC64_GLOB_DAT;
RelativeRel = R_PPC64_RELATIVE;
PltEntrySize = 32;
+ PltHeaderSize = 0;
// We need 64K pages (at least under glibc/Linux, the loader won't
// set different permissions on a finer granularity than that).
diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h
index f76fe1e69eb..822d38ae1fc 100644
--- a/lld/ELF/Target.h
+++ b/lld/ELF/Target.h
@@ -74,11 +74,11 @@ public:
uint32_t RelativeRel;
uint32_t IRelativeRel;
uint32_t TlsDescRel;
- uint32_t TlsGotRel = 0;
+ uint32_t TlsGotRel;
uint32_t TlsModuleIndexRel;
uint32_t TlsOffsetRel;
- unsigned PltEntrySize = 8;
- unsigned PltHeaderSize = 0;
+ unsigned PltEntrySize;
+ unsigned PltHeaderSize;
// At least on x86_64 positions 1 and 2 are used by the first plt entry
// to support lazy loading.
OpenPOWER on IntegriCloud