1 //===- PLT.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 <mcld/Target/PLT.h> 10 11 using namespace mcld; 12 13 class GOT; 14 15 //===--------------------------------------------------------------------===// 16 // PLTEntry 17 PLTEntry::PLTEntry(size_t pSize, llvm::MCSectionData* pParent) 18 : MCTargetFragment(llvm::MCFragment::FT_Target, pParent), 19 m_EntrySize(pSize), m_pContent(NULL) 20 { 21 } 22 23 PLTEntry::~PLTEntry() 24 { 25 if (m_pContent) { 26 free(m_pContent); 27 m_pContent = NULL; 28 } 29 } 30 31 //===--------------------------------------------------------------------===// 32 // PLT 33 PLT::PLT(LDSection& pSection, llvm::MCSectionData& pSectionData) 34 :m_Section(pSection), 35 m_SectionData(pSectionData) 36 { 37 } 38 39 PLT::~PLT() 40 { 41 } 42 43