Conversation
We get `relocation R_386_16 out of range: 74743 is not in [-32768, 65535]` errors with the latest nightlies, as reported in #520. All the failed relocations are from the `.start` section, referencing the `.bss` section. This commit fixes these errors by moving the `.bss` section in between the `.start` and `.text` sections so that it is closer to the `.start` section.
|
#520 (comment) mentions a second issue:
Let's see whether the CI passes. |
Where did you see that? I only see references from .text e.g. |
|
The "Build examples" job is failing because it's depending on the bootloader crates from crates.io instead of using a path dependency. We can ignore this for this PR. |
Yep, you're right! I blindly assumed that the |
Yes, but the Test jobs time out too. I can reproduce this locally, it seems to crash/hang during parsing a Without this PR, it works as expected... |
|
I opened #522 with alternative approach (keep the linker script unchanged and switch back to legacy mangling). |
|
Closing in favor of #522 for now. |
We get
relocation R_386_16 out of range: 74743 is not in [-32768, 65535]errors with the latest nightlies, as reported in #520. All the failed relocations are from the.startsection, referencing the.bsssection. This commit fixes these errors by moving the.bsssection in between the.startand.textsections so that it is closer to the.startsection.Fixes #520