ptkrisada

C overbound char (asm)

Nov 3rd, 2021 (edited)
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file    "main.c"
  2.     .text
  3.     .section .rodata.str1.1,"aMS",@progbits,1
  4. .LC0:
  5.     .string  "%d\n"
  6.     .section .text.startup,"ax",@progbits
  7.     .globl   main
  8.     .type    main, @function
  9. main:
  10. .LFB3:
  11.     .cfi_startproc
  12.     subq     $8, %rsp
  13.     .cfi_def_cfa_offset 16
  14.     movl     $-1, %esi
  15.     movl     $.LC0, %edi
  16.     xorl     %eax, %eax
  17.     call     printf
  18.     xorl     %eax, %eax
  19.     addq     $8, %rsp
  20.     .cfi_def_cfa_offset 8
  21.     ret
  22.     .cfi_endproc
  23. .LFE3:
  24.     .size     main, .-main
  25.     .ident    "GCC: (nb4 20200810) 7.5.0"
Add Comment
Please, Sign In to add comment