Go to file
George Rimar 4d2f976208 [ELF] - Resolve references properly when using .symver directive
This is PR28414. 
Previously LLD was unable to link following:
(failed with undefined symbol bar)

Version script:
SOME_VERSION { global: *; };

.global _start
.global bar
.symver _start, bar@@SOME_VERSION
_start:
  jmp bar
Manual has next description:

.symver name, name2@@nodename
In this case, the symbol name must exist and be defined within the file being assembled. It is similar to name2@nodename. 
The difference is name2@@nodename will also be used to resolve references to name2 by the linker
https://sourceware.org/binutils/docs/as/Symver.html

Patch implements that. If we have name@@ver symbol and name is undefined, name@@ver is used to resolve references to name.
If name is defined then multiple definition error is emited, that is consistent with what bfd do.

Differential revision: https://reviews.llvm.org/D33680

llvm-svn: 307077
2017-07-04 13:19:13 +00:00
clang [index] Index nested name qualifiers in a forward declaration of a 2017-07-04 12:50:53 +00:00
clang-tools-extra ClangdServer.cpp: Suppress a warning. [-Wunused-lambda-capture] 2017-07-04 12:12:14 +00:00
compiler-rt fix trivial typos in comments; NFC 2017-07-03 06:44:05 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx Revert "[libcxx] Annotate c++17 aligned new/delete operators with availability" 2017-06-30 18:50:23 +00:00
libcxxabi Add some catch(...) blocks to the tests so that if they fail, we get a good error message. No functional change. 2017-06-22 00:49:03 +00:00
libunwind [libunwind] Add _LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS 2017-06-27 18:37:06 +00:00
lld [ELF] - Resolve references properly when using .symver directive 2017-07-04 13:19:13 +00:00
lldb Update lldb architecture docs 2017-07-04 12:29:34 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm fix trivial typos in comments; NFC 2017-07-04 13:09:29 +00:00
openmp OpenMP RTL cleanup: eliminated warnings with -Wcast-qual. 2017-07-03 11:24:08 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Introduce a hybrid target to generate code for either the GPU or CPU 2017-06-30 19:42:21 +00:00