2 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%s
-o
%t.o
3 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%p
/Inputs
/merge.s
-o
%t2.o
4 // RUN
: ld.lld
%t.o
%t2.o
-o
%t
5 // RUN
: llvm-readelf
-S
-s
-x
.mysec %t | FileCheck %s
6 // RUN
: llvm-objdump
-d
%t | FileCheck
--check-prefix
=DISASM
%s
8 // CHECK
: Name Type Address Off Size ES Flg Lk Inf Al
9 // CHECK
: .mysec PROGBITS 0000000000200120 000120 000008 04 AM 0 0 4
11 // CHECK-DAG
: 0000000000200120 0 NOTYPE LOCAL DEFAULT
1 bar
12 // CHECK-DAG
: 0000000000200120 0 NOTYPE LOCAL DEFAULT
1 zed
13 // CHECK-DAG
: 0000000000200120 0 NOTYPE LOCAL HIDDEN
1 foo
15 // CHECK
: Hex dump of section
'.mysec':
16 // CHECK-NEXT
: 0x00200120 42000000 10000000
18 .section .mysec,"aM",@progbits,4
33 // DISASM
: Disassembly of section
.text:
35 // DISASM-NEXT
: <_start
>:
39 // DISASM-NEXT
: movl
0x200124, %eax
43 // DISASM-NEXT
: movl
0x200123, %eax
47 // DISASM-NEXT
: movl
0x200120, %eax
51 // DISASM-NEXT
: movl
0x200127, %eax
55 // DISASM-NEXT
: movl
0x200128, %eax
59 // DISASM-NEXT
: movl
0x200120, %eax
63 // DISASM-NEXT
: movl
0x200127, %eax
67 // DISASM-NEXT
: movl
0x200128, %eax
69 // From the other file
: movl
.mysec, %eax
71 // DISASM-NEXT
: movl
0x200120, %eax