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.8 KiB
Plaintext
110 lines
3.8 KiB
Plaintext
# RUN: yaml2obj %s -o %t.in.o
|
|
#
|
|
# RUN: llvm-objdump --section-headers %t.in.o | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE
|
|
# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE
|
|
#
|
|
# RUN: llvm-objcopy --strip-debug %t.in.o %t.out.o
|
|
# RUN: llvm-objdump --section-headers %t.out.o | FileCheck %s --check-prefixes=SECTIONS
|
|
# RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefixes=SYMBOLS
|
|
#
|
|
# Test that --strip-all, --strip-all-gnu, --discard-all and --strip-unneeded,
|
|
# plus llvm-strip without arguments all produce a similiar set of sections
|
|
# (while they remove symbols differently).
|
|
#
|
|
# RUN: llvm-objcopy --strip-all %t.in.o %t.strip-all.o
|
|
# RUN: llvm-objdump --section-headers %t.strip-all.o | FileCheck %s --check-prefixes=SECTIONS
|
|
#
|
|
# RUN: llvm-objcopy --strip-all-gnu %t.in.o %t.strip-all-gnu.o
|
|
# RUN: llvm-objdump --section-headers %t.strip-all-gnu.o | FileCheck %s --check-prefixes=SECTIONS
|
|
#
|
|
# RUN: llvm-objcopy --discard-all %t.in.o %t.discard-all.o
|
|
# RUN: llvm-objdump --section-headers %t.discard-all.o | FileCheck %s --check-prefixes=SECTIONS
|
|
#
|
|
# RUN: llvm-objcopy --discard-all %t.in.o %t.strip-unneeded.o
|
|
# RUN: llvm-objdump --section-headers %t.strip-unneeded.o | FileCheck %s --check-prefixes=SECTIONS
|
|
#
|
|
# SECTIONS: Sections:
|
|
# SECTIONS-NEXT: Idx Name
|
|
# SECTIONS-NEXT: 0 .text
|
|
# SECTIONS-NEXT: 1 .data
|
|
# SECTIONS-NEXT: 2 .bss
|
|
# SECTIONS-NEXT: 3 .xdata
|
|
# SECTIONS-NEXT: 4 .reloc
|
|
# SECTIONS-PRE-NEXT: 5 .debug_discardable
|
|
# SECTIONS-NEXT: {{.*}} .debug_undiscardable
|
|
# SECTIONS-NEXT: {{.*}} .llvm_addrsig
|
|
# SECTIONS-EMPTY:
|
|
#
|
|
# Test that --strip-debug doesn't remove e.g. unreferenced local symbols.
|
|
#
|
|
# SYMBOLS: SYMBOL TABLE:
|
|
# SYMBOLS-NEXT: external
|
|
# SYMBOLS-NEXT: local_unreferenced
|
|
# SYMBOLS-PRE-NEXT: debug_discardable_sym
|
|
# SYMBOLS-NEXT: debug_undiscardable_sym
|
|
# SYMBOLS-EMPTY:
|
|
|
|
--- !COFF
|
|
header:
|
|
Machine: IMAGE_FILE_MACHINE_AMD64
|
|
Characteristics: [ ]
|
|
sections:
|
|
- Name: .text
|
|
Characteristics: [ ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
- Name: .data
|
|
Characteristics: [ ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
- Name: .bss
|
|
Characteristics: [ ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
- Name: .xdata
|
|
Characteristics: [ ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
- Name: .reloc
|
|
Characteristics: [ IMAGE_SCN_MEM_DISCARDABLE ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
- Name: .debug_discardable
|
|
Characteristics: [ IMAGE_SCN_MEM_DISCARDABLE ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
- Name: .debug_undiscardable
|
|
Characteristics: [ ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
- Name: .llvm_addrsig
|
|
Characteristics: [ IMAGE_SCN_LNK_REMOVE ]
|
|
Alignment: 4
|
|
SectionData: 00000000
|
|
symbols:
|
|
- Name: external
|
|
Value: 0
|
|
SectionNumber: 1
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
|
- Name: local_unreferenced
|
|
Value: 0
|
|
SectionNumber: 1
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
StorageClass: IMAGE_SYM_CLASS_STATIC
|
|
- Name: debug_discardable_sym
|
|
Value: 0
|
|
SectionNumber: 6
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
|
- Name: debug_undiscardable_sym
|
|
Value: 0
|
|
SectionNumber: 7
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
|
...
|