Home | History | Annotate | Download | only in Mips
      1 //===- MipsELFSectLinker.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 "MipsELFSectLinker.h"
     11 
     12 #include <mcld/CodeGen/SectLinkerOption.h>
     13 
     14 using namespace mcld;
     15 
     16 MipsELFSectLinker::MipsELFSectLinker(SectLinkerOption &pOption,
     17                                      TargetLDBackend &pLDBackend)
     18   : SectLinker(pOption,
     19                pLDBackend) {
     20   MCLDInfo &info = pOption.info();
     21   // set up target-dependent constraints of attibutes
     22   info.attrFactory().constraint().enableWholeArchive();
     23   info.attrFactory().constraint().disableAsNeeded();
     24   info.attrFactory().constraint().setSharedSystem();
     25 
     26   // set up the predefined attributes
     27   info.attrFactory().predefined().setWholeArchive();
     28   info.attrFactory().predefined().setDynamic();
     29 }
     30 
     31 MipsELFSectLinker::~MipsELFSectLinker()
     32 {
     33 }
     34