Page 1 of 1

linker problems

Posted: Mon Oct 31, 2005 2:16 pm
by seph
When I try to link my bootstub with cygwins ld I get a message that says the file format is not recognized.

The stub is compiled with nasm using -f aout

Should I try another linker, and where can I find one of those?

Re:linker problems

Posted: Mon Oct 31, 2005 4:22 pm
by Pype.Clicker
i rather suggest that you try to find out what input format your linker support (e.g. coff or elf) and ask NASM to output binaries in that format.

Re:linker problems

Posted: Tue Nov 01, 2005 6:00 am
by Solar
FAQ: GCC Cross-Compiler tells you how to set up a compiler / assembler / linker / disassembler toolchain that "speaks" whatever format you like. (Just set $TARGET for whatever you want.)