Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.text and .partition_table range overlap on latest nightly #291

Closed
BigBadE opened this issue Nov 29, 2022 · 4 comments · Fixed by #283
Closed

.text and .partition_table range overlap on latest nightly #291

BigBadE opened this issue Nov 29, 2022 · 4 comments · Fixed by #283

Comments

@BigBadE
Copy link

BigBadE commented Nov 29, 2022

On Windows 10, using Nightly 11/29/2022, the .text and .partition_table range overlap, preventing bootloader from building:

    = note: rust-lld: error: section .text file range overlaps with .partition_table
            >>> .text range is [0xC5C, 0xDE1]
            >>> .partition_table range is [0xDBE, 0xDFD]

            rust-lld: error: section .text virtual address range overlaps with .partition_table
            >>> .text range is [0x7C5C, 0x7DE1]
            >>> .partition_table range is [0x7DBE, 0x7DFD]

            rust-lld: error: section .text load address range overlaps with .partition_table
            >>> .text range is [0x7C5C, 0x7DE1]
            >>> .partition_table range is [0x7DBE, 0x7DFD]


  error: could not compile `bootloader-x86_64-bios-boot-sector` due to previous error

I pulled commit 2ac7140 to make sure the issue is caused by an update in the toolchain, and previous versions failed to compile as well. The build passed on another Windows 10 pc running a Nightly from earlier this month, I will update on it as well to confirm the issue isn't device-specific.

@phil-opp
Copy link
Member

Thanks for reporting! I think we fixed this error as part of #283, which is not merged yet. Could you try the release branch? The fixed version is also available on crates.io as v0.11.0-beta.4.

@BigBadE
Copy link
Author

BigBadE commented Nov 29, 2022

Ah, it was even in with the fundy error, release branch compiles fine. I guess this issue will work for documenting the bug at least.

@phil-opp
Copy link
Member

Thanks for testing! Yeah, this issue is definitely useful until we merge #283, thanks! I pinned it to the top of the issues list.

@BigBadE
Copy link
Author

BigBadE commented Nov 29, 2022

Thanks! Glad I can help some, still trying to learn more OS dev to directly contribute

@phil-opp phil-opp unpinned this issue Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants