flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > Linker Script |
Author |
|
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 |
|||
02 Dec 2006, 02:55 |
|
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 |
|||
02 Dec 2006, 03:20 |
|
rhyno_dagreat 02 Dec 2006, 03:33
Thanks Kain!
|
|||
02 Dec 2006, 03:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.