diff options
| author | George Rimar <grimar@accesssoftek.com> | 2016-06-20 11:55:12 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2016-06-20 11:55:12 +0000 |
| commit | d3566309eb7d12b4c0b3ea9c9f599ec0ce034853 (patch) | |
| tree | ef27be0f35ee33e20947c554fc30eaa9b27cf4b9 /lld/ELF/Symbols.cpp | |
| parent | 7b8481bf95b30da7f16fd04c6e88d7b1a80b7f1b (diff) | |
| download | bcm5719-llvm-d3566309eb7d12b4c0b3ea9c9f599ec0ce034853.tar.gz bcm5719-llvm-d3566309eb7d12b4c0b3ea9c9f599ec0ce034853.zip | |
[ELF] - Recommit r273143("[ELF] - Basic versioned symbols support implemented.")
With fix:
-soname flag was not set in testcase. Hash calculated for base def was different on local
and bot machines because filename fos used for calculating.
Initial commit message:
Patch implements basic support of versioned symbols.
There is no wildcards patterns matching except local: *;
There is no support for hierarchies.
There is no support for symbols overrides (@ vs @@ not handled).
This patch allows programs that using simple scripts to link and run.
Differential revision: http://reviews.llvm.org/D21018
llvm-svn: 273152
Diffstat (limited to 'lld/ELF/Symbols.cpp')
| -rw-r--r-- | lld/ELF/Symbols.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp index 0ba571b7e9a..9fd5de2220e 100644 --- a/lld/ELF/Symbols.cpp +++ b/lld/ELF/Symbols.cpp @@ -267,7 +267,7 @@ std::string elf::demangle(StringRef Name) { bool Symbol::includeInDynsym() const { if (Visibility != STV_DEFAULT && Visibility != STV_PROTECTED) return false; - return (ExportDynamic && VersionScriptGlobal) || body()->isShared() || + return (ExportDynamic && VersionId != VER_NDX_LOCAL) || body()->isShared() || (body()->isUndefined() && Config->Shared); } |

