Good Windows Linker

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
fbudek
Posts: 7
Joined: Sat Aug 04, 2012 2:43 pm

Good Windows Linker

Post by fbudek »

Does anyone know where I can get a good linker - for windows - that is compatible with a.out object files?
Help appreciated :)
Current Project:
Unnamed OS (5% complete)
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Good Windows Linker

Post by melgmry0101b »

Hi fbudek,
You can use DJGPP : http://www.delorie.com/djgpp/
fbudek
Posts: 7
Joined: Sat Aug 04, 2012 2:43 pm

Re: Good Windows Linker

Post by fbudek »

Thanks, Mezo :)
Now it can recognise them as a.out but it comes out in a different error this time:
main.o:main.c:(.text+0x94): undefined reference to '___main'
Once again, help appreciated! :)
Current Project:
Unnamed OS (5% complete)
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Good Windows Linker

Post by thepowersgang »

I counter the previous suggestion, and point you to MinGW

DJGPP is a vastly out of date port of the GNU toolchain to DOS/Win16. MinGW is nicely updated.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
fbudek
Posts: 7
Joined: Sat Aug 04, 2012 2:43 pm

Re: Good Windows Linker

Post by fbudek »

Thanks, powersgang.
I already started by trying it with MinGW but it didnt seem to support a.out :(
Current Project:
Unnamed OS (5% complete)
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Good Windows Linker

Post by AJ »

Hi,

I guess one way would be to look at cross-compiling binutils on cygwin/mingw? Could you give a higher-level overview of what you are trying to achieve and why you need to be tied to a.out? It may be that with a it more detail there's an alternative solution to the problem.

Cheers,
Adam
fbudek
Posts: 7
Joined: Sat Aug 04, 2012 2:43 pm

Re: Good Windows Linker

Post by fbudek »

I am going to try compiling everything under Linux (through VirtualPC) and see if that works.
If not, then I will start to look into a.out alternatives.
Thanks for the great response overall so far, though ;)
Current Project:
Unnamed OS (5% complete)
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: Good Windows Linker

Post by qw »

To find the question behind the question: why are you using such an outdated format?
fbudek
Posts: 7
Joined: Sat Aug 04, 2012 2:43 pm

Re: Good Windows Linker

Post by fbudek »

I am making this as an extremely minimal OS which I am building up from part of a tutorial,
which used a.out (nasm -f aout -o start.o start.asm)
So I'm not entirely sure whether everything will work together if I change the object format for start.o
Current Project:
Unnamed OS (5% complete)
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Good Windows Linker

Post by bluemoon »

I recommend try out the tutorial from this site, which adopt decent tool-chain.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Good Windows Linker

Post by Combuster »

The canon solution for this error in general is the GCC Cross-Compiler. In your case Searching should have been sufficient.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply