[lld] r272976 - Remove default values that vary depending on target.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 16:50:25 PDT 2016
Author: ruiu
Date: Thu Jun 16 18:50:25 2016
New Revision: 272976
URL: http://llvm.org/viewvc/llvm-project?rev=272976&view=rev
Log:
Remove default values that vary depending on target.
Modified:
lld/trunk/ELF/Target.cpp
lld/trunk/ELF/Target.h
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=272976&r1=272975&r2=272976&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Jun 16 18:50:25 2016
@@ -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).
Modified: lld/trunk/ELF/Target.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.h?rev=272976&r1=272975&r2=272976&view=diff
==============================================================================
--- lld/trunk/ELF/Target.h (original)
+++ lld/trunk/ELF/Target.h Thu Jun 16 18:50:25 2016
@@ -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.
More information about the llvm-commits
mailing list