diff options
Diffstat (limited to 'bsps/v850')
-rw-r--r-- | bsps/v850/gdbv850sim/start/linkcmds | 11 | ||||
-rw-r--r-- | bsps/v850/gdbv850sim/start/start.S | 11 |
2 files changed, 3 insertions, 19 deletions
diff --git a/bsps/v850/gdbv850sim/start/linkcmds b/bsps/v850/gdbv850sim/start/linkcmds index 86613dd73d..c128a08de1 100644 --- a/bsps/v850/gdbv850sim/start/linkcmds +++ b/bsps/v850/gdbv850sim/start/linkcmds @@ -4,7 +4,6 @@ _RamBase = DEFINED(_RamBase) ? _RamBase : 0x100000; /* RAM starts at 1MB */ _RamSize = DEFINED(_RamSize) ? _RamSize : 0x100000; /* default is 1MB */ _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; /* Default linker script, for normal executables */ OUTPUT_FORMAT("elf32-v850-rh850", "elf32-v850-rh850", @@ -192,8 +191,6 @@ SECTIONS *(.bss) *(COMMON) } - . += _StackSize; - _stack = .; .rtemsstack (NOLOAD) : { *(SORT(.rtemsstack.*)) } @@ -233,13 +230,5 @@ SECTIONS .debug_funcnames 0 : { *(.debug_funcnames) } .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } - /* libgloss - User stack. */ -/* - .stack 0x200000 : - { - __stack = .; - *(.stack) - } -*/ } diff --git a/bsps/v850/gdbv850sim/start/start.S b/bsps/v850/gdbv850sim/start/start.S index 419e635393..82ae4ebcb7 100644 --- a/bsps/v850/gdbv850sim/start/start.S +++ b/bsps/v850/gdbv850sim/start/start.S @@ -9,7 +9,7 @@ _start: movea 255, r0, r20 mov 65535, r21 - mov hilo(_stack), sp + mov hilo(__Configuration_Interrupt_stack_area_end), sp mov hilo(__ep), ep mov hilo(__gp), gp mov hilo(__ctbp), r6 @@ -36,8 +36,8 @@ _start: movea 255, r0, r20 mov r0, r21 ori 65535, r0, r21 - movhi hi(_stack), r0, sp - movea lo(_stack), sp, sp + movhi hi(__Configuration_Interrupt_stack_area_end), r0, sp + movea lo(__Configuration_Interrupt_stack_area_end), sp, sp movhi hi(__ep), r0, ep movea lo(__ep), ep, ep movhi hi(__gp), r0, gp @@ -66,11 +66,6 @@ _start: /* jarl _exit, r31 */ # endif -#if 0 - .section .stack -_stack: .long 1 -#endif - .section .data .global ___dso_handle .weak ___dso_handle |