[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / linkorder-err2.s
blobccacd00768b2e7361c6c7a99f047aafc28368042
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
6 ## Check we do not crash and report proper errors.
7 # CHECK: error: a section .bar with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}.o:(.foo)
8 # CHECK-NEXT: error: a section .bar with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}.o:(.foo)
10 .section .foo,"aM",@progbits,8
11 .quad 0
13 .section .bar,"ao",@progbits,.foo,unique,1
14 .quad 0
16 .section .bar,"ao",@progbits,.foo,unique,2
17 .quad 1