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-10-01 01:26:13 +08:00
|
|
|
bool AllowMultipleDefinition;
|
|
|
|
bool DiscardAll;
|
|
|
|
bool DiscardLocals;
|
|
|
|
bool DiscardNone;
|
|
|
|
bool ExportDynamic;
|
|
|
|
bool NoInhibitExec;
|
|
|
|
bool Shared;
|
2015-10-02 00:42:03 +08:00
|
|
|
bool Static = false;
|
2015-07-25 05:03:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern Configuration *Config;
|
|
|
|
|
|
|
|
} // namespace elf2
|
|
|
|
} // namespace lld
|
|
|
|
|
|
|
|
#endif
|