2016-07-23 20:48:50 +00:00
|
|
|
//===- ScriptParser.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_SCRIPT_PARSER_H
|
|
|
|
#define LLD_ELF_SCRIPT_PARSER_H
|
|
|
|
|
|
|
|
#include "lld/Core/LLVM.h"
|
2017-01-02 19:19:15 +00:00
|
|
|
#include "llvm/Support/MemoryBuffer.h"
|
2016-07-23 20:48:50 +00:00
|
|
|
|
|
|
|
namespace lld {
|
|
|
|
namespace elf {
|
|
|
|
|
2017-04-16 16:03:39 +00:00
|
|
|
// Parses a linker script. Calling this function updates
|
|
|
|
// Config and ScriptConfig.
|
|
|
|
void readLinkerScript(MemoryBufferRef MB);
|
|
|
|
|
|
|
|
// Parses a version script.
|
|
|
|
void readVersionScript(MemoryBufferRef MB);
|
|
|
|
|
|
|
|
void readDynamicList(MemoryBufferRef MB);
|
2016-07-23 20:48:50 +00:00
|
|
|
|
|
|
|
} // namespace elf
|
|
|
|
} // namespace lld
|
|
|
|
|
|
|
|
#endif
|