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