.ARM.exidx may need to be ignored in LLD9
jamesmunns opened this issue · comments
James Munns commented
Context in rust-lang/rust#62781.
Testing locally, adding a discard for *(.ARM.exidx);
will prevent this error, or changing https://github.com/rust-embedded/cortex-m-rt/blob/master/link.x.in#L152 to *(.ARM.exidx*);
both prevent linker errors. I am not sure which one is more idiomatic.
Adam Greig commented
I would add *(.ARM.exidx);
separately to the .*
one, which is what we do elsewhere in the linker script (e.g. .got .got.*
) and seems to be more common practice.