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
51 lines
2.0 KiB
ArmAsm
51 lines
2.0 KiB
ArmAsm
// REQUIRES: aarch64
|
|
// RUN: rm -rf %t && split-file %s %t && cd %t
|
|
|
|
// RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o 1.o
|
|
// RUN: llvm-mc -triple=aarch64 -filetype=obj pauth-bti-gcs.s -o 2.o
|
|
// RUN: llvm-mc -triple=aarch64 -filetype=obj pauth-bti-pac.s -o 3.o
|
|
// RUN: ld.lld -r 1.o 2.o 3.o -o merged.o
|
|
// RUN: llvm-readelf -n merged.o | FileCheck %s --check-prefix=NOTE
|
|
|
|
/// This test merges three object files with AArch64 build attributes.
|
|
/// All contain identical PAuth ABI info (platform/version), which must be preserved.
|
|
/// Only BTI is common across all three in the AND feature set, so the merged output
|
|
/// must show BTI only. PAC and GCS are present in subsets and should not appear.
|
|
|
|
// NOTE: Displaying notes found in: .note.gnu.property
|
|
// NOTE-NEXT: Owner Data size Description
|
|
// NOTE-NEXT: GNU 0x00000028 NT_GNU_PROPERTY_TYPE_0 (property note)
|
|
// NOTE-NEXT: Properties: aarch64 feature: BTI
|
|
// NOTE-NEXT: AArch64 PAuth ABI core info: platform 0x31 (unknown), version 0x13
|
|
|
|
// CHECK: .note.gnu.property
|
|
// CHECK-NOT: .ARM.attributes
|
|
|
|
.aeabi_subsection aeabi_pauthabi, required, uleb128
|
|
.aeabi_attribute Tag_PAuth_Platform, 49
|
|
.aeabi_attribute Tag_PAuth_Schema, 19
|
|
.aeabi_subsection aeabi_feature_and_bits, optional, uleb128
|
|
.aeabi_attribute Tag_Feature_BTI, 1
|
|
.aeabi_attribute Tag_Feature_PAC, 1
|
|
.aeabi_attribute Tag_Feature_GCS, 1
|
|
|
|
|
|
//--- pauth-bti-gcs.s
|
|
.aeabi_subsection aeabi_pauthabi, required, uleb128
|
|
.aeabi_attribute Tag_PAuth_Platform, 49
|
|
.aeabi_attribute Tag_PAuth_Schema, 19
|
|
.aeabi_subsection aeabi_feature_and_bits, optional, uleb128
|
|
.aeabi_attribute Tag_Feature_BTI, 1
|
|
.aeabi_attribute Tag_Feature_PAC, 0
|
|
.aeabi_attribute Tag_Feature_GCS, 1
|
|
|
|
|
|
//--- pauth-bti-pac.s
|
|
.aeabi_subsection aeabi_pauthabi, required, uleb128
|
|
.aeabi_attribute Tag_PAuth_Platform, 49
|
|
.aeabi_attribute Tag_PAuth_Schema, 19
|
|
.aeabi_subsection aeabi_feature_and_bits, optional, uleb128
|
|
.aeabi_attribute Tag_Feature_BTI, 1
|
|
.aeabi_attribute Tag_Feature_PAC, 1
|
|
.aeabi_attribute Tag_Feature_GCS, 0
|