llvm-project/lld/test/elf/branch.objtxt

35 lines
1.5 KiB
Plaintext
Raw Normal View History

RUN: lld-core -arch hexagon -reader ELF %p/Inputs/branch-test.hexagon %p/Inputs/target-test.hexagon | FileCheck %s -check-prefix hexagon-yaml
RUN: lld-core -arch hexagon -reader ELF -writer ELF -o %t1 %p/Inputs/branch-test.hexagon %p/Inputs/target-test.hexagon
RUN: elf-dump %t1 | FileCheck -check-prefix=hexagon-elfdump %s
hexagon-yaml: - name: back
hexagon-yaml: scope: global
hexagon-yaml: content: [ 00, C0, 00, 7F, 00, C0, 00, 5A, 00, 00, 00, 00,
hexagon-yaml: 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 ]
hexagon-yaml: section-choice: custom-required
hexagon-yaml: section-name: .text
hexagon-yaml: references:
hexagon-yaml: - kind:
hexagon-yaml: offset: 4
hexagon-yaml: target: target
hexagon-yaml: - name: target
hexagon-yaml: scope: global
hexagon-yaml: content: [ 00, C0, 00, 5A ]
hexagon-yaml: section-choice: custom-required
hexagon-yaml: section-name: .text
hexagon-yaml: references:
hexagon-yaml: - kind:
hexagon-yaml: offset: 0
hexagon-yaml: target: back
hexagon-elfdump: ('e_indent[EI_CLASS]', 0x01)
hexagon-elfdump: ('e_indent[EI_DATA]', 0x01)
hexagon-elfdump: ('e_indent[EI_VERSION]', 0x01)
hexagon-elfdump: ('e_indent[EI_OSABI]', 0x00)
hexagon-elfdump: ('e_indent[EI_ABIVERSION]', 0x00)
hexagon-elfdump: ('e_type', 0x0002)
hexagon-elfdump: ('e_machine', 0x00a4)