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
110 lines
3.2 KiB
Plaintext
110 lines
3.2 KiB
Plaintext
## Test that llvm-objdump can dump dynamic symbols.
|
|
# RUN: yaml2obj --docnum=1 %s -o %t1
|
|
# RUN: llvm-objdump --dynamic-syms %t1 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=DYNSYM
|
|
# RUN: llvm-objdump -T %t1 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=DYNSYM
|
|
|
|
# DYNSYM:{{.*}}file format elf64-x86-64
|
|
# DYNSYM-EMPTY:
|
|
# DYNSYM-NEXT:DYNAMIC SYMBOL TABLE:
|
|
# DYNSYM-NEXT:0000000000000000 l DO .data 0000000000000000 localsym
|
|
# DYNSYM-NEXT:0000000000000000 g DO .data 0000000000000000 globalsym
|
|
# DYNSYM-NEXT:0000000000000000 u DO .data 0000000000000000 uniqueglobalsym
|
|
# DYNSYM-NEXT:0000000000000000 w DO .data 0000000000000000 weaksym
|
|
# DYNSYM-NEXT:0000000000000000 g Df .data 0000000000000000 filesym
|
|
# DYNSYM-NEXT:0000000000000000 g DF .data 0000000000000000 funcsym
|
|
# DYNSYM-EMPTY:
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .data
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_ALLOC, SHF_WRITE ]
|
|
DynamicSymbols:
|
|
- Name: localsym
|
|
Type: STT_OBJECT
|
|
Section: .data
|
|
Binding: STB_LOCAL
|
|
- Name: globalsym
|
|
Type: STT_OBJECT
|
|
Section: .data
|
|
Binding: STB_GLOBAL
|
|
- Name: uniqueglobalsym
|
|
Type: STT_OBJECT
|
|
Section: .data
|
|
Binding: STB_GNU_UNIQUE
|
|
- Name: weaksym
|
|
Type: STT_OBJECT
|
|
Section: .data
|
|
Binding: STB_WEAK
|
|
- Name: filesym
|
|
Type: STT_FILE
|
|
Section: .data
|
|
Binding: STB_GLOBAL
|
|
- Name: funcsym
|
|
Type: STT_FUNC
|
|
Section: .data
|
|
Binding: STB_GLOBAL
|
|
|
|
## Test dumping ELF files with no .dynsym section.
|
|
# RUN: yaml2obj --docnum=2 %s -o %t2
|
|
# RUN: llvm-objdump --dynamic-syms %t2 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=NODYNSYM
|
|
# RUN: llvm-objdump -T %t2 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=NODYNSYM
|
|
|
|
# NODYNSYM:DYNAMIC SYMBOL TABLE:
|
|
# NODYNSYM-EMPTY:
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Machine: EM_X86_64
|
|
|
|
## Test dumping ELF files with logically empty .dynsym section (only has a 0-index NULL symbol).
|
|
# RUN: yaml2obj --docnum=3 %s -o %t3
|
|
# RUN: llvm-objdump --dynamic-syms %t3 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=ONLY-NULL
|
|
# RUN: llvm-objdump -T %t3 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=ONLY-NULL
|
|
|
|
# ONLY-NULL:DYNAMIC SYMBOL TABLE:
|
|
# ONLY-NULL-EMPTY:
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Machine: EM_X86_64
|
|
DynamicSymbols: []
|
|
|
|
## Test dumping ELF files with truly empty .dynsym section (size of .dynsym section is 0).
|
|
# RUN: yaml2obj --docnum=4 %s -o %t4
|
|
# RUN: llvm-objdump --dynamic-syms %t4 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=EMPTY
|
|
# RUN: llvm-objdump -T %t4 | \
|
|
# RUN: FileCheck %s --match-full-lines --strict-whitespace --check-prefix=EMPTY
|
|
|
|
# EMPTY:DYNAMIC SYMBOL TABLE:
|
|
# EMPTY-EMPTY:
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .dynsym
|
|
Type: SHT_DYNSYM
|
|
Size: 0
|