bti-plt-2.s 379 B

123456789101112131415161718192021
  1. .text
  2. .globl _start
  3. .type _start,@function
  4. func2:
  5. bl foo2
  6. bl bar2
  7. .section ".note.gnu.property", "a"
  8. .p2align 3
  9. .long 1f - 0f /* name length */
  10. .long 5f - 2f /* data length */
  11. .long 5 /* note type */
  12. 0: .asciz "GNU" /* vendor name */
  13. 1:
  14. .p2align 3
  15. 2: .long 0xc0000000 /* pr_type. */
  16. .long 4f - 3f /* pr_datasz. */
  17. 3:
  18. .long 0x1 /* BTI. */
  19. 4:
  20. .p2align 3
  21. 5: