2 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%s
-o
%t
4 // RUN
: ld.lld
%t -shared
-o
%tout.so
5 // RUN
: llvm-readobj
--dyn-syms
%tout.so | FileCheck
-check-prefix
=GNU
%s
6 // RUN
: ld.lld
%t -shared
-o
%tout.so
--gnu-unique
7 // RUN
: llvm-readobj
--dyn-syms
%tout.so | FileCheck
-check-prefix
=GNU
%s
9 // RUN
: ld.lld
%t -shared
-o
%tout.so
--no-gnu-unique
10 // RUN
: llvm-readobj
--dyn-syms
%tout.so | FileCheck
-check-prefix
=NO
%s
12 // Check that STB_GNU_UNIQUE is treated as
a global
and ends up in the dynamic
13 // symbol table as STB_GNU_UNIQUE.
20 .type symb, @gnu_unique_object
26 # GNU-NEXT: Binding: Unique
27 # GNU-NEXT: Type: Object
29 # GNU-NEXT: Section: .data
35 # NO-NEXT: Binding: Global
36 # NO-NEXT: Type: Object
38 # NO-NEXT: Section: .data