blob: a509e0b2c1fca38e393f60942e2c856d1cb82350 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
//===- MipsPLT.h ----------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef TARGET_MIPS_MIPSPLT_H_
#define TARGET_MIPS_MIPSPLT_H_
#include "mcld/Support/MemoryRegion.h"
#include "mcld/Target/PLT.h"
namespace mcld {
class MipsGOTPLT;
//===----------------------------------------------------------------------===//
// MipsPLT
//===----------------------------------------------------------------------===//
/** \class MipsPLT
* \brief Mips Procedure Linkage Table
*/
class MipsPLT : public PLT {
public:
explicit MipsPLT(LDSection& pSection);
void finalizeSectionSize();
// hasPLT1 - return if this PLT has any PLTA/PLTB entries
bool hasPLT1() const;
uint64_t emit(MemoryRegion& pRegion);
PLTEntryBase* create();
void applyAllPLT(MipsGOTPLT& pGOTPLT);
};
} // namespace mcld
#endif // TARGET_MIPS_MIPSPLT_H_
|