rust-embedded / cortex-m-rt

Minimal startup / runtime for Cortex-M microcontrollers

Home Page:https://rust-embedded.github.io/cortex-m-rt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.ARM.exidx may need to be ignored in LLD9

jamesmunns opened this issue · comments

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.

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.