1 // REQUIRES
: aarch64
, x86
2 // RUN
: llvm-mc
%s
-o
%t.o
-filetype
=obj
--triple
=x86_64-unknown-linux
3 // RUN
: ld.lld
%t.o
-o
%t --export-dynamic
--gc-sections
-z max-page-size
=65536
4 // RUN
: llvm-readelf
-S
-s
%t | FileCheck
%s
6 // RUN
: llvm-mc
%s
-o
%t.o
-filetype
=obj
--triple
=aarch64
7 // RUN
: ld.lld
%t.o
-o
%t --export-dynamic
--gc-sections
8 // RUN
: llvm-readelf
-S
-s
%t | FileCheck
%s
10 // This is basically lld
/docs
/partitions.dot in object file form.
11 // Test that the sections are correctly allocated to partitions.
12 // part1
and part2 should
be aligned to
a maximum page size boundary.
14 // CHECK
: [[MAIN
:[0-9]+]]] .text
15 // CHECK
: part1 LLVM_PART_EHDR
{{[0-9a-f
]+}}0000 {{[0-9a-f
]+}}0000
16 // CHECK
: [[P1
:[0-9]+]]] .text
17 // CHECK
: part2 LLVM_PART_EHDR
{{[0-9a-f
]+}}0000 {{[0-9a-f
]+}}0000
18 // CHECK
: [[P2
:[0-9]+]]] .text
20 // CHECK
: Symbol table
'.symtab'
27 // CHECK
: [[MAIN
]] _start
29 .section .llvm_sympart.f1,"",@llvm_sympart
33 .section .llvm_sympart.f2,"",@llvm_sympart
37 .section .text._start,"ax",@progbits
42 .section .text.f1,"ax",@progbits
49 .section .text.f2,"ax",@progbits
56 .section .text.f3,"ax",@progbits
60 .section .text.f4,"ax",@progbits
64 .section .text.f5,"ax",@progbits
68 .section .text.f6,"ax",@progbits