summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86AndroidSectLinker.cpp
blob: 91b466cded3501c969d3256f95b09f2fbbd095cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===- X86AndroidSectLinker.cpp -------------------------------------------===//
//
//                     The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "X86AndroidSectLinker.h"

#include <mcld/CodeGen/SectLinkerOption.h>

using namespace mcld;

X86AndroidSectLinker::X86AndroidSectLinker(SectLinkerOption &pOption,
                                           TargetLDBackend &pLDBackend)
  : AndroidSectLinker(pOption,
                      pLDBackend) {
  MCLDInfo &info = pOption.info();
  // set up target-dependent constraints of attibutes
  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();

}

X86AndroidSectLinker::~X86AndroidSectLinker()
{
}