Files
clang-p2996/lld/test/ELF/version-script-copy-rel.s
George Rimar 5781338f0e [ELF] - Added test for versioned symbols involved in copy relocations.
This test would have been broken if we convert SharedSymbols
to DefinerRegular without saving the symbol version information when
creating .bss/.bss.rel.ro sections for copy relocations.

Relative to D30541, PR32167

llvm-svn: 297948
2017-03-16 12:17:49 +00:00

25 lines
719 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o
# RUN: echo "FOOVER { global: *; };" > %t.script
# RUN: ld.lld --version-script %t.script -shared %t1.o -o %t.so
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
# RUN: ld.lld %t2.o %t.so -o %tout
# RUN: llvm-readobj -dyn-symbols %tout | FileCheck %s
# CHECK: DynamicSymbols [
# CHECK: Symbol {
# CHECK: Name: foo@FOOVER
# CHECK-NEXT: Value:
# CHECK-NEXT: Size:
# CHECK-NEXT: Binding: Global
# CHECK-NEXT: Type: Object
# CHECK-NEXT: Other:
# CHECK-NEXT: Section: .bss.rel.ro
# CHECK-NEXT: }
# CHECK-NEXT: ]
.text
.global _start
_start:
movl $0, foo