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
142 lines
3.4 KiB
YAML
142 lines
3.4 KiB
YAML
## Check that obj2yaml is able to produce YAML from
|
|
## an object containing symbols and sections with duplicate
|
|
## names and produces same-named sections and symbols
|
|
## with distinguishing suffixes.
|
|
|
|
# RUN: yaml2obj --docnum=1 %s -o %t1
|
|
# RUN: llvm-readobj -s -t %t1 | FileCheck %s
|
|
|
|
# CHECK: Name: .foo (
|
|
# CHECK: Name: .foo (
|
|
# CHECK: Name: .foo (
|
|
# CHECK: Name: .bar (
|
|
# CHECK: Name: .bar (
|
|
# CHECK: Name: .bar (
|
|
|
|
# CHECK: Name: localfoo (
|
|
# CHECK: Name: localfoo (
|
|
# CHECK: Name: localfoo (
|
|
# CHECK: Name: localbar (
|
|
# CHECK: Name: localbar (
|
|
# CHECK: Name: localbar (
|
|
|
|
# RUN: obj2yaml %t1 | FileCheck %s --check-prefix=CASE1
|
|
|
|
# CASE1: --- !ELF
|
|
# CASE1-NEXT: FileHeader:
|
|
# CASE1-NEXT: Class: ELFCLASS64
|
|
# CASE1-NEXT: Data: ELFDATA2LSB
|
|
# CASE1-NEXT: Type: ET_REL
|
|
# CASE1-NEXT: Sections:
|
|
# CASE1-NEXT: - Name: .foo
|
|
# CASE1-NEXT: Type: SHT_PROGBITS
|
|
# CASE1-NEXT: - Name: '.foo (1)'
|
|
# CASE1-NEXT: Type: SHT_PROGBITS
|
|
# CASE1-NEXT: - Name: '.foo (2)'
|
|
# CASE1-NEXT: Type: SHT_PROGBITS
|
|
# CASE1-NEXT: - Name: .bar
|
|
# CASE1-NEXT: Type: SHT_PROGBITS
|
|
# CASE1-NEXT: - Name: '.bar (1)'
|
|
# CASE1-NEXT: Type: SHT_PROGBITS
|
|
# CASE1-NEXT: - Name: '.bar (2)'
|
|
# CASE1-NEXT: Type: SHT_PROGBITS
|
|
# CASE1-NEXT: Symbols:
|
|
# CASE1-NEXT: - Name: localfoo
|
|
# CASE1-NEXT: - Name: 'localfoo (1)'
|
|
# CASE1-NEXT: - Name: 'localfoo (2)'
|
|
# CASE1-NEXT: - Name: localbar
|
|
# CASE1-NEXT: - Name: 'localbar (1)'
|
|
# CASE1-NEXT: - Name: 'localbar (2)'
|
|
# CASE1-NEXT: ...
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Sections:
|
|
- Name: .foo
|
|
Type: SHT_PROGBITS
|
|
- Name: '.foo (555)'
|
|
Type: SHT_PROGBITS
|
|
- Name: '.foo (random_tag)'
|
|
Type: SHT_PROGBITS
|
|
- Name: .bar
|
|
Type: SHT_PROGBITS
|
|
- Name: '.bar (666)'
|
|
Type: SHT_PROGBITS
|
|
- Name: '.bar (random_tag)'
|
|
Type: SHT_PROGBITS
|
|
Symbols:
|
|
- Name: 'localfoo (111)'
|
|
- Name: 'localfoo (222)'
|
|
- Name: 'localfoo (random_tag)'
|
|
- Name: 'localbar (333)'
|
|
- Name: 'localbar (444)'
|
|
- Name: 'localbar (random_tag)'
|
|
|
|
## Check we can refer to symbols with the same
|
|
## name from relocations.
|
|
|
|
# RUN: yaml2obj --docnum=2 %s -o %t2
|
|
# RUN: obj2yaml %t2 | FileCheck %s --check-prefix=CASE2
|
|
|
|
# CASE2: Relocations:
|
|
# CASE2-NEXT: - Symbol: 'foo (1)'
|
|
# CASE2-NEXT: Type: R_X86_64_PC32
|
|
# CASE2-NEXT: - Offset: 0x4
|
|
# CASE2-NEXT: Symbol: foo
|
|
# CASE2-NEXT: Type: R_X86_64_PC32
|
|
# CASE2-NEXT: Symbols:
|
|
# CASE2-NEXT: - Name: foo
|
|
# CASE2-NEXT: - Name: 'foo (1)'
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Size: 8
|
|
- Name: .rela.text
|
|
Type: SHT_RELA
|
|
Info: .text
|
|
Link: .symtab
|
|
Relocations:
|
|
- Type: R_X86_64_PC32
|
|
Symbol: 'foo (1)'
|
|
- Type: R_X86_64_PC32
|
|
Offset: 4
|
|
Symbol: foo
|
|
Symbols:
|
|
- Name: foo
|
|
- Name: 'foo (1)'
|
|
|
|
## Check obj2yaml does not add a suffix to a name if the
|
|
## symbol is in .symtab and .dynsym at the same time.
|
|
|
|
# RUN: yaml2obj --docnum=3 %s -o %t3
|
|
# RUN: obj2yaml %t3 | FileCheck %s --check-prefix=CASE3
|
|
|
|
# CASE3: Symbols:
|
|
# CASE3-NEXT: - Name: foo
|
|
# CASE3-NEXT: Binding: STB_GLOBAL
|
|
# CASE3-NEXT: DynamicSymbols:
|
|
# CASE3-NEXT: - Name: foo
|
|
# CASE3-NEXT: Binding: STB_GLOBAL
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Symbols:
|
|
- Name: foo
|
|
Binding: STB_GLOBAL
|
|
DynamicSymbols:
|
|
- Name: foo
|
|
Binding: STB_GLOBAL
|