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