Description
Hey all,
I've noticed in nightly-2019-07-18, rustc has begun producing symbols in the .ARM.exidx
region, which it did not previously do. As our standard linker script does not have a linker rule for this region, building fails with with the following error:
= note: rust-lld: error: no memory region specified for section '.ARM.exidx'
To reproduce this, this project can be used: https://github.com/ferrous-systems/embedded-trainings/tree/master/beginner/templates/segment-1. You will need to add the thumbv7em-none-eabihf
target first. This builds with the current and previous stable releases (1.32 <= version <= 1.36), but does not build with nightly-2019-07-18. This also seems fine with rustc 1.37.0-beta.3 (2ba6de7 2019-07-12). I have not yet attempted to bisect this.
We've had a previous similar issue here: rust-embedded/cortex-m-rt#157 - and the fix was to discard that section in our linker script template. However I first wanted to check if this new output was expected, because it would cause a stable to stable regression if folks don't update the cortex-m-rt crate, which includes the linker script template.