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:
Eric W. Biederman 2002-07-25 20:50:52 +00:00
parent 9dfbc3dcea
commit e34319b59a

View file

@ -100,27 +100,27 @@ SECTIONS
* initialized on startup. (typically uninitialized global variables) * initialized on startup. (typically uninitialized global variables)
* crt0.S fills between _bss and _ebss with zeroes. * crt0.S fills between _bss and _ebss with zeroes.
*/ */
_bss = .;
.bss . : { .bss . : {
_bss = .;
*(.bss) *(.bss)
*(.sbss) *(.sbss)
*(COMMON) *(COMMON)
_ebss = .;
} }
_ebss = .;
_end = .; _end = .;
_stack = .;
.stack . : { .stack . : {
_stack = .;
/* Reserve a stack for each possible cpu, +1 extra */ /* Reserve a stack for each possible cpu, +1 extra */
. = ((MAX_CPUS * STACK_SIZE) + STACK_SIZE) ; . = ((MAX_CPUS * STACK_SIZE) + STACK_SIZE) ;
_estack = .;
} }
_estack = .;
_heap = .;
.heap . : { .heap . : {
_heap = .;
/* Reserve 256K for the heap */ /* Reserve 256K for the heap */
. = HEAP_SIZE ; . = HEAP_SIZE ;
. = ALIGN(4); . = ALIGN(4);
_eheap = .;
} }
_eheap = .;
/* The ram segment /* The ram segment
* This is all address of the memory resident copy of linuxBIOS. * This is all address of the memory resident copy of linuxBIOS.
*/ */