[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / icf6.s
blobf01657e2f38b07c169cddbeda3846d683eee5486
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
6 .globl _start, f1, f2
7 _start:
8 ret
10 .section .init, "ax"
11 f1:
12 mov $60, %rax
13 mov $42, %rdi
14 syscall
16 .section .fini, "ax"
17 f2:
18 mov $60, %rax
19 mov $42, %rdi
20 syscall