flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > Linker Script

Author
Thread Post new topic Reply to topic
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat 02 Dec 2006, 02:55
I'm not sure if this topic would go here naturally, I put it here though 'cause this is the HLL section...

But say I wanted to write an OS using the booting code in FASM, and used C for everything else. I've looked at other sites (i.e. - http://www.osdever.net/) and most of the things there use what's called a linker script.

This may sound like a stupid question, but what is a linker script exactly and how does it work, and more importantly how can I create my own for GNU ld to work with GCC and FASM?

Thanks a bunch!

-Rhyno
Post 02 Dec 2006, 02:55
View user's profile Send private message Reply with quote
Kain



Joined: 26 Oct 2003
Posts: 108
Kain 02 Dec 2006, 03:20
A linker script tells the linker how to combine the objects and what headers to write. ld is somewhat complex as it encompasses just about every operating system and output type out there.

Here's an online manual. You have some reading to do...

http://www.gnu.org/software/binutils/manual/ld-2.9.1/ld.html
Post 02 Dec 2006, 03:20
View user's profile Send private message Reply with quote
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat 02 Dec 2006, 03:33
Thanks Kain!
Post 02 Dec 2006, 03:33
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.