]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/no-inhibit-exec.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / no-inhibit-exec.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: not ld.lld %t -o %t2
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
7
8 # CHECK: Disassembly of section .text:
9 # CHECK-NEXT: _start
10 # CHECK-NEXT: 201000: {{.*}} callq -2101253
11
12 # RELOC:      Relocations [
13 # RELOC-NEXT: ]
14
15 # next code will not link without noinhibit-exec flag
16 # because of undefined symbol _bar
17 .globl _start
18 _start:
19   call _bar