ld <some-option?> mult.o -o mult
ld -m elf_i386 mult.o -o mult
You can get a list of available architectures with:
ld -V
Sample output:
GNU ld (GNU Binutils for Ubuntu) 2.24
Supported emulations:
elf_x86_64
elf32_x86_64
elf_i386
i386linux
elf_l1om
elf_k1om
i386pep
i386pe
However, that shouldn't be necessary: ld looks at the first object, and should automatically select emulation based on the format of that object.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…