Skip to content

Conversation

@Hilderin
Copy link

This PR includes the minimal necessary changes to update the project to work with Zig 0.15.2.

Updating now ensures continued compatibility with current Zig toolchains and avoids issues encountered in older versions. The changes are minimal from master and preserve existing functionality.

Notes

From previous PRs, it seems that it was necessary to build with -O ReleaseSmall (and -O ReleaseFast also worked) to avoid LLVM compatibility issues such as:

error: Invalid record (Producer: 'zig 0.14.0' Reader: 'LLVM 19.1.4')

However, in Zig 0.15.2, using -O ReleaseSmall and -O ReleaseFast now causes the following error when attempting to boot:

Error loading uncompressed kernel without PVH ELF Note

I'm really no expert with Zig and Qemu but this appears to be related to how newer Zig versions handle binary section layout and ELF metadata when optimizing.

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