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