maintainer-feedback requested: [Bug 296945] java/openjdk25: set wxneeded ELF flag

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 21 Jul 2026 05:30:00 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java (Nobody)
<java@FreeBSD.org> for maintainer-feedback:
Bug 296945: java/openjdk25: set wxneeded ELF flag
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296945



--- Description ---
On systems with kern.elf64.allow_wx=0 the java binary won't start, but it's
solved simply by setting elfctl -e +wxneeded on the java binary.

Simple packaging solution options from node:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268363


Past discussion of the root cause: 

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256477