feat(userland): ported GNU binutils - #184
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Adds a large third-party toolchain build and CI dependency; kernel syscall semantics for
fcntl(F_GETFL)and newlstatcan affect any userland that relies on those interfaces.Overview
Adds a pinned GNU binutils 2.45 cross-build (
make binutils) that installs staticas,ld,objdump, and related tools intouserland/toolchain/for x86_64 and aarch64, using a newstellux-ccwrapper and optional patches. A binutils userland app copies those binaries into the initrd at/usr/bin, and CI cachesuserland/toolchainbefore kernel/userland builds. Setup docs,.gitignore, andtoolchain-checkare updated accordingly.UEFI disk images (Makefile and flash scripts) grow from 256 MB to 512 MB to fit the larger rootfs.
Kernel fixes to support typical binutils/configure behavior:
lstaton x86_64 (vianewfstatatwithAT_SYMLINK_NOFOLLOW), andfcntl(F_GETFL)now reports read/write access mode from handle rights instead of the handle flag word.Reviewed by Cursor Bugbot for commit b2afd7d. Bugbot is set up for automated code reviews on this repo. Configure here.