26 lines · plain
1// RUN: llvm-mc -triple=aarch64 %s -o - | FileCheck %s --check-prefix=ASM2// RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o - | llvm-readelf --hex-dump=.ARM.attributes - | FileCheck %s --check-prefix=ELF3 4// ASM: .aeabi_subsection aeabi_pauthabi, required, uleb1285// ASM: .aeabi_attribute 1, 0 // Tag_PAuth_Platform6// ASM: .aeabi_attribute 2, 0 // Tag_PAuth_Schema7// ASM: .aeabi_subsection aeabi_feature_and_bits, optional, uleb1288// ASM: .aeabi_attribute 0, 0 // Tag_Feature_BTI9// ASM: .aeabi_attribute 1, 0 // Tag_Feature_PAC10// ASM: .aeabi_attribute 2, 0 // Tag_Feature_GCS11 12// ELF: Hex dump of section '.ARM.attributes':13// ELF-NEXT: 0x00000000 41190000 00616561 62695f70 61757468 A....aeabi_pauth14// ELF-NEXT: 0x00000010 61626900 00000100 02002300 00006165 abi.......#...ae15// ELF-NEXT: 0x00000020 6162695f 66656174 7572655f 616e645f abi_feature_and_16// ELF-NEXT: 0x00000030 62697473 00010000 00010002 0017 18 19.aeabi_subsection aeabi_pauthabi, required, uleb12820.aeabi_attribute Tag_PAuth_Platform, 021.aeabi_attribute Tag_PAuth_Schema, 022.aeabi_subsection aeabi_feature_and_bits, optional, uleb12823.aeabi_attribute Tag_Feature_BTI, 024.aeabi_attribute Tag_Feature_PAC, 025.aeabi_attribute Tag_Feature_GCS, 026