I was experiencing this bug as well and can add that gcc-arm-none-eabi-7-2017-q4-major from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads still exhibits this problem.
I needed to put startup before sources for -flto to work, thanks for the work-around!
I was experiencing this bug as well and can add that gcc-arm- none-eabi- 7-2017- q4-major from https:/ /developer. arm.com/ open-source/ gnu-toolchain/ gnu-rm/ downloads still exhibits this problem.
I needed to put startup before sources for -flto to work, thanks for the work-around!
I can't test with Ubuntu 18.04 packages because of this bug https:/ /bugs.launchpad .net/ubuntu/ +source/ newlib/ +bug/1768125