1 //===- X86AndroidSectLinker.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 "X86AndroidSectLinker.h" 11 12 #include <mcld/CodeGen/SectLinkerOption.h> 13 14 using namespace mcld; 15 X86AndroidSectLinker(SectLinkerOption & pOption,TargetLDBackend & pLDBackend)16X86AndroidSectLinker::X86AndroidSectLinker(SectLinkerOption &pOption, 17 TargetLDBackend &pLDBackend) 18 : AndroidSectLinker(pOption, 19 pLDBackend) { 20 MCLDInfo &info = pOption.info(); 21 // set up target-dependent constraints of attibutes 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 ~X86AndroidSectLinker()32X86AndroidSectLinker::~X86AndroidSectLinker() { 33 } 34