20 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld -shared %t.o -o %t5# RUN: llvm-readobj --symbols %t | FileCheck %s6# CHECK: Name: __dso_handle7# CHECK-NEXT: Value: 0x08# CHECK-NEXT: Size: 09# CHECK-NEXT: Binding: Local10# CHECK-NEXT: Type: None11# CHECK-NEXT: Other [12# CHECK-NEXT: STV_HIDDEN13# CHECK-NEXT: ]14# CHECK-NEXT: Section: .dynsym15 16.text17.global foo, __dso_handle18foo:19 lea __dso_handle(%rip),%rax20