forked from OSchip/llvm-project
parent
556d84fe03
commit
51b1cc1428
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,144 @@
|
|||
RUN: lld-core -reader ELF %p/Inputs/object-test.elf-i386 | FileCheck %s -check-prefix ELF-i386
|
||||
RUN: lld-core -reader ELF %p/Inputs/object-test.elf-hexagon | FileCheck %s -check-prefix ELF-hexagon
|
||||
|
||||
ELF-i386:atoms:
|
||||
ELF-i386: - name: global_func
|
||||
ELF-i386: scope: global
|
||||
ELF-i386: type: code
|
||||
ELF-i386: section-choice: custom-required
|
||||
ELF-i386: section-name: .text
|
||||
ELF-i386: content: [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 00, 00, 00,
|
||||
ELF-i386: 00, E8, FC, FF, FF, FF, C9, C3 ]
|
||||
|
||||
ELF-i386: - name: static_func
|
||||
ELF-i386: type: code
|
||||
ELF-i386: section-choice: custom-required
|
||||
ELF-i386: section-name: .text
|
||||
ELF-i386: content: [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 07, 00, 00,
|
||||
ELF-i386: 00, E8, FC, FF, FF, FF, C9, C3 ]
|
||||
|
||||
ELF-i386: - name: weak_func
|
||||
ELF-i386: scope: global
|
||||
ELF-i386: merge: asWeak
|
||||
ELF-i386: type: code
|
||||
ELF-i386: section-choice: custom-required
|
||||
ELF-i386: section-name: .text
|
||||
ELF-i386: content: [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 0E, 00, 00,
|
||||
ELF-i386: 00, E8, FC, FF, FF, FF, C9, C3 ]
|
||||
|
||||
ELF-i386: - name: hidden_func
|
||||
ELF-i386: scope: hidden
|
||||
ELF-i386: type: code
|
||||
ELF-i386: section-choice: custom-required
|
||||
ELF-i386: section-name: .text
|
||||
ELF-i386: content: [ 55, 89, E5, 83, EC, 18, C7, 04, 24, 13, 00, 00,
|
||||
ELF-i386: 00, E8, FC, FF, FF, FF, C9, C3 ]
|
||||
|
||||
ELF-i386: - name: no_dead_strip
|
||||
ELF-i386: scope: global
|
||||
ELF-i386: type: code
|
||||
ELF-i386: section-choice: custom-required
|
||||
ELF-i386: section-name: .text
|
||||
ELF-i386: content: [ 55, 89, E5, 5D, C3 ]
|
||||
|
||||
ELF-i386: - name: no_special_section_func
|
||||
ELF-i386: scope: global
|
||||
ELF-i386: type: code
|
||||
ELF-i386: section-choice: custom-required
|
||||
ELF-i386: section-name: .text
|
||||
ELF-i386: content: [ 55, 89, E5, 5D, C3 ]
|
||||
|
||||
ELF-i386: - name: special_section_func
|
||||
ELF-i386: scope: global
|
||||
ELF-i386: type: code
|
||||
ELF-i386: section-choice: custom-required
|
||||
ELF-i386: section-name: special_section
|
||||
ELF-i386: content: [ 55, 89, E5, 5D, C3 ]
|
||||
|
||||
ELF-i386: - name: tentative
|
||||
ELF-i386: scope: global
|
||||
ELF-i386: merge: asTentative
|
||||
ELF-i386: type: zero-fill
|
||||
|
||||
ELF-i386: - name: common_symbol
|
||||
ELF-i386: scope: global
|
||||
ELF-i386: merge: asTentative
|
||||
ELF-i386: type: zero-fill
|
||||
|
||||
ELF-i386: - name: puts
|
||||
ELF-i386: definition: undefined
|
||||
|
||||
ELF-i386: - name: sample.c
|
||||
ELF-i386: definition: absolute
|
||||
ELF-i386: value: 0x0
|
||||
|
||||
ELF-hexagon:atoms:
|
||||
ELF-hexagon: - name: global_func
|
||||
ELF-hexagon: scope: global
|
||||
ELF-hexagon: type: code
|
||||
ELF-hexagon: section-choice: custom-required
|
||||
ELF-hexagon: section-name: .text
|
||||
ELF-hexagon: content: [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78,
|
||||
ELF-hexagon: 00, C0, 00, 5A, 1E, C0, 1E, 96 ]
|
||||
|
||||
ELF-hexagon: - name: static_func
|
||||
ELF-hexagon: type: code
|
||||
ELF-hexagon: section-choice: custom-required
|
||||
ELF-hexagon: section-name: .text
|
||||
ELF-hexagon: content: [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78,
|
||||
ELF-hexagon: 00, C0, 00, 5A, 1E, C0, 1E, 96 ]
|
||||
|
||||
ELF-hexagon: - name: weak_func
|
||||
ELF-hexagon: scope: global
|
||||
ELF-hexagon: merge: asWeak
|
||||
ELF-hexagon: type: code
|
||||
ELF-hexagon: section-choice: custom-required
|
||||
ELF-hexagon: section-name: .text
|
||||
ELF-hexagon: content: [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78,
|
||||
ELF-hexagon: 00, C0, 00, 5A, 1E, C0, 1E, 96 ]
|
||||
|
||||
ELF-hexagon: - name: hidden_func
|
||||
ELF-hexagon: scope: hidden
|
||||
ELF-hexagon: type: code
|
||||
ELF-hexagon: section-choice: custom-required
|
||||
ELF-hexagon: section-name: .text
|
||||
ELF-hexagon: content: [ 00, C0, 9D, A0, 00, 40, 00, 00, 00, C0, 00, 78,
|
||||
ELF-hexagon: 00, C0, 00, 5A, 1E, C0, 1E, 96 ]
|
||||
|
||||
ELF-hexagon: - name: no_dead_strip
|
||||
ELF-hexagon: scope: global
|
||||
ELF-hexagon: type: code
|
||||
ELF-hexagon: section-choice: custom-required
|
||||
ELF-hexagon: section-name: .text
|
||||
ELF-hexagon: content: [ 00, C0, 9D, A0, 1E, C0, 1E, 96 ]
|
||||
|
||||
ELF-hexagon: - name: no_special_section_func
|
||||
ELF-hexagon: scope: global
|
||||
ELF-hexagon: type: code
|
||||
ELF-hexagon: section-choice: custom-required
|
||||
ELF-hexagon: section-name: .text
|
||||
ELF-hexagon: content: [ 00, C0, 9D, A0, 1E, C0, 1E, 96 ]
|
||||
|
||||
ELF-hexagon: - name: special_section_func
|
||||
ELF-hexagon: scope: global
|
||||
ELF-hexagon: type: code
|
||||
ELF-hexagon: section-choice: custom-required
|
||||
ELF-hexagon: section-name: special_section
|
||||
ELF-hexagon: content: [ 00, C0, 9D, A0, 1E, C0, 1E, 96 ]
|
||||
|
||||
ELF-hexagon: - name: tentative
|
||||
ELF-hexagon: scope: global
|
||||
ELF-hexagon: merge: asTentative
|
||||
ELF-hexagon: type: zero-fill
|
||||
|
||||
ELF-hexagon: - name: common_symbol
|
||||
ELF-hexagon: scope: global
|
||||
ELF-hexagon: merge: asTentative
|
||||
ELF-hexagon: type: zero-fill
|
||||
|
||||
ELF-hexagon: - name: puts
|
||||
ELF-hexagon: definition: undefined
|
||||
|
||||
ELF-hexagon: - name: sample.c
|
||||
ELF-hexagon: definition: absolute
|
||||
ELF-hexagon: value: 0x0
|
Loading…
Reference in New Issue