[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / no-inhibit-exec.s
blobabf93f1c6545ad160366ed3f3f2fbdcf51ab2c8a
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: not ld.lld %t -o /dev/null
4 # RUN: ld.lld %t --noinhibit-exec -o %t2
5 # RUN: llvm-objdump -d %t2 | FileCheck %s
6 # RUN: llvm-readobj -r %t2 | FileCheck %s --check-prefix=RELOC
8 # RUN: ld.lld %t -w --noinhibit-exec -o /dev/null 2>&1 | count 0
10 # CHECK: Disassembly of section .text:
11 # CHECK-EMPTY:
12 # CHECK-NEXT: _start
13 # CHECK-NEXT: 201120: {{.*}} callq 0x0
15 # RELOC: Relocations [
16 # RELOC-NEXT: ]
18 # next code will not link without noinhibit-exec flag
19 # because of undefined symbol _bar
20 .globl _start
21 _start:
22 call _bar