23 lines · plain
1# RUN: llvm-mc -triple=x86_64 %s | FileCheck %s --check-prefix=ASM2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t3# RUN: llvm-readelf -h -s %t | FileCheck %s --check-prefix=OBJ4# RUN: llvm-objdump --no-print-imm-hex -d -r --no-show-raw-insn %t | FileCheck %s --check-prefix=DISASM5 6# ASM: .type unique,@gnu_unique_object7 8# OBJ: OS/ABI: UNIX - GNU9# OBJ: Type Bind Vis Ndx Name10# OBJ: OBJECT UNIQUE DEFAULT [[#]] unique11 12# DISASM-LABEL: <.text>:13# DISASM-NEXT: movl $1, 014## unique has a non-local binding. Reference unique instead of .data15# DISASM-NEXT: R_X86_64_32S unique16 17 movl $1, unique18 19.data20.globl unique21.type unique, @gnu_unique_object22unique:23