brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1015 B · fecca56 Raw
40 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t3//4// RUN: ld.lld %t -shared -o %tout.so5// RUN: llvm-readobj --dyn-syms %tout.so | FileCheck -check-prefix=GNU %s6// RUN: ld.lld %t -shared -o %tout.so --gnu-unique7// RUN: llvm-readobj --dyn-syms %tout.so | FileCheck -check-prefix=GNU %s8//9// RUN: ld.lld %t -shared -o %tout.so --no-gnu-unique10// RUN: llvm-readobj --dyn-syms %tout.so | FileCheck -check-prefix=NO %s11 12// Check that STB_GNU_UNIQUE is treated as a global and ends up in the dynamic13// symbol table as STB_GNU_UNIQUE.14 15.global _start16.text17_start:18 19.data20.type symb, @gnu_unique_object21symb:22 23# GNU:        Name: symb24# GNU-NEXT:   Value:25# GNU-NEXT:   Size: 026# GNU-NEXT:   Binding: Unique27# GNU-NEXT:   Type: Object28# GNU-NEXT:   Other: 029# GNU-NEXT:   Section: .data30# GNU-NEXT: }31 32# NO:        Name: symb33# NO-NEXT:   Value:34# NO-NEXT:   Size: 035# NO-NEXT:   Binding: Global36# NO-NEXT:   Type: Object37# NO-NEXT:   Other: 038# NO-NEXT:   Section: .data39# NO-NEXT: }40