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