blob: 96534cc51c2d8cba240510ee230f6ff1ba221946 (
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
|
//===- HexagonELFDynamic.cpp ----------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "HexagonELFDynamic.h"
#include <mcld/LD/ELFFileFormat.h>
using namespace mcld;
HexagonELFDynamic::HexagonELFDynamic(const GNULDBackend& pParent,
const LinkerConfig& pConfig)
: ELFDynamic(pParent, pConfig) {
}
HexagonELFDynamic::~HexagonELFDynamic()
{
}
void HexagonELFDynamic::reserveTargetEntries(const ELFFileFormat& pFormat)
{
// reservePLTGOT
if (pFormat.hasGOTPLT())
reserveOne(llvm::ELF::DT_PLTGOT);
}
void HexagonELFDynamic::applyTargetEntries(const ELFFileFormat& pFormat)
{
// applyPLTGOT
if (pFormat.hasGOTPLT())
applyOne(llvm::ELF::DT_PLTGOT, pFormat.getGOTPLT().addr());
}
|