blob: fe7a2cc73faebc02bca088c6574c1bef57ac4429 [file] [log] [blame]
Shih-wei Liao5460a1f2012-03-16 22:41:16 -07001//===- 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
14using namespace mcld;
15
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
Shih-wei Liaod8a75232012-04-25 09:36:12 -070032X86AndroidSectLinker::~X86AndroidSectLinker() {
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070033}