Linker Script Question

Alfie Noakes <[email protected]> Tue, 28 Apr 2009 19:39:23 +0100
Newsgroups gmane.comp.gnu.utils
Organization virginmedia.com
Message-ID <[email protected]>
For the linker script below I have two questions....

1)  How can I make sure the image between the end of output1 and the
beginning of output2 is filled with 0xff?

2) Even though output2 is only small, how can I force the image to
extend up to the end of bootsec and be padded with 0xff?

All day I've been trying various things from the ld manual but have
nothing to show for it  :-(



MEMORY
{
	bootsec (wx) : ORIGIN =0x00000000, LENGTH = 16k
}

SECTIONS
{
	output1 0x0000 : 
	{
		bootstrap.o(.text)
	} >bootsec  =0xffffffff

	output2 0x3e00 : 
	{
		version_string.o(.data)
	} >bootsec  =0xffffffff
}