Files
clang-p2996/lld/test/ELF/relocatable-versioned.s
Rui Ueyama 44a8471227 Fix an issue that lld drops symbol versions for -r.
When we are emitting a relocatable output, we should keep the original
symbol name including "@" part. Previously, we drop that part unconditionally
which resulted in dropping versions from symbols.

Differential Revision: https://reviews.llvm.org/D43307

llvm-svn: 325204
2018-02-15 02:40:58 +00:00

10 lines
219 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
# RUN: ld.lld -o %t2.o -r %t1.o
# RUN: llvm-nm %t2.o | FileCheck %s
# CHECK: foo@VERSION
.global "foo@VERSION"
"foo@VERSION":
ret