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
59 lines
2.0 KiB
ArmAsm
59 lines
2.0 KiB
ArmAsm
# REQUIRES: x86
|
|
## Check that section ordering follows from input file ordering.
|
|
# RUN: rm -rf %t; split-file %s %t
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/1.s -o %t/1.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/2.s -o %t/2.o
|
|
# RUN: %lld -dylib %t/1.o %t/2.o -o %t/12
|
|
# RUN: %lld -dylib %t/2.o %t/1.o -o %t/21
|
|
# RUN: %lld -dylib %t/2.o %t/1.o -o %t/synth-section-order \
|
|
# RUN: -add_empty_section __TEXT __objc_stubs \
|
|
# RUN: -add_empty_section __TEXT __init_offsets \
|
|
# RUN: -add_empty_section __TEXT __stubs \
|
|
# RUN: -add_empty_section __TEXT __stub_helper \
|
|
# RUN: -add_empty_section __TEXT __unwind_info \
|
|
# RUN: -add_empty_section __TEXT __eh_frame \
|
|
# RUN: -add_empty_section __DATA __objc_selrefs
|
|
# RUN: llvm-objdump --macho --section-headers %t/12 | FileCheck %s --check-prefix=CHECK-12
|
|
# RUN: llvm-objdump --macho --section-headers %t/21 | FileCheck %s --check-prefix=CHECK-21
|
|
# RUN: llvm-objdump --macho --section-headers %t/synth-section-order | FileCheck %s --check-prefix=CHECK-SYNTHETIC-ORDER
|
|
|
|
# CHECK-12: __text
|
|
# CHECK-12-NEXT: foo
|
|
# CHECK-12-NEXT: bar
|
|
# CHECK-12-NEXT: __cstring
|
|
|
|
# CHECK-21: __text
|
|
## `foo` always sorts next to `__text` since it's a code section
|
|
## and needs to be adjacent for arm64 thunk calculations
|
|
# CHECK-21-NEXT: foo
|
|
# CHECK-21-NEXT: __cstring
|
|
# CHECK-21-NEXT: bar
|
|
|
|
# CHECK-SYNTHETIC-ORDER: __text
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: foo
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __stubs
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __stub_helper
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __objc_stubs
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __init_offsets
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __cstring
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: bar
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __unwind_info
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __eh_frame
|
|
# CHECK-SYNTHETIC-ORDER-NEXT: __objc_selrefs
|
|
|
|
#--- 1.s
|
|
.section __TEXT,foo
|
|
.space 1
|
|
.section __TEXT,bar
|
|
.space 1
|
|
.cstring
|
|
.asciz ""
|
|
|
|
#--- 2.s
|
|
.cstring
|
|
.asciz ""
|
|
.section __TEXT,bar
|
|
.space 1
|
|
.section __TEXT,foo,regular,pure_instructions
|
|
.space 1
|