Skip to content

guest: fix freestanding GCC malloc/free declarations#74

Open
jlinenkohl wants to merge 1 commit into
varnish:masterfrom
jlinenkohl:pr-b-guest-toolchain-fix
Open

guest: fix freestanding GCC malloc/free declarations#74
jlinenkohl wants to merge 1 commit into
varnish:masterfrom
jlinenkohl:pr-b-guest-toolchain-fix

Conversation

@jlinenkohl
Copy link
Copy Markdown
Contributor

PR B Draft: Guest Toolchain Compatibility Fix

Summary

This PR fixes guest build compatibility for stricter freestanding C++ toolchains by addressing malloc/free declaration visibility in intrinsics-related translation units.

What Changed

Files in this PR:

  • guest/src/guest.cpp
  • guest/src/crc32c.cpp

Scope

  • Build/toolchain compatibility only.
  • No relocation policy or loader behavior changes.
  • No functional feature expansion.

Why

Recent toolchain behavior can fail guest builds due to declaration visibility rules. This patch restores build stability in that environment.

Validation

  • cd guest && bash ./build.sh

Reviewer Ask

Please review this as an orthogonal maintenance fix independent of relocation semantics.

@jlinenkohl jlinenkohl marked this pull request as ready for review May 20, 2026 22:11
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