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
42 lines
1.1 KiB
ArmAsm
42 lines
1.1 KiB
ArmAsm
# REQUIRES: x86
|
|
# RUN: rm -rf %t && split-file %s %t && cd %t
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 asm.s -o t.o
|
|
# RUN: ld.lld -T lds t.o -o t.out
|
|
# RUN: llvm-readelf -S t.out | FileCheck %s
|
|
|
|
## Test that when a section uses '.' as its address expression inside a MEMORY
|
|
## region, the global location counter is used, not the memory region position.
|
|
## GNU ld manual: explicit address takes precedence over memory region position.
|
|
## s01 placed at FLASH origin 0x1000
|
|
# CHECK: s01 PROGBITS 0000000000001000
|
|
## s02 uses '.' as explicit address — global dot after ALIGN(4) = 0x1004
|
|
# CHECK: s02 PROGBITS 0000000000001004
|
|
## s03 has no explicit address — follows memRegion->curPos after s02
|
|
## second ALIGN(4) does not affect s03 as it has no explicit address
|
|
# CHECK: s03 PROGBITS 0000000000001006
|
|
|
|
#--- asm.s
|
|
.section s01, "a", @progbits
|
|
.byte 1
|
|
|
|
.section s02, "a", @progbits
|
|
.short 1
|
|
|
|
.section s03, "a", @progbits
|
|
.short 1
|
|
|
|
#--- lds
|
|
MEMORY
|
|
{
|
|
FLASH (rx) : ORIGIN = 0x1000, LENGTH = 0x100
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
s01 : { *(s01) } > FLASH
|
|
. = ALIGN(4);
|
|
s02 . : { *(s02) } > FLASH
|
|
. = ALIGN(4);
|
|
s03 : { *(s03) } > FLASH
|
|
}
|