blob: aa41f3642f83d4f418d9796879c7b07649c7ddb6 [file] [log] [blame]
//===- MipsELFSectLinker.cpp ----------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "MipsELFSectLinker.h"
#include <mcld/CodeGen/SectLinkerOption.h>
using namespace mcld;
MipsELFSectLinker::MipsELFSectLinker(SectLinkerOption &pOption,
TargetLDBackend &pLDBackend)
: SectLinker(pOption,
pLDBackend) {
MCLDInfo &info = pOption.info();
// set up target-dependent constraints of attibutes
info.attrFactory().constraint().enableWholeArchive();
info.attrFactory().constraint().disableAsNeeded();
info.attrFactory().constraint().setSharedSystem();
// set up the predefined attributes
info.attrFactory().predefined().setWholeArchive();
info.attrFactory().predefined().setDynamic();
}
MipsELFSectLinker::~MipsELFSectLinker()
{
}