llvm-project/lld/test/fixups-addend.objtxt

51 lines
1.2 KiB
Plaintext

# RUN: lld-core %s | FileCheck %s
#
# Test addends in fixups
#
---
atoms:
- name: foo
type: code
content: [ 48, 8D, 3D, 00, 00, 00, 00,
48, 8D, 3D, 00, 00, 00, 00 ]
fixups:
- offset: 3
kind: 3
target: bar
addend: 100
- offset: 10
kind: 3
target: bar
addend: -50
- name: func
type: code
content: [ 48, 8D, 3D, 00, 00, 00, 00,
48, 8D, 3D, 00, 00, 00, 00 ]
fixups:
- offset: 3
kind: 3
target: bar
addend: 8000000000
- offset: 10
kind: 3
target: bar
addend: -50
- name: bar
definition: undefined
...
# CHECK: name: foo
# CHECK: fixups:
# CHECK: addend: 100
# CHECK: addend: -50
# CHECK: name: func
# CHECK: fixups:
# CHECK: addend: 8000000000
# CHECK: addend: -50