Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-nm/XCOFF/basic.test
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

119 lines
3.4 KiB
Plaintext

## Test llvm-nm for XCOFF object files.
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o | FileCheck --match-full-lines %s
--- !XCOFF
FileHeader:
MagicNumber: 0x1DF
Sections:
- Name: .text
Address: 0x0
Flags: [ STYP_TEXT ]
- Name: .data
Flags: [ STYP_DATA ]
- Name: .bss
Flags: [ STYP_BSS ]
- Name: .debug
Flags: [ STYP_DEBUG ]
- Name: .except
Flags: [ STYP_EXCEPT ]
Symbols:
- Name: .file
Section: N_DEBUG
StorageClass: C_FILE
- Name: .text
Value: 0x10
Section: .text
StorageClass: C_STAT
NumberOfAuxEntries: 1
- Name: .data
Value: 0x80
Section: .data
StorageClass: C_STAT
NumberOfAuxEntries: 1
- Name: .bss
Value: 0x310
Section: .bss
StorageClass: C_STAT
- Name: .debug
Section: .debug
StorageClass: C_STAT
- Name: ._ZL5func0v
Section: .text
StorageClass: C_EXT
Type: 0x20
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 0x02
StorageMappingClass: XMC_PR
- Name: ._Z3fwpv
Section: .text
StorageClass: C_WEAKEXT
Type: 0x20
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 0x02
StorageMappingClass: XMC_PR
- Name: val
Section: .data
StorageClass: C_EXT
Type: 0x20
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 0x01
StorageMappingClass: XMC_RW
SectionOrLength: 0x4
- Name: extval
Section: N_UNDEF
StorageClass: C_EXT
Type: 0x00
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 0x01
StorageMappingClass: XMC_UA
SectionOrLength: 0x0
- Name: comval
Section: .bss
Value: 0x13C
StorageClass: C_EXT
Type: 0x00
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 0x03
StorageMappingClass: XMC_RW
SectionOrLength: 0x0
- Name: abs
Section: N_ABS
- Name: symIn_N_debug
Section: N_DEBUG
- Name: .except
Section: .except
## Global weak symbol.
# CHECK: 00000000 W ._Z3fwpv
## Global symbol in .text section.
# CHECK-NEXT: 00000000 T ._ZL5func0v
## Symbol in .bss section.
# CHECK-NEXT: 00000310 b .bss
## Local symbol in .data section.
# CHECK-NEXT: 00000080 d .data
## Symbol in .debug section.
# CHECK-NEXT: 00000000 N .debug
## Symbol in .except section.
# CHECK-NEXT: 00000000 ? .except
## Symbol .file.
# CHECK-NEXT: 00000000 f .file
## Local symbol in .text section.
# CHECK-NEXT: 00000010 t .text
## Absolute symbol.
# CHECK-NEXT: 00000000 a abs
## Common symbol.
# CHECK-NEXT: 0000013c C comval
## Undefined symbol.
# CHECK-NEXT: U extval
## Symbol in N_DEBUG section.
# CHECK-NEXT: 00000000 ? symIn_N_debug
## Global symbol in .data section.
# CHECK-NEXT: 00000000 D val