Follow-up Comment #1, bug #45701 (project avr-libc): The current startup code allows a custom value for SP init by defining symbol __stack , for example: -Wl,--defsym,__stack=0x123 or by defining that symbol in a custom linker description file.
Moreover it is not uncommon to (re)start an application by jumping to 0x0, e.g. from a bootloader. If the startup code was "optimized" as proposed, that code will no more work as expected. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?45701> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev