Files
TheRock/compiler/amd-llvm/lld/test/ELF/text-section-prefix.s
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

65 lines
1.6 KiB
ArmAsm

# REQUIRES: x86
## -z keep-text-section-prefix separates text sections with prefix .text.hot,
## .text.unknown, .text.unlikely, .text.startup, or .text.exit, in the absence
## of a SECTIONS command.
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
# RUN: ld.lld %t.o -o %t1
# RUN: llvm-readelf -S %t1 | FileCheck --check-prefix=NOKEEP %s
# RUN: ld.lld -z nokeep-text-section-prefix %t.o -o %t2
# RUN: cmp %t1 %t2
# RUN: ld.lld -z keep-text-section-prefix %t.o -o %t.keep
# RUN: llvm-readelf -S %t.keep | FileCheck --check-prefix=KEEP %s
# KEEP: [ 1] .text
# KEEP-NEXT: [ 2] .text.hot
# KEEP-NEXT: [ 3] .text.unknown
# KEEP-NEXT: [ 4] .text.split
# KEEP-NEXT: [ 5] .text.startup
# KEEP-NEXT: [ 6] .text.exit
# KEEP-NEXT: [ 7] .text.unlikely
# NOKEEP: [ 1] .text
# NOKEEP-NOT: .text
## With a SECTIONS command, orphan sections are created verbatim.
## No grouping is performed for them.
# RUN: echo 'SECTIONS {}' > %t.lds
# RUN: ld.lld -T %t.lds -z keep-text-section-prefix %t.o -o %t.script
# RUN: llvm-readelf -S %t.script | FileCheck --check-prefix=SCRIPT %s
# SCRIPT: .text
# SCRIPT-NEXT: .text.f
# SCRIPT-NEXT: .text.hot.f_hot
# SCRIPT-NEXT: .text.unknown.f_unknown
# SCRIPT-NEXT: .text.split.f_split
# SCRIPT-NEXT: .text.startup.f_startup
# SCRIPT-NEXT: .text.exit.f_exit
# SCRIPT-NEXT: .text.unlikely.f_unlikely
.globl _start
_start:
ret
.section .text.f,"ax"
nop
.section .text.hot.f_hot,"ax"
nop
.section .text.unknown.f_unknown,"ax"
nop
.section .text.split.f_split,"ax"
nop
.section .text.startup.f_startup,"ax"
nop
.section .text.exit.f_exit,"ax"
nop
.section .text.unlikely.f_unlikely,"ax"
nop