xref: /llvm-project/lld/test/ELF/hidden-vis-shared.s (revision 8465d083921c56ac35d2c292da316dd470641ef2)
1// REQUIRES: x86
2
3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
5// RUN: ld.lld -shared %t2.o -o %t2.so
6// RUN: ld.lld %t.o %t2.so -o %t
7// RUN: llvm-readobj -r %t | FileCheck %s
8// RUN: ld.lld %t2.so %t.o -o %t
9// RUN: llvm-readobj -r %t | FileCheck %s
10
11// CHECK:      Relocations [
12// CHECK-NEXT: ]
13
14.global _start
15_start:
16callq   bar
17.hidden bar
18.weak   bar
19