blob: 42d922e7dc98575f9c878cd48f01baeae6f3255e [file] [log] [blame]
George Rimar57813382017-03-16 12:17:49 +00001# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o
3# RUN: echo "FOOVER { global: *; };" > %t.script
4# RUN: ld.lld --version-script %t.script -shared %t1.o -o %t.so
5# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
6# RUN: ld.lld %t2.o %t.so -o %tout
7# RUN: llvm-readobj -dyn-symbols %tout | FileCheck %s
8
9# CHECK: DynamicSymbols [
10# CHECK: Symbol {
11# CHECK: Name: foo@FOOVER
12# CHECK-NEXT: Value:
13# CHECK-NEXT: Size:
14# CHECK-NEXT: Binding: Global
15# CHECK-NEXT: Type: Object
16# CHECK-NEXT: Other:
17# CHECK-NEXT: Section: .bss.rel.ro
18# CHECK-NEXT: }
19# CHECK-NEXT: ]
20
21.text
22.global _start
23_start:
24movl $0, foo