LD builtin linker script
Posted: Sat May 02, 2009 2:35 am
Hi
I now have gcc and friends running natively on my OS (Thanks pcmattman!!). It does produce valid looking executables but my lazy loading routines have always barfed on non-page aligned sections. As a result I've always had to specify a linker script when compiling anything.
That aside, how do I control the default behavior of LD? I've followed the 'OS Specfic Toolchain' tutorial to add my OS as a target then Canadian cross built native binutils/gcc with it. I'm guessing this must be done at compile time as it uses a 'builtin' linker script... but where is that configured?
Thanks
I now have gcc and friends running natively on my OS (Thanks pcmattman!!). It does produce valid looking executables but my lazy loading routines have always barfed on non-page aligned sections. As a result I've always had to specify a linker script when compiling anything.
That aside, how do I control the default behavior of LD? I've followed the 'OS Specfic Toolchain' tutorial to add my OS as a target then Canadian cross built native binutils/gcc with it. I'm guessing this must be done at compile time as it uses a 'builtin' linker script... but where is that configured?
Thanks