property-bti-pac1.s 678 B

12345678910111213141516171819202122232425262728293031323334353637
  1. .text
  2. .globl _start
  3. .type _start,@function
  4. _start:
  5. mov x1, #2
  6. .ifndef __mult__
  7. bl foo
  8. .endif
  9. .section ".note.gnu.property", "a"
  10. .p2align 3
  11. .long 1f - 0f /* name length */
  12. .long 5f - 2f /* data length */
  13. .long 5 /* note type */
  14. 0: .asciz "GNU" /* vendor name */
  15. 1:
  16. .p2align 3
  17. 2: .long 0xc0000000 /* pr_type. */
  18. .long 4f - 3f /* pr_datasz. */
  19. 3:
  20. .long 0x2 /* PAC. */
  21. 4:
  22. .p2align 3
  23. 5:
  24. .p2align 3
  25. .long 1f - 0f /* name length */
  26. .long 5f - 2f /* data length */
  27. .long 5 /* note type */
  28. 0: .asciz "GNU" /* vendor name */
  29. 1:
  30. .p2align 3
  31. 2: .long 0xc0000000 /* pr_type. */
  32. .long 4f - 3f /* pr_datasz. */
  33. 3:
  34. .long 0x1 /* BTI. */
  35. 4:
  36. .p2align 3
  37. 5: