pr17704a_test.s 320 B

1234567891011121314151617181920212223
  1. nop
  2. .section .text.foo,"axG",@progbits,foo,comdat
  3. foo:
  4. ret
  5. .section .text.bar,"axG",@progbits,bar,comdat
  6. .align 2
  7. bar:
  8. ret
  9. .section .text._start,"ax",@progbits
  10. .globl _start
  11. _start:
  12. leaq bar(%rip), %rsi
  13. testb $1, %sil
  14. je .L9
  15. mov $1, %eax
  16. mov $1, %ebx
  17. int $0x80
  18. .L9:
  19. mov $1, %eax
  20. mov $0, %ebx
  21. int $0x80