]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/x86.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / x86.test
1 # Source for input file: reloc-xb.x86
2 # xb.S:
3 # .section .text, "ax", @progbits
4 # .align 0x4
5 # .globl _start
6 # _start:
7 # .globl back
8 # back:
9 #   call target
10 #
11 # Source for input file: reloc-xt.x86
12 # xt.S:
13 # .section .text, "ax", @progbits
14 #
15 # .globl target
16 # target:
17 #     call back
18 #
19 # Assembled with: "as --32"
20
21 RUN: lld -flavor gnu -target i386 -e back --output-filetype=yaml %p/Inputs/reloc-xb.x86 %p/Inputs/reloc-xt.x86 | FileCheck %s     -check-prefix x86-yaml
22
23 x86-yaml:    - name:              back
24 x86-yaml:      scope:             global
25 x86-yaml:      content:           [ E8, FC, FF, FF, FF ]
26 x86-yaml:      references:
27 x86-yaml:      - kind:              R_386_PC32
28 x86-yaml:        offset:            1
29 x86-yaml:        target:            target
30
31 x86-yaml:    - name:              target
32 x86-yaml:      scope:             global
33 x86-yaml:      content:           [ E8, FC, FF, FF, FF ]
34 x86-yaml:      references:
35 x86-yaml:      - kind:              R_386_PC32
36 x86-yaml:        offset:            1
37 x86-yaml:        target:            back
38