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
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /stub:%p/Inputs/stub64mz %t.obj
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
|
|
CHECK1: Magic: MZ
|
|
CHECK1: UsedBytesInTheLastPage: 144
|
|
CHECK1: FileSizeInPages: 3
|
|
CHECK1: NumberOfRelocationItems: 0
|
|
CHECK1: HeaderSizeInParagraphs: 4
|
|
CHECK1: MinimumExtraParagraphs: 0
|
|
CHECK1: MaximumExtraParagraphs: 65535
|
|
CHECK1: InitialRelativeSS: 0
|
|
CHECK1: InitialSP: 184
|
|
CHECK1: Checksum: 0
|
|
CHECK1: InitialIP: 0
|
|
CHECK1: InitialRelativeCS: 0
|
|
CHECK1: AddressOfRelocationTable: 64
|
|
CHECK1: OverlayNumber: 0
|
|
CHECK1: OEMid: 0
|
|
CHECK1: OEMinfo: 0
|
|
CHECK1: AddressOfNewExeHeader: 64
|
|
|
|
## Invalid DOS signature (must be `MZ`)
|
|
# RUN: not lld-link /out:%t.exe /entry:main /stub:%p/Inputs/stub64zz %t.obj 2>&1 | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
CHECK2: lld-link: error: /stub: invalid DOS signature: {{.*}}
|
|
|
|
## Unlike MS linker, we accept non-8byte-aligned stubs and we add paddings ourselves
|
|
# RUN: lld-link /out:%t.exe /entry:main /stub:%p/Inputs/stub68mz %t.obj
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK3 %s
|
|
|
|
CHECK3: Magic: MZ
|
|
CHECK3: UsedBytesInTheLastPage: 144
|
|
CHECK3: FileSizeInPages: 3
|
|
CHECK3: NumberOfRelocationItems: 0
|
|
CHECK3: HeaderSizeInParagraphs: 4
|
|
CHECK3: MinimumExtraParagraphs: 0
|
|
CHECK3: MaximumExtraParagraphs: 65535
|
|
CHECK3: InitialRelativeSS: 0
|
|
CHECK3: InitialSP: 184
|
|
CHECK3: Checksum: 0
|
|
CHECK3: InitialIP: 0
|
|
CHECK3: InitialRelativeCS: 0
|
|
CHECK3: AddressOfRelocationTable: 64
|
|
CHECK3: OverlayNumber: 0
|
|
CHECK3: OEMid: 0
|
|
CHECK3: OEMinfo: 0
|
|
## 68 is unaligned and rounded up to 72 by LLD
|
|
CHECK3: AddressOfNewExeHeader: 72
|
|
|
|
## Too-small stub (must be at least 64 bytes long) && Unaligned
|
|
# RUN: not lld-link /out:%t.exe /entry:main /stub:%p/Inputs/stub63mz %t.obj 2>&1 | FileCheck -check-prefix=CHECK4 %s
|
|
|
|
CHECK4: lld-link: error: /stub: stub must be greater than or equal to 64 bytes: {{.*}}
|