mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-13 05:40:59 +00:00
![Peter Collingbourne](/assets/img/avatar_default.png)
This patch only implements support for version scripts of the form: { [ global: symbol1; symbol2; [...]; symbolN; ] local: *; }; No wildcards are supported, other than for the local entry. Symbol versioning is also not supported. It works by introducing a new Symbol flag which tracks whether a symbol appears in the global section of a version script. This patch also simplifies the logic in SymbolBody::isPreemptible(), and teaches it to handle the case where symbols with default visibility in DSOs do not appear in the dynamic symbol table because of a version script. Fixes PR27482. Differential Revision: http://reviews.llvm.org/D19430 llvm-svn: 267208
26 lines
639 B
C++
26 lines
639 B
C++
//===- SymbolListFile.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_SYMBOL_LIST_FILE_H
|
|
#define LLD_ELF_SYMBOL_LIST_FILE_H
|
|
|
|
#include "lld/Core/LLVM.h"
|
|
#include "llvm/Support/MemoryBuffer.h"
|
|
|
|
namespace lld {
|
|
namespace elf {
|
|
|
|
void parseDynamicList(MemoryBufferRef MB);
|
|
void parseVersionScript(MemoryBufferRef MB);
|
|
|
|
} // namespace elf
|
|
} // namespace lld
|
|
|
|
#endif
|