Merge branch '2021-05-24-add-lto-support'
authorTom Rini <trini@konsulko.com>
Mon, 24 May 2021 20:12:31 +0000 (16:12 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 20:12:31 +0000 (16:12 -0400)
commit27c6d9663c3f42059514e47c17652304a1cfcfc9
tree15e7a1deb449053a3ffca9b708813cce2da366ec
parenteb53b943be2949ca111140a8e05532cd74cda058
parent2fc62f2991744dfeec65f8619092c359d8ecbcb0
Merge branch '2021-05-24-add-lto-support'

- Add LTO (link time optimization) support to the build system and
  enable it on a few boards.  This is an alternative to using
  -ffunction-sections/-fdata-sections and --gc-sections at link time to
  remove unused code.  This can result in notable savings, but needs
  testing on each platform before use as it can expose problems by
  optimizing away various functionally necessary calls.