From 4ea16835ba66f2240d050ffcaee44cee6c97cab9 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 26 Jun 2017 20:33:45 +0000 Subject: Vendor import of lld trunk r306325: https://llvm.org/svn/llvm-project/lld/trunk@306325 --- ELF/Target.h | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'ELF/Target.h') diff --git a/ELF/Target.h b/ELF/Target.h index 79b03f876d0d..bf703fd0086a 100644 --- a/ELF/Target.h +++ b/ELF/Target.h @@ -66,6 +66,10 @@ public: // Given that, the smallest value that can be used in here is 0x10000. uint64_t DefaultImageBase = 0x10000; + // Offset of _GLOBAL_OFFSET_TABLE_ from base of .got section. Use -1 for + // end of .got + uint64_t GotBaseSymOff = 0; + uint32_t CopyRel; uint32_t GotRel; uint32_t PltRel; @@ -102,16 +106,16 @@ public: virtual void relaxTlsLdToLe(uint8_t *Loc, uint32_t Type, uint64_t Val) const; }; -TargetInfo *createAArch64TargetInfo(); -TargetInfo *createAMDGPUTargetInfo(); -TargetInfo *createARMTargetInfo(); -TargetInfo *createAVRTargetInfo(); -TargetInfo *createPPC64TargetInfo(); -TargetInfo *createPPCTargetInfo(); -TargetInfo *createX32TargetInfo(); -TargetInfo *createX86TargetInfo(); -TargetInfo *createX86_64TargetInfo(); -template TargetInfo *createMipsTargetInfo(); +TargetInfo *getAArch64TargetInfo(); +TargetInfo *getAMDGPUTargetInfo(); +TargetInfo *getARMTargetInfo(); +TargetInfo *getAVRTargetInfo(); +TargetInfo *getPPC64TargetInfo(); +TargetInfo *getPPCTargetInfo(); +TargetInfo *getX32TargetInfo(); +TargetInfo *getX86TargetInfo(); +TargetInfo *getX86_64TargetInfo(); +template TargetInfo *getMipsTargetInfo(); std::string getErrorLocation(const uint8_t *Loc); @@ -119,7 +123,7 @@ uint64_t getPPC64TocBase(); uint64_t getAArch64Page(uint64_t Expr); extern TargetInfo *Target; -TargetInfo *createTarget(); +TargetInfo *getTarget(); template static void checkInt(uint8_t *Loc, int64_t V, uint32_t Type) { -- cgit v1.3