[PATCH] D39394: Do not consider Shared symbols as defined symbols.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 5 20:14:04 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL317446: Do not consider Shared symbols as defined symbols. (authored by ruiu).
Changed prior to commit:
https://reviews.llvm.org/D39394?vs=121607&id=121676#toc
Repository:
rL LLVM
https://reviews.llvm.org/D39394
Files:
lld/trunk/ELF/Symbols.h
Index: lld/trunk/ELF/Symbols.h
===================================================================
--- lld/trunk/ELF/Symbols.h
+++ lld/trunk/ELF/Symbols.h
@@ -40,9 +40,9 @@
enum Kind {
DefinedFirst,
DefinedRegularKind = DefinedFirst,
- SharedKind,
DefinedCommonKind,
DefinedLast = DefinedCommonKind,
+ SharedKind,
UndefinedKind,
LazyArchiveKind,
LazyObjectKind,
@@ -247,13 +247,13 @@
static bool classof(const Symbol *S) { return S->kind() == UndefinedKind; }
};
-class SharedSymbol : public Defined {
+class SharedSymbol : public Symbol {
public:
static bool classof(const Symbol *S) { return S->kind() == SharedKind; }
SharedSymbol(StringRef Name, uint8_t StOther, uint8_t Type, uint64_t Value,
uint64_t Size, uint32_t Alignment, const void *Verdef)
- : Defined(SharedKind, Name, /*IsLocal=*/false, StOther, Type),
+ : Symbol(SharedKind, Name, /*IsLocal=*/false, StOther, Type),
Verdef(Verdef), Value(Value), Size(Size), Alignment(Alignment) {
// GNU ifunc is a mechanism to allow user-supplied functions to
// resolve PLT slot values at load-time. This is contrary to the
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39394.121676.patch
Type: text/x-patch
Size: 1179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171106/51b094f6/attachment.bin>
More information about the llvm-commits
mailing list