Hi I am currently generating x86 assembly for a compiler that I am writing and am having some trouble linking the file on my 64-bit VM (the assembly code is 32 bit).
I was able to assemble the object file fine with this command:
as --32 mult.S -o mult.o
but I can't seem to find any options for ld
that make it generate a 32-bit ELF file:
ld <some-option?> mult.o -o mult
Any help would be great.
See Question&Answers more detail:os