Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GCC tries to link your 32-bit object files against certain 32-bit libraries. Those aren't present by default on a 64-bit system, so you need to install them: yum install glibc-devel.i686 libgcc.i686

Now you can build your source code, but don't forget the 32-bit flag:

gcc -c -m32 driver.c
nasm -f elf prime.asm
nasm -f elf -d ELF_TYPE asm_io.asm
gcc -m32 -oprime driver.o prime.o asm_io.o