RFR: 8339480: Build static-jdk image with a statically linked launcher [v8]
Jiangli Zhou
jiangli at openjdk.org
Mon Nov 4 22:31:30 UTC 2024
On Mon, 4 Nov 2024 21:24:54 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> > There is no `static-jdk/bin/java.debuginfo`. I do see there's a `./support/static-native/launcher/java.debuginfo`.
>
> Ah, I missed that part. So it's just about copying it to the right place? Fine, that is trivial to add. Did you verify that these symbols really worked, though? That is my main concern.
The `./support/static-native/launcher/java.debuginfo` works. I can use it in `gdb` to step through code.
I haven't specifically looked into how `java.debuginfo` is copied for normal `images/jdk/bin/java`. It's better to handle the `java.debuginfo` for `images/static-jdk/bin/java` the same. As a related note, with `--with-native-debug-symbols`, I believe there is no external `.debuginfo` file. But as long as the `.debuginfo` file for static build is handle the same as for normal build, it will work automatically.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20837#issuecomment-2455832890
More information about the core-libs-dev
mailing list