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