2015-08-14 22:12:54 +08:00
|
|
|
//===- Config.h -------------------------------------------------*- C++ -*-===//
|
2015-07-25 05:03:07 +08:00
|
|
|
//
|
|
|
|
// 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"
|
|
|
|
|
2015-09-28 21:11:36 +08:00
|
|
|
#include <vector>
|
|
|
|
|
2015-07-25 05:03:07 +08:00
|
|
|
namespace lld {
|
|
|
|
namespace elf2 {
|
|
|
|
|
|
|
|
struct Configuration {
|
2015-09-12 02:49:42 +08:00
|
|
|
llvm::StringRef DynamicLinker;
|
2015-09-30 06:33:21 +08:00
|
|
|
llvm::StringRef Entry;
|
|
|
|
llvm::StringRef OutputFile = "a.out";
|
|
|
|
llvm::StringRef Sysroot;
|
2015-09-12 05:18:56 +08:00
|
|
|
std::string RPath;
|
2015-09-28 20:52:21 +08:00
|
|
|
std::vector<llvm::StringRef> InputSearchPaths;
|
2015-09-30 06:33:21 +08:00
|
|
|
bool AllowMultipleDefinition = false;
|
2015-09-17 04:45:57 +08:00
|
|
|
bool DiscardAll = false;
|
2015-09-21 05:58:12 +08:00
|
|
|
bool DiscardLocals = false;
|
2015-09-24 23:08:23 +08:00
|
|
|
bool DiscardNone = false;
|
2015-09-23 07:38:23 +08:00
|
|
|
bool ExportDynamic = false;
|
2015-09-26 03:24:57 +08:00
|
|
|
bool NoInhibitExec = false;
|
2015-09-30 06:33:21 +08:00
|
|
|
bool Shared = false;
|
2015-07-25 05:03:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern Configuration *Config;
|
|
|
|
|
|
|
|
} // namespace elf2
|
|
|
|
} // namespace lld
|
|
|
|
|
|
|
|
#endif
|