linker problems

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
seph

linker problems

Post 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?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:linker problems

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:linker problems

Post 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.)
Every good solution is obvious once you've found it.
Post Reply