blob: d9c3a4b43f8333f4f63b8e6b320864dece830026 (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
//===- Config.h -------------------------------------------------*- C++ -*-===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_ELF_CONFIG_H
#define LLD_ELF_CONFIG_H
#include "llvm/ADT/StringRef.h"
#include <vector>
namespace lld {
namespace elf2 {
struct Configuration {
llvm::StringRef DynamicLinker;
llvm::StringRef Entry;
llvm::StringRef Fini = "_fini";
llvm::StringRef Init = "_init";
llvm::StringRef OutputFile = "a.out";
llvm::StringRef SoName;
llvm::StringRef Sysroot;
std::string RPath;
std::vector<llvm::StringRef> InputSearchPaths;
bool AllowMultipleDefinition;
bool DiscardAll;
bool DiscardLocals;
bool DiscardNone;
bool ExportDynamic;
bool NoInhibitExec;
bool NoUndefined;
bool Shared;
bool Static = false;
bool WholeArchive = false;
};
extern Configuration *Config;
} // namespace elf2
} // namespace lld
#endif
|