diff options
author | 2020-08-03 14:32:29 +0000 | |
---|---|---|
committer | 2020-08-03 14:32:29 +0000 | |
commit | ece8a53058b183aa0a669e21c57225431117089d (patch) | |
tree | d015158a7940b850696bd234528db6544daf9a69 /gnu/llvm/lld/ELF/ScriptParser.h | |
parent | Import LLVM 10.0.0 release including clang, lld and lldb. (diff) | |
download | wireguard-openbsd-ece8a53058b183aa0a669e21c57225431117089d.tar.xz wireguard-openbsd-ece8a53058b183aa0a669e21c57225431117089d.zip |
Import LLVM 10.0.0 release including clang, lld and lldb.
ok hackroom
tested by plenty
Diffstat (limited to 'gnu/llvm/lld/ELF/ScriptParser.h')
-rw-r--r-- | gnu/llvm/lld/ELF/ScriptParser.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/llvm/lld/ELF/ScriptParser.h b/gnu/llvm/lld/ELF/ScriptParser.h new file mode 100644 index 00000000000..c953fb302b9 --- /dev/null +++ b/gnu/llvm/lld/ELF/ScriptParser.h @@ -0,0 +1,33 @@ +//===- ScriptParser.h -------------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLD_ELF_SCRIPT_PARSER_H +#define LLD_ELF_SCRIPT_PARSER_H + +#include "lld/Common/LLVM.h" +#include "llvm/Support/MemoryBuffer.h" + +namespace lld { +namespace elf { + +// Parses a linker script. Calling this function updates +// lld::elf::config and lld::elf::script. +void readLinkerScript(MemoryBufferRef mb); + +// Parses a version script. +void readVersionScript(MemoryBufferRef mb); + +void readDynamicList(MemoryBufferRef mb); + +// Parses the defsym expression. +void readDefsym(StringRef name, MemoryBufferRef mb); + +} // namespace elf +} // namespace lld + +#endif |