Skip to content

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

Description

@BigBadE

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.

Activity

  1. phil-opp commented on Nov 29, 2022

    @phil-opp
    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.

  2. BigBadE commented on Nov 29, 2022

    @BigBadE
    Author

    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.

  3. pinned this issue on Nov 29, 2022
  4. phil-opp commented on Nov 29, 2022

    @phil-opp
    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.

  5. BigBadE commented on Nov 29, 2022

    @BigBadE
    Author

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

  6. unpinned this issue on Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions