forked from cores/microwatt
Zero BSS in hello world test
While trying to reduce U/X state issues, I notice that our BSS is not being initialised in the hello world test. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>fpu-init
parent
ebdddcc402
commit
ff442d1bdb
Binary file not shown.
Binary file not shown.
@ -1,13 +1,27 @@
|
||||
SECTIONS
|
||||
{
|
||||
_start = .;
|
||||
. = 0;
|
||||
_start = .;
|
||||
.head : {
|
||||
KEEP(*(.head))
|
||||
}
|
||||
}
|
||||
. = 0x1000;
|
||||
.text : { *(.text) }
|
||||
.text : { *(.text) *(.text.*) *(.rodata) *(.rodata.*) }
|
||||
. = 0x1800;
|
||||
.data : { *(.data) }
|
||||
.bss : { *(.bss) }
|
||||
.data : { *(.data) *(.data.*) *(.got) *(.toc) }
|
||||
. = ALIGN(0x80);
|
||||
__bss_start = .;
|
||||
.bss : {
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.scommon)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.common)
|
||||
*(.bss.*)
|
||||
}
|
||||
. = ALIGN(0x80);
|
||||
__bss_end = .;
|
||||
. = . + 0x2000;
|
||||
__stack_top = .;
|
||||
}
|
||||
|
Loading…
Reference in New Issue