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
45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/at2.s -o %t.o
|
|
# RUN: ld.lld -o %t.exe %t.o --script %s
|
|
# RUN: llvm-readelf -l %t.exe | FileCheck %s
|
|
# RUN: llvm-objdump --section-headers %t.exe | FileCheck %s --check-prefix=SECTIONS
|
|
|
|
MEMORY {
|
|
AX (ax) : ORIGIN = 0x2000, LENGTH = 0x100
|
|
AW (aw) : ORIGIN = 0x3000, LENGTH = 0x100
|
|
FLASH (ax) : ORIGIN = 0x6000, LENGTH = 0x100
|
|
RAM (aw) : ORIGIN = 0x7000, LENGTH = 0x100
|
|
}
|
|
|
|
SECTIONS {
|
|
.foo1 : { *(.foo1) } > AX AT>FLASH
|
|
## In GNU ld, .foo1's LMA region is propagated to .foo2 because their VMA region
|
|
## is the same and .foo2 does not set an explicit address.
|
|
## lld sets .foo2's LMA region to null.
|
|
.foo2 : { *(.foo2) } > AX
|
|
|
|
.bar1 : { *(.bar1) } > AW
|
|
.bar2 : { *(.bar2) } > "AW" AT > "RAM"
|
|
.bar3 . : { *(.bar3) } > AW
|
|
.bar4 : { *(.bar4) } > AW AT >RAM
|
|
}
|
|
|
|
# CHECK: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
|
|
# CHECK-NEXT: LOAD 0x001000 0x0000000000002000 0x0000000000006000 0x000008 0x000008 R E 0x1000
|
|
# CHECK-NEXT: LOAD 0x001008 0x0000000000002008 0x0000000000002008 0x000008 0x000008 R E 0x1000
|
|
# CHECK-NEXT: LOAD 0x002000 0x0000000000003000 0x0000000000003000 0x000008 0x000008 RW 0x1000
|
|
# CHECK-NEXT: LOAD 0x002008 0x0000000000003008 0x0000000000007000 0x000008 0x000008 RW 0x1000
|
|
# CHECK-NEXT: LOAD 0x002010 0x0000000000003010 0x0000000000003010 0x000008 0x000008 RW 0x1000
|
|
# CHECK-NEXT: LOAD 0x002018 0x0000000000003018 0x0000000000007008 0x000008 0x000008 RW 0x1000
|
|
|
|
# SECTIONS: Sections:
|
|
# SECTIONS-NEXT: Idx Name Size VMA
|
|
# SECTIONS-NEXT: 0 00000000 0000000000000000
|
|
# SECTIONS-NEXT: 1 .foo1 00000008 0000000000002000
|
|
# SECTIONS-NEXT: 2 .foo2 00000008 0000000000002008
|
|
# SECTIONS-NEXT: 3 .text 00000000 0000000000002010
|
|
# SECTIONS-NEXT: 4 .bar1 00000008 0000000000003000
|
|
# SECTIONS-NEXT: 5 .bar2 00000008 0000000000003008
|
|
# SECTIONS-NEXT: 6 .bar3 00000008 0000000000003010
|
|
# SECTIONS-NEXT: 7 .bar4 00000008 0000000000003018
|