• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
12 using namespace mcld;
13 
14 //==========================
15 // LDFileInfo
LDFileFormat()16 LDFileFormat::LDFileFormat()
17   : f_pTextSection(NULL),
18     f_pDataSection(NULL),
19     f_pBSSSection(NULL),
20     f_pReadOnlySection(NULL) {
21 }
22 
~LDFileFormat()23 LDFileFormat::~LDFileFormat()
24 {
25 }
26 
initStdSections(MCLinker & pLinker)27 void LDFileFormat::initStdSections(MCLinker& pLinker)
28 {
29   initObjectFormat(pLinker);
30   initObjectType(pLinker);
31 }
32 
33