diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2013-03-04 15:23:05 +0000 |
---|---|---|
committer | Michael Eager <eager@gcc.gnu.org> | 2013-03-04 15:23:05 +0000 |
commit | 409b1de4e1bf18498abc64fb9f990f61c8010640 (patch) | |
tree | 08a1cb99388451edeb487808e0446aea88df2fe2 /libgcc/config/microblaze | |
parent | 0b4ce21bcbdbe3766c27030587ba16d002fa77f2 (diff) | |
download | gcc-409b1de4e1bf18498abc64fb9f990f61c8010640.zip gcc-409b1de4e1bf18498abc64fb9f990f61c8010640.tar.gz gcc-409b1de4e1bf18498abc64fb9f990f61c8010640.tar.bz2 |
Setup stack protection at entry.
* config/microblaze/crti.S: Setup stack protection at entry
From-SVN: r196432
Diffstat (limited to 'libgcc/config/microblaze')
-rw-r--r-- | libgcc/config/microblaze/crti.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S index e5136db..024a0ba 100644 --- a/libgcc/config/microblaze/crti.S +++ b/libgcc/config/microblaze/crti.S @@ -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 |