Centos8安装32位编译环境
安装32位glibc库文件命令:(安装C库文件)
sudo yum install glibc-devel.i686
安装32位glibc++库文件命令
sudo yum install libstdc+±devel.i686
.code32
.section .data
helloworld:
.ascii "hello world\n"
.section .text
.global _start
_start:
pushl $helloworld
call printf
pushl $0
call exit
保存文件 helloworld.s
as --32 helloworld.s -o hellworld.o && ld -m elf_i386 -dynamic-linker /lib/ld-linux-so.2 -o helloworld helloworld.o -lc