brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · e6634e0 Raw
37 lines · plain
1# REQUIRES: aarch642# RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %s -o %t.o3# RUN: ld.lld -r %t.o -o %t2.o4# RUN: llvm-readelf -n %t2.o | FileCheck -match-full-lines %s5 6## Test that .note.gnu.property is passed through -r, and that we can handle7## more than one FEATURE_AND in the same object file. This is logically the8## same as if the features were combined in a single FEATURE_AND as the rule9## states that the bit in the output pr_data field if it is set in all10.text11ret12 13.section ".note.gnu.property", "a"14.p2align 315.long 416.long 0x1017.long 0x518.asciz "GNU"19 20.long 0xc0000000 // GNU_PROPERTY_AARCH64_FEATURE_1_AND21.long 422.long 1          // GNU_PROPERTY_AARCH64_FEATURE_1_BTI23.long 024 25.long 426.long 0x1027.long 0x528.asciz "GNU"29.long 0xc0000000 // GNU_PROPERTY_AARCH64_FEATURE_1_AND30.long 431.long 2          // GNU_PROPERTY_AARCH64_FEATURE_1_PAC32.long 033 34# CHECK:   Owner                 Data size	Description35# CHECK-NEXT:   GNU                   0x00000010	NT_GNU_PROPERTY_TYPE_0 (property note)36# CHECK-NEXT:     Properties:    aarch64 feature: BTI, PAC37