Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

The issue is caused by stricter alignment checks in older versions of the linux loader.
Using objcopy on the native image fixes thoes alignment issues.

With -H:+StripDebugInfo (which is the default) after writing the image, for builds on linux, the native image builder uses objcopy to strip not needed sections/symbols.
If we also use objcopy but don't strip anything in the other case, the object file will have proper alignment.

This is a temporary fix and a proper fix will be provided with GR-68594.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 7, 2025
@graalvmbot graalvmbot merged commit 00db562 into master Aug 8, 2025
11 of 13 checks passed
@graalvmbot graalvmbot deleted the doma/GR-68017 branch August 8, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants