Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-objdump/warn-missing-section.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

74 lines
2.6 KiB
Plaintext

## This test checks the warning message when no user specified sections are
## found in the object file.
## Test relocatable file.
# RUN: yaml2obj --docnum=1 %s -o %t.1.o
# RUN: yaml2obj --docnum=2 %s -o %t.2.o
## - Warn for one section is found case.
# RUN: llvm-objdump --reloc --section=single %t.2.o 2>&1 \
# RUN: | FileCheck --check-prefix=SINGLE-WARN %s
## - Don't warn twice for duplicate missing sections.
# RUN: llvm-objdump --reloc --section=single --section=single %t.2.o 2>&1 \
# RUN: | FileCheck --check-prefixes=SINGLE-WARN --implicit-check-not=warning: %s
## - Don't warn if any user specified section is found.
# RUN: llvm-objdump --reloc --section=.text1 --section=.text2 %t.2.o \
# RUN: | FileCheck --implicit-check-not=warning: %s
## - Warn for each specified section if none of them are found.
# RUN: llvm-objdump --reloc --section=multi1 --section=multi2 %t.2.o 2>&1 \
# RUN: | FileCheck --check-prefix=MULTI-WARN %s
## - Don't warn if the specified section has no name.
# RUN: llvm-objdump --reloc --section="" %t.2.o 2>&1 \
# RUN: | FileCheck --implicit-check-not=warning: %s
## - Warning for --section is applicable for various other options.
# RUN: llvm-objdump --section-headers --section=single %t.2.o 2>&1 \
# RUN: | FileCheck --check-prefix=SINGLE-WARN %s
# RUN: llvm-objdump --full-contents --section=single %t.2.o 2>&1 \
# RUN: | FileCheck --check-prefix=SINGLE-WARN %s
## Test archive file.
# RUN: rm -f %t.a
# RUN: llvm-ar rc %t.a %t.1.o %t.2.o
## - Warn for one section is found case.
# RUN: llvm-objdump --reloc --section=single %t.a 2>&1 \
# RUN: | FileCheck --check-prefix=SINGLE-WARN %s
## - Don't warn if any user specified section is found.
# RUN: llvm-objdump --reloc --section=.text1 %t.a \
# RUN: | FileCheck --implicit-check-not=warning: %s
## - Warn for each specified section if none of them are found.
# RUN: llvm-objdump --reloc --section=multi1 --section=multi2 %t.a 2>&1 \
# RUN: | FileCheck --check-prefix=MULTI-WARN %s
# SINGLE-WARN: warning: section 'single' mentioned in a -j/--section option, but not found in any input file
# MULTI-WARN: warning: section 'multi1' mentioned in a -j/--section option, but not found in any input file
# MULTI-WARN-NEXT: warning: section 'multi2' mentioned in a -j/--section option, but not found in any input file
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text1
Type: SHT_PROGBITS
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text2
Type: SHT_PROGBITS