Setup stack protection at entry.

* config/microblaze/crti.S: Setup stack protection at entry

From-SVN: r196432
This commit is contained in:
Edgar E. Iglesias 2013-03-04 15:23:05 +00:00 committed by Michael Eager
parent 0b4ce21bcb
commit 409b1de4e1
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
* config/microblaze/crti.S: Setup stack protection at entry
2013-03-04 Georg-Johann Lay <avr@gjlay.de>
* config/avr/lib1funcs.S (__ashrdi3, __lshrdi3, __ashldi3)

View File

@ -26,10 +26,20 @@
.section .init, "ax"
.global __init
.weak _stack
.set _stack, 0xffffffff
.weak _stack_end
.set _stack_end, 0
.align 2
__init:
addik r1, r1, -8
sw r15, r0, r1
la r11, r0, _stack
mts rshr, r11
la r11, r0, _stack_end
mts rslr, r11
.section .fini, "ax"
.global __fini