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
91 lines
2.8 KiB
Plaintext
91 lines
2.8 KiB
Plaintext
## Test how relocations are dumped.
|
|
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-readobj --relocs --expand-relocs %t | \
|
|
# RUN: FileCheck %s --strict-whitespace --check-prefixes=RELOCSEXP,NODEMANEXP
|
|
# RUN: llvm-readobj --relocs %t | \
|
|
# RUN: FileCheck %s --strict-whitespace --check-prefixes=RELOCS,NODEMAN
|
|
|
|
# RUN: llvm-readobj --relocs --expand-relocs --no-demangle %t | \
|
|
# RUN: FileCheck %s --strict-whitespace --check-prefixes=RELOCSEXP,NODEMANEXP
|
|
# RUN: llvm-readobj --relocs --no-demangle %t | \
|
|
# RUN: FileCheck %s --strict-whitespace --check-prefixes=RELOCS,NODEMAN
|
|
|
|
# RUN: llvm-readobj --relocs --expand-relocs --demangle %t | \
|
|
# RUN: FileCheck %s --strict-whitespace --check-prefixes=RELOCSEXP,DEMANEXP
|
|
# RUN: llvm-readobj --relocs --demangle %t | \
|
|
# RUN: FileCheck %s --strict-whitespace --check-prefixes=RELOCS,DEMAN
|
|
|
|
# RELOCSEXP:Relocations [
|
|
# RELOCSEXP-NEXT: Section (index: 1) .text {
|
|
# RELOCSEXP-NEXT: Relocation {
|
|
# RELOCSEXP-NEXT: Virtual Address: 0x80
|
|
# RELOCSEXP-NEXT: Symbol: foo (0)
|
|
# RELOCSEXP-NEXT: IsSigned: No
|
|
# RELOCSEXP-NEXT: FixupBitValue: 0
|
|
# RELOCSEXP-NEXT: Length: 22
|
|
# RELOCSEXP-NEXT: Type: R_POS (0x0)
|
|
# RELOCSEXP-NEXT: }
|
|
# RELOCSEXP-NEXT: Relocation {
|
|
# RELOCSEXP-NEXT: Virtual Address: 0x100
|
|
# RELOCSEXP-NEXT: Symbol: foo (0)
|
|
# RELOCSEXP-NEXT: IsSigned: No
|
|
# RELOCSEXP-NEXT: FixupBitValue: 0
|
|
# RELOCSEXP-NEXT: Length: 21
|
|
# RELOCSEXP-NEXT: Type: R_REL (0x2)
|
|
# RELOCSEXP-NEXT: }
|
|
# RELOCSEXP-NEXT: }
|
|
# RELOCSEXP-NEXT: Section (index: 2) .data {
|
|
# RELOCSEXP-NEXT: Relocation {
|
|
# RELOCSEXP-NEXT: Virtual Address: 0x200
|
|
# NODEMANEXP-NEXT: Symbol: _Z3fwpv (1)
|
|
# DEMANEXP-NEXT: Symbol: fwp() (1)
|
|
# RELOCSEXP-NEXT: IsSigned: No
|
|
# RELOCSEXP-NEXT: FixupBitValue: 0
|
|
# RELOCSEXP-NEXT: Length: 20
|
|
# RELOCSEXP-NEXT: Type: R_TOC (0x3)
|
|
# RELOCSEXP-NEXT: }
|
|
# RELOCSEXP-NEXT: }
|
|
# RELOCSEXP-NEXT:]
|
|
|
|
# RELOCS:Relocations [
|
|
# RELOCS-NEXT: Section (index: 1) .text {
|
|
# RELOCS-NEXT: 0x80 R_POS foo(0) 0x15
|
|
# RELOCS-NEXT: 0x100 R_REL foo(0) 0x14
|
|
# RELOCS-NEXT: }
|
|
# RELOCS-NEXT: Section (index: 2) .data {
|
|
# NODEMAN-NEXT: 0x200 R_TOC _Z3fwpv(1) 0x13
|
|
# DEMAN-NEXT: 0x200 R_TOC fwp()(1) 0x13
|
|
# RELOCS-NEXT: }
|
|
# RELOCS-NEXT:]
|
|
|
|
--- !XCOFF
|
|
FileHeader:
|
|
MagicNumber: 0x01DF
|
|
Sections:
|
|
- Name: .text
|
|
Flags: [ STYP_TEXT ]
|
|
Relocations:
|
|
- Address: 0x80
|
|
Symbol: 0x0
|
|
Info: 0x15
|
|
Type: 0x0
|
|
- Address: 0x100
|
|
Symbol: 0x0
|
|
Info: 0x14
|
|
Type: 0x2
|
|
- Name: .data
|
|
Flags: [ STYP_DATA ]
|
|
Relocations:
|
|
- Address: 0x200
|
|
Symbol: 0x1
|
|
Info: 0x13
|
|
Type: 0x3
|
|
Symbols:
|
|
- Name: foo
|
|
Value: 0x0
|
|
Section: .text
|
|
- Name: _Z3fwpv
|
|
Value: 0x80
|
|
Section: .data
|