1- # RUN: rm -rf %t && split-file %s %t && cd %t
1+ // RUN: rm -rf %t && split-file %s %t && cd %t
22
3- # RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o %t11.o
4- # RUN: llvm-mc -triple=aarch64 -filetype=obj merged-mixed-2.s -o %t12.o
5- # RUN: llvm-mc -triple=aarch64 -filetype=obj merged-mixed-3.s -o %t13.o
6- # RUN: ld.lld -r %t11.o %t12.o %t13.o -o %t.merged1.o
7- # RUN: llvm-readelf -n %t.merged1.o | FileCheck %s --check-prefix=NOTE-MIXED
3+ // RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o %t11.o
4+ // RUN: llvm-mc -triple=aarch64 -filetype=obj merged-mixed-2.s -o %t12.o
5+ // RUN: llvm-mc -triple=aarch64 -filetype=obj merged-mixed-3.s -o %t13.o
6+ // RUN: ld.lld -r %t11.o %t12.o %t13.o -o %t.merged1.o
7+ // RUN: llvm-readelf -n %t.merged1.o | FileCheck %s --check-prefix=NOTE-MIXED
88
9- # NOTE-MIXED: Displaying notes found in: .note.gnu.property
10- # NOTE-MIXED-NEXT: Owner Data size Description
11- # NOTE-MIXED-NEXT: GNU 0x00000028 NT_GNU_PROPERTY_TYPE_0 (property note)
12- # NOTE-MIXED-NEXT: Properties: aarch64 feature: BTI, PAC
13- # NOTE-MIXED-NEXT: AArch64 PAuth ABI core info: platform 0x31 (unknown), version 0x13
9+ // NOTE-MIXED: Displaying notes found in: .note.gnu.property
10+ // NOTE-MIXED-NEXT: Owner Data size Description
11+ // NOTE-MIXED-NEXT: GNU 0x00000028 NT_GNU_PROPERTY_TYPE_0 (property note)
12+ // NOTE-MIXED-NEXT: Properties: aarch64 feature: BTI, PAC
13+ // NOTE-MIXED-NEXT: AArch64 PAuth ABI core info: platform 0x31 (unknown), version 0x13
1414
15- # The Build attributes section appearing in the output of
16- # llvm-mc should not appear in the output of lld, because
17- # AArch64 build attributes are being transformed into .gnu.properties.
15+ /// The Build attributes section appearing in the output of
16+ /// llvm-mc should not appear in the output of lld, because
17+ /// AArch64 build attributes are being transformed into .gnu.properties.
1818
19- # CHECK: .note.gnu.property
20- # CHECK-NOT: .ARM.attributes
19+ // CHECK: .note.gnu.property
20+ // CHECK-NOT: .ARM.attributes
2121
2222.aeabi_subsection aeabi_pauthabi, required, uleb128
2323.aeabi_attribute Tag_PAuth_Platform, 49
2828.aeabi_attribute Tag_Feature_GCS, 1
2929
3030
31- # --- merged-mixed-2.s
31+ // --- merged-mixed-2.s
3232.section ".note.gnu.property" , "a"
3333 .long 4 // Name length is always 4 ("GNU")
3434 .long end - begin // Data length
@@ -40,15 +40,15 @@ begin:
4040 .long 4
4141 .long 7 // GNU_PROPERTY_AARCH64_FEATURE_1_BTI, PAC and GCS
4242 .long 0
43- # PAuth ABI property note
43+ // PAuth ABI property note
4444 .long 0xc0000001 // Type: GNU_PROPERTY_AARCH64_FEATURE_PAUTH
4545 .long 16 // Data size
4646 .quad 49 // PAuth ABI platform
4747 .quad 19 // PAuth ABI version
4848 .p2align 3 // Align to 8 byte for 64 bit
4949end:
5050
51- # --- merged-mixed-3.s
51+ // --- merged-mixed-3.s
5252.section .note.gnu.property, "a"
5353 .align 4
5454 .long 4 // namesz
0 commit comments