Commit 409b1de4 by Edgar E. Iglesias Committed by Michael Eager

Setup stack protection at entry.

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

From-SVN: r196432
parent 0b4ce21b
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> 2013-03-04 Georg-Johann Lay <avr@gjlay.de>
* config/avr/lib1funcs.S (__ashrdi3, __lshrdi3, __ashldi3) * config/avr/lib1funcs.S (__ashrdi3, __lshrdi3, __ashldi3)
......
...@@ -26,10 +26,20 @@ ...@@ -26,10 +26,20 @@
.section .init, "ax" .section .init, "ax"
.global __init .global __init
.weak _stack
.set _stack, 0xffffffff
.weak _stack_end
.set _stack_end, 0
.align 2 .align 2
__init: __init:
addik r1, r1, -8 addik r1, r1, -8
sw r15, r0, r1 sw r15, r0, r1
la r11, r0, _stack
mts rshr, r11
la r11, r0, _stack_end
mts rslr, r11
.section .fini, "ax" .section .fini, "ax"
.global __fini .global __fini
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment