3 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%s
-o
%t1.o
4 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux \
5 // RUN
: %p
/Inputs
/start-lib-comdat.s
-o
%t2.o
6 // RUN
: ld.lld
-shared
-o
%t3
%t1.o
--start-lib
%t2.o
--end-lib
7 // RUN
: llvm-readobj
--dyn-syms
%t3 | FileCheck
%s
8 // RUN
: ld.lld
-shared
-o
%t3
--start-lib
%t2.o
--end-lib
%t1.o
9 // RUN
: llvm-readobj
--dyn-syms
%t3 | FileCheck
%s
14 // CHECK-NEXT
: Binding
: Global
17 // CHECK-NEXT
: Section
: .sec
20 // The other file also has
a section in the zed comdat
, but it defines the
21 // symbol zed. That means that we will have
a lazy symbol zed
, but when adding
22 // the actual file zed will
be undefined.
23 .section .sec,"aG",@progbits,zed,comdat