Files
raspberrypi/bssdata/simple
root 467e3eb389 adding bssdata example to explain what I mean about not using .data or zeroing .bss
and what happens to you if you assume something when using my code as a baseline.
2012-09-05 02:43:48 -04:00

18 lines
353 B
Plaintext

MEMORY
{
calvin : ORIGIN = 0x1000, LENGTH = 0x1000
hobbes : ORIGIN = 0x2000, LENGTH = 0x1000
susie : ORIGIN = 0x3000, LENGTH = 0x1000
rosalyn : ORIGIN = 0x4000, LENGTH = 0x1000
}
SECTIONS
{
.text : { *(.text*) } > calvin
.bss : { *(.bss*) } > hobbes
.rodata : { *(.rodata*) } > susie
.data : { *(.data*) } > rosalyn
}