| // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o |
| // RUN: ld.lld %t.o -o %t.so -shared |
| // RUN: llvm-readobj -r --symbols %t.so | FileCheck %s |
| // CHECK-NEXT: Section {{.*}} .rela.dyn { |
| // CHECK-NEXT: R_X86_64_RELATIVE |
| // CHECK-NEXT: R_X86_64_RELATIVE |
| // Test that we are able to hide the symbol. |
| // By default the symbol is protected. |
| // CHECK: Name: __start_bar |
| // CHECK-NEXT: Binding: Local |
| // CHECK-NEXT: Type: None |
| // CHECK-NEXT: STV_HIDDEN |
| // CHECK: Name: __start_foo |
| // CHECK-NEXT: Binding: Global |
| // CHECK-NEXT: Type: None |
| // CHECK-NEXT: STV_PROTECTED |