raburton / rboot

An open source bootloader for the ESP8266
https://richard.burtons.org/tag/rboot/?order=ASC
MIT License
300 stars 72 forks source link

ld: don't use --no-check-sections, gcc: don't use -Os and -O3 together. #46

Closed eriksl closed 5 years ago

eriksl commented 5 years ago

ld: don't use --no-check-sections

It's a dangerous option and doesn't seem to be necessary.

gcc: don't use -Os and -O3 together.

Contrary to what the documentation says, the last one specified wins, so
the code is compiled -O3 and not -Os. Remove the -Os shrinks the code
considerately.