Skip to content

0.23.4: the stub of libSystem lists __bzero for x86_64 - #50

Merged
Sunrisepeak merged 1 commit into
mainfrom
fix/0.23.4-bzero
Nov 15, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
fix/0.23.4-bzero

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Clang lowers a zeroing memset to __bzero on this system's x86_64, and this
package's objects carry such stores in a release build (src/process.cpp,
src/fs.cpp). A link with no SDK, which the stub serves, stopped at
`undefined symbol: __bzero', so a release build for x86_64-macos-musl failed
for every program. The stub lists the name for x86_64; the program binds it
to the system's library when it runs.

CI links such a program on Linux, this working tree as the kernel-abi layer
of openkal-platform's hosted arrangement, and runs it on an Intel Mac.

Clang lowers a zeroing memset to __bzero on this system's x86_64, and this
package's objects carry such stores in a release build (src/process.cpp,
src/fs.cpp). A link with no SDK, which the stub serves, stopped at
`undefined symbol: __bzero', so a release build for x86_64-macos-musl failed
for every program. The stub lists the name for x86_64; the program binds it
to the system's library when it runs.

CI links such a program on Linux, this working tree as the kernel-abi layer
of openkal-platform's hosted arrangement, and runs it on an Intel Mac.
@Sunrisepeak
Sunrisepeak merged commit 51cecb7 into main Nov 15, 2026
5 checks passed
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