Here's a set of cleanups that I generated in the process of getting newlib working for my cortex-m* products. These and a number of other changes are available in the Debian gitlib instance: https://salsa.debian.org/electronics-team/toolchains/newlib-nano -keith