Skip to content

Add support for segments that are not page aligned #339

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

Open
wants to merge 2 commits into
base: riscv
Choose a base branch
from

Conversation

IkerGalardi
Copy link

Certain compiler toolchains produce executable files that are not aligned to page boundaries, making the kernel unable to load executables from those toolchains.

Using this patch the operating system supports building the entire operating system with clang and the llvm toolchain.

Before the returned addess was always page aligned. With this patch the
returned address also takes into account the offset of the virtual
address, to return the true transalted address.
@IkerGalardi IkerGalardi marked this pull request as draft April 4, 2025 08:12
@IkerGalardi IkerGalardi force-pushed the unaligned-segment-loads branch from d7c8f53 to 1162d96 Compare April 4, 2025 08:13
@IkerGalardi IkerGalardi marked this pull request as ready for review April 4, 2025 08:14
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 this pull request may close these issues.

1 participant