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