diff options
Diffstat (limited to 'test/elf/defsym.objtxt')
-rw-r--r-- | test/elf/defsym.objtxt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/elf/defsym.objtxt b/test/elf/defsym.objtxt new file mode 100644 index 000000000000..e9c3922d5994 --- /dev/null +++ b/test/elf/defsym.objtxt @@ -0,0 +1,28 @@ +# 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 |