LDFileFormat.cpp revision 5460a1f25d9ddecb5c70667267d66d51af177a99
1//===- LDFileFormat.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/LDFileFormat.h> 10#include <mcld/MC/MCLinker.h> 11 12using namespace mcld; 13 14//========================== 15// LDFileInfo 16LDFileFormat::LDFileFormat() 17 : f_pTextSection(NULL), 18 f_pDataSection(NULL), 19 f_pBSSSection(NULL), 20 f_pReadOnlySection(NULL) { 21} 22 23LDFileFormat::~LDFileFormat() 24{ 25} 26 27void LDFileFormat::initStdSections(MCLinker& pLinker) 28{ 29 initObjectFormat(pLinker); 30 initObjectType(pLinker); 31} 32 33