HexagonELFDynamic.cpp revision 6f75755c9204b1d8817ae5a65a2f7e5af0ec3f70
1//===- HexagonELFDynamic.cpp ----------------------------------------------===// 2// 3// The MCLinker Project 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9#include "HexagonELFDynamic.h" 10 11#include <mcld/LD/ELFFileFormat.h> 12 13using namespace mcld; 14 15HexagonELFDynamic::HexagonELFDynamic(const GNULDBackend& pParent, 16 const LinkerConfig& pConfig) 17 : ELFDynamic(pParent, pConfig) { 18} 19 20HexagonELFDynamic::~HexagonELFDynamic() 21{ 22} 23 24void HexagonELFDynamic::reserveTargetEntries(const ELFFileFormat& pFormat) 25{ 26 // reservePLTGOT 27 if (pFormat.hasGOTPLT()) 28 reserveOne(llvm::ELF::DT_PLTGOT); 29} 30 31void HexagonELFDynamic::applyTargetEntries(const ELFFileFormat& pFormat) 32{ 33 // applyPLTGOT 34 if (pFormat.hasGOTPLT()) 35 applyOne(llvm::ELF::DT_PLTGOT, pFormat.getGOTPLT().addr()); 36} 37 38