mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Fix ldscript.base to work around linker bugs.
In particular symbols inside of NOALLOC sections were being allocated at the start of the section.
This commit is contained in:
parent
9dfbc3dcea
commit
e34319b59a
1 changed files with 6 additions and 6 deletions
|
@ -100,27 +100,27 @@ SECTIONS
|
|||
* initialized on startup. (typically uninitialized global variables)
|
||||
* crt0.S fills between _bss and _ebss with zeroes.
|
||||
*/
|
||||
_bss = .;
|
||||
.bss . : {
|
||||
_bss = .;
|
||||
*(.bss)
|
||||
*(.sbss)
|
||||
*(COMMON)
|
||||
_ebss = .;
|
||||
}
|
||||
_ebss = .;
|
||||
_end = .;
|
||||
_stack = .;
|
||||
.stack . : {
|
||||
_stack = .;
|
||||
/* Reserve a stack for each possible cpu, +1 extra */
|
||||
. = ((MAX_CPUS * STACK_SIZE) + STACK_SIZE) ;
|
||||
_estack = .;
|
||||
}
|
||||
_estack = .;
|
||||
_heap = .;
|
||||
.heap . : {
|
||||
_heap = .;
|
||||
/* Reserve 256K for the heap */
|
||||
. = HEAP_SIZE ;
|
||||
. = ALIGN(4);
|
||||
_eheap = .;
|
||||
}
|
||||
_eheap = .;
|
||||
/* The ram segment
|
||||
* This is all address of the memory resident copy of linuxBIOS.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue