Shih-wei Liao | 5460a1f | 2012-03-16 22:41:16 -0700 | [diff] [blame] | 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 | |
| 16 | X86AndroidSectLinker::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 Liao | d8a7523 | 2012-04-25 09:36:12 -0700 | [diff] [blame] | 32 | X86AndroidSectLinker::~X86AndroidSectLinker() { |
Shih-wei Liao | 5460a1f | 2012-03-16 22:41:16 -0700 | [diff] [blame] | 33 | } |