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?
linker problems
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:linker problems
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
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.)
Every good solution is obvious once you've found it.