Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build OpenJDK as a static PIE #81

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

csvancea
Copy link
Member

Built upon the work done in PR #73 (I do not have access to push to the existing branch, hence the new branch/PR)

Notes:

  • patched the OpenJDK build system so that it accepts --enable-static-build and --with-x=no;
  • the build process is expected to fail at the linking stage;
  • a manually edited command is needed to create the java executable due to linking error

In this state, the generated executable fails to run even on the host machine due to a crash inside the startup code that is supposed to do self-relocation.

alinichim and others added 3 commits October 12, 2022 07:56
Signed-off-by: Alin Ichim <alinichim49@gmail.com>
Signed-off-by: Alin Ichim <alinichim49@gmail.com>
Patch the build system so that it accepts `--enable-static-build`
and `--with-x=no`

The build is expected to fail at the linking stage. As workaround,
we run a manually edited command that creates `java`.

In this state, the generated executable fails to run even on the
host machine due to a crash inside the startup code that is
supposed to do self-relocation.

Signed-off-by: Cosmin Vancea <csvancea@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

2 participants