Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-objcopy/COFF/add-gnu-debuglink.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

43 lines
1.7 KiB
Plaintext

RUN: yaml2obj %p/Inputs/x86_64-exe.yaml -o %t.in123.exe
# Using a debuglink filename with a length that is a multiple of 4, to
# showcase padding in CONTENTS below.
RUN: llvm-objcopy --add-gnu-debuglink=%t.in123.exe %t.in123.exe %t.out.exe
RUN: llvm-readobj --sections %t.out.exe | FileCheck %s --check-prefix=SECTIONS
RUN: llvm-objdump -s %t.out.exe | FileCheck %s --check-prefix=CONTENTS
# Show the last of the preexisting sections, which is used for choosing
# a virtual address for the generated one.
SECTIONS: Section {
SECTIONS: Number: 4
SECTIONS-NEXT: Name: .pdata
SECTIONS-NEXT: VirtualSize: 0x18
SECTIONS-NEXT: VirtualAddress: 0x4000
SECTIONS-NEXT: RawDataSize: 512
SECTIONS: Section {
SECTIONS-NEXT: Number: 5
SECTIONS-NEXT: Name: .gnu_debuglink
SECTIONS-NEXT: VirtualSize: 0x2C
SECTIONS-NEXT: VirtualAddress: 0x5000
SECTIONS-NEXT: RawDataSize: 512
SECTIONS-NEXT: PointerToRawData:
SECTIONS-NEXT: PointerToRelocations:
SECTIONS-NEXT: PointerToLineNumbers:
SECTIONS-NEXT: RelocationCount:
SECTIONS-NEXT: LineNumberCount:
SECTIONS-NEXT: Characteristics [ (0x42000040)
SECTIONS-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
SECTIONS-NEXT: IMAGE_SCN_MEM_DISCARDABLE (0x2000000)
SECTIONS-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
SECTIONS-NEXT: ]
# Note: The last 4 bytes here are the crc of the referenced file - if the
# yaml2obj generated file changes, this crc changes.
CONTENTS: Contents of section .gnu_debuglink:
CONTENTS: 40005000 6164642d 676e752d 64656275 676c696e add-gnu-debuglin
CONTENTS: 40005010 6b2e7465 73742e74 6d702e69 6e313233 k.test.tmp.in123
CONTENTS: 40005020 2e657865 00000000 7929adc3 .exe