1//===- LDSection.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/LD/LDSection.h> 10 11using namespace mcld; 12 13LDSection::LDSection(const std::string& pName, 14 LDFileFormat::Kind pKind, 15 uint32_t pType, 16 uint32_t pFlag, 17 uint64_t pSize, 18 uint64_t pOffset, 19 uint64_t pAddr) 20 : m_Name(pName), 21 m_Kind(pKind), 22 m_Type(pType), 23 m_Flag(pFlag), 24 m_Size(pSize), 25 m_Offset(pOffset), 26 m_Addr(pAddr), 27 m_Align(0), 28 m_Info(0), 29 m_pLink(NULL), 30 m_pSectionData(NULL), 31 m_Index(0) { 32} 33 34