You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
7 months ago
|
//===- HexagonGOTPLT.h ----------------------------------------------------===//
|
||
|
//
|
||
|
// The MCLinker Project
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
#ifndef TARGET_HEXAGON_HEXAGONGOTPLT_H_
|
||
|
#define TARGET_HEXAGON_HEXAGONGOTPLT_H_
|
||
|
|
||
|
#include "HexagonGOT.h"
|
||
|
#include <llvm/ADT/DenseMap.h>
|
||
|
|
||
|
namespace mcld {
|
||
|
|
||
|
class HexagonPLT;
|
||
|
class LDSection;
|
||
|
|
||
|
// Hexagon creates 4 entries for the GOTPLT0 entry
|
||
|
const unsigned int HexagonGOTPLT0Num = 4;
|
||
|
|
||
|
/** \class HexagonGOTPLT
|
||
|
* \brief Hexagon .got.plt section.
|
||
|
*/
|
||
|
class HexagonGOTPLT : public HexagonGOT {
|
||
|
public:
|
||
|
explicit HexagonGOTPLT(LDSection& pSection);
|
||
|
|
||
|
~HexagonGOTPLT();
|
||
|
|
||
|
// hasGOT1 - return if this section has any GOT1 entry
|
||
|
bool hasGOT1() const;
|
||
|
|
||
|
void applyGOT0(uint64_t pAddress);
|
||
|
|
||
|
void applyAllGOTPLT(const HexagonPLT& pPLT);
|
||
|
};
|
||
|
|
||
|
} // namespace mcld
|
||
|
|
||
|
#endif // TARGET_HEXAGON_HEXAGONGOTPLT_H_
|