forked from OSchip/llvm-project
29 lines
969 B
Plaintext
29 lines
969 B
Plaintext
# RUN: lld -flavor gnu -target x86_64 --defsym=foo=0x1234 -r %s \
|
|
# RUN: --output-filetype=yaml | FileCheck -check-prefix=ABS %s
|
|
|
|
# RUN: lld -flavor gnu -target x86_64 --defsym=foo=main -r %s \
|
|
# RUN: --output-filetype=yaml | FileCheck -check-prefix=ALIAS %s
|
|
|
|
defined-atoms:
|
|
- name: main
|
|
scope: global
|
|
content: [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00, 00, C3 ]
|
|
alignment: 2^4
|
|
section-choice: custom-required
|
|
section-name: .text
|
|
|
|
# ABS: absolute-atoms:
|
|
# ABS: - name: foo
|
|
# ABS: scope: global
|
|
# ABS: value: 0x0000000000001234
|
|
|
|
# ALIAS: defined-atoms:
|
|
# ALIAS: - name: foo
|
|
# ALIAS: scope: global
|
|
# ALIAS: section-choice: custom-required
|
|
# ALIAS: section-name: .text
|
|
# ALIAS: references:
|
|
# ALIAS: - kind: layout-after
|
|
# ALIAS: offset: 0
|
|
# ALIAS: target: main
|