This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Linker error: "no memory region specified for section '.ARM.extab'" #157
Comments
If you run against a fork of cortex-m-rt and hack the link.x.in to discard the |
@thejpster Sorry for the delay! I tried it again with a modified link.x.in, but the same error occurs. Not sure why… |
Closed
Edit: I was compiling with some code commented out. Sorry for the noise. |
Merged
@thejpster Ok, I did some more investigation and was able to fix this by discarding I opened a new PR in #170. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm working with generators and async/await. I tried to move some more complex function into a generator, but I got the following linker error when compiling in debug mode:
I looked for other mentions of
.ARM.extab
on GitHub and found this PR from 2014: hackndev/zinc#238. It seems like this section is used for unwinding and can be discarded. When I compile in release mode with LTO the error disappears, so it really seems like the section isn't needed.I think we could fix this problem by either discarding or including
.ARM.extab
in link.x.in.My rust version is:
rustc 1.32.0-nightly (edaac35d6 2018-11-24)
.The text was updated successfully, but these errors were encountered: