2013-02-23 01:18:53 +08:00
|
|
|
RUN: lld-core -arch hexagon -reader ELF %p/Inputs/branch-test.hexagon %p/Inputs/target-test.hexagon | FileCheck %s -check-prefix hexagon-yaml
|
2012-10-09 10:20:47 +08:00
|
|
|
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 ]
|
2013-01-05 10:22:35 +08:00
|
|
|
hexagon-yaml: section-choice: custom-required
|
|
|
|
hexagon-yaml: section-name: .text
|
2012-10-09 10:20:47 +08:00
|
|
|
|
2013-01-09 05:12:13 +08:00
|
|
|
hexagon-yaml: references:
|
2013-01-05 10:22:35 +08:00
|
|
|
hexagon-yaml: - kind:
|
|
|
|
hexagon-yaml: offset: 4
|
2012-10-09 10:20:47 +08:00
|
|
|
hexagon-yaml: target: target
|
|
|
|
|
|
|
|
hexagon-yaml: - name: target
|
|
|
|
hexagon-yaml: scope: global
|
2013-01-05 10:22:35 +08:00
|
|
|
hexagon-yaml: content: [ 00, C0, 00, 5A ]
|
2012-10-09 10:20:47 +08:00
|
|
|
hexagon-yaml: section-choice: custom-required
|
|
|
|
hexagon-yaml: section-name: .text
|
2013-01-09 05:12:13 +08:00
|
|
|
hexagon-yaml: references:
|
2013-01-05 10:22:35 +08:00
|
|
|
hexagon-yaml: - kind:
|
|
|
|
hexagon-yaml: offset: 0
|
2012-10-09 10:20:47 +08:00
|
|
|
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)
|