For the sample 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 - or a value of my chosing?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 - or a value of my chosing?
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 }