IA32 AT&T Helloworld
#!/usr/bin/env -S gcc -nostdlib -no-pie -o hello
.section .rodata
.align 4
.LC0:
.ascii "Hello, World!\n"
.LC1:
.long .LC1 - .LC0
.text
.globl _start
.type _start, @function
_start:
movl $4, %eax
movl $1, %ebx
movl $.LC0, %ecx
movl .LC1, %edx
int $0x80 # write to fd=1
movl $1, %eax
movl $0, %ebx
int $0x80 # exit 0
hlt
标签:movl,LC0,LC1,start,World,Hello
From: https://www.cnblogs.com/lyazj/p/17574229.html