blob: a704cfaf0c86327e428504031b63068bb5b49544 [file] [log] [blame]
//===- ARMAndroidSectLinker.cpp -------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "ARMAndroidSectLinker.h"
#include <mcld/CodeGen/SectLinkerOption.h>
using namespace mcld;
ARMAndroidSectLinker::ARMAndroidSectLinker(SectLinkerOption &pOption,
TargetLDBackend &pLDBackend)
: AndroidSectLinker(pOption,
pLDBackend) {
MCLDInfo &info = pOption.info();
// set up target-dependent constraints of attributes
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();
}
ARMAndroidSectLinker::~ARMAndroidSectLinker()
{
}