2012-10-26 01:53:04 +08:00
|
|
|
# Source for input file: reloc-xb.x86
|
|
|
|
# xb.S:
|
|
|
|
# .section .text, "ax", @progbits
|
|
|
|
# .align 0x4
|
|
|
|
# .globl _start
|
|
|
|
# _start:
|
|
|
|
# .globl back
|
|
|
|
# back:
|
|
|
|
# call target
|
|
|
|
#
|
|
|
|
# Source for input file: reloc-xt.x86
|
|
|
|
# xt.S:
|
|
|
|
# .section .text, "ax", @progbits
|
|
|
|
#
|
|
|
|
# .globl target
|
|
|
|
# target:
|
|
|
|
# call back
|
|
|
|
#
|
|
|
|
# Assembled with: "as --32"
|
|
|
|
|
2013-09-23 12:24:15 +08:00
|
|
|
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
|
2012-10-26 01:53:04 +08:00
|
|
|
|
|
|
|
x86-yaml: - name: back
|
|
|
|
x86-yaml: scope: global
|
|
|
|
x86-yaml: content: [ E8, FC, FF, FF, FF ]
|
2013-01-09 05:12:13 +08:00
|
|
|
x86-yaml: references:
|
2013-04-05 02:59:24 +08:00
|
|
|
x86-yaml: - kind: R_386_PC32
|
2013-01-05 10:22:35 +08:00
|
|
|
x86-yaml: offset: 1
|
2012-10-26 01:53:04 +08:00
|
|
|
x86-yaml: target: target
|
|
|
|
|
|
|
|
x86-yaml: - name: target
|
|
|
|
x86-yaml: scope: global
|
|
|
|
x86-yaml: content: [ E8, FC, FF, FF, FF ]
|
2013-01-09 05:12:13 +08:00
|
|
|
x86-yaml: references:
|
2013-04-05 02:59:24 +08:00
|
|
|
x86-yaml: - kind: R_386_PC32
|
2013-01-05 10:22:35 +08:00
|
|
|
x86-yaml: offset: 1
|
2012-10-26 01:53:04 +08:00
|
|
|
x86-yaml: target: back
|
|
|
|
|