diff options
author | Zonr Chang <zonr.net@gmail.com> | 2012-07-16 14:28:23 +0800 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2012-07-16 14:49:46 -0700 |
commit | affc150dc44fab1911775a49636d0ce85333b634 (patch) | |
tree | 4fd49661582b11ad85673623804c1f651a704a4c /lib/Target/X86/X86GOTPLT.h | |
parent | 162869ede7e3fe37cfc641ceda22c903f9e8dbab (diff) | |
download | mclinker-affc150dc44fab1911775a49636d0ce85333b634.tar.gz |
MCLinker upstream commit e764452.
Change-Id: I5c9ec467ec96a0143e1e67c59365f3b6303e7348
Diffstat (limited to 'lib/Target/X86/X86GOTPLT.h')
-rw-r--r-- | lib/Target/X86/X86GOTPLT.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/Target/X86/X86GOTPLT.h b/lib/Target/X86/X86GOTPLT.h index 04bfad0..ae9f0f7 100644 --- a/lib/Target/X86/X86GOTPLT.h +++ b/lib/Target/X86/X86GOTPLT.h @@ -12,7 +12,7 @@ #include <gtest.h> #endif -#include "mcld/Target/GOT.h" +#include <mcld/Target/GOT.h> namespace mcld { @@ -22,7 +22,7 @@ class LDSection; * \brief X86 .got.plt section. */ -const unsigned int X86GOT0Num = 3; +const unsigned int X86GOTPLT0Num = 3; class X86GOTPLT : public GOT { @@ -47,17 +47,19 @@ public: // For GOT0 public: - void applyGOT0(const uint64_t pAddress); + void applyGOT0(uint64_t pAddress); // For GOTPLT public: - void reserveGOTPLTEntry(); + void reserveEntry(size_t pNum = 1); - void applyAllGOTPLT(const uint64_t pPLTBase); + GOTEntry* getEntry(const ResolveInfo& pSymbol, bool& pExist); - GOTEntry*& lookupGOTPLTMap(const ResolveInfo& pSymbol); + void applyAllGOTPLT(uint64_t pPLTBase, + unsigned int pPLT0Size, + unsigned int pPLT1Size); - iterator getNextGOTPLTEntry(); + GOTEntry*& lookupGOTPLTMap(const ResolveInfo& pSymbol); private: iterator m_GOTPLTIterator; @@ -67,3 +69,4 @@ private: } // namespace of mcld #endif + |