Browse Source
Issue 54: Code grows to >512 bytes with gcc 4.5.3
Use attribute "OS_main" instead of "naked" for main()
http://code.google.com/p/optiboot/issues/detail?id=54
This is more correct, and prevents code growth when using
gcc4.5.3 and later, where certain optimizations are disabled
in "naked" functions. In 4.3.2 (current used, the binary
does not change.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42240