summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Config.h')
-rw-r--r--lld/ELF/Config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index be8059b46a9..d199db922cc 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -32,6 +32,15 @@ enum ELFKind {
enum class BuildIdKind { None, Fnv1, Md5, Sha1, Hexstring };
+// This struct contains symbols version definition that
+// can be found in version script if it is used for link.
+struct Version {
+ Version(llvm::StringRef Name) : Name(Name) {}
+ llvm::StringRef Name;
+ std::vector<llvm::StringRef> Globals;
+ size_t NameOff; // Offset in string table.
+};
+
// This struct contains the global configuration for the linker.
// Most fields are direct mapping from the command line options
// and such fields have the same name as the corresponding options.
@@ -50,6 +59,7 @@ struct Configuration {
llvm::StringRef SoName;
llvm::StringRef Sysroot;
std::string RPath;
+ std::vector<Version> SymbolVersions;
std::vector<llvm::StringRef> DynamicList;
std::vector<llvm::StringRef> SearchPaths;
std::vector<llvm::StringRef> Undefined;
OpenPOWER on IntegriCloud