mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
21 lines
926 B
Diff
21 lines
926 B
Diff
--- a/hotspot/src/jdk.aot/unix/native/libjelfshim/jdk_tools_jaotc_jnilibelf_JNILibELFAPI.c
|
|
+++ b/hotspot/src/jdk.aot/unix/native/libjelfshim/jdk_tools_jaotc_jnilibelf_JNILibELFAPI.c
|
|
@@ -262,7 +262,7 @@
|
|
jlong addr = getNativeAddress(env, ptrObj);
|
|
if (addr != -1) {
|
|
// Call libelf function
|
|
- if ((retPtr = gelf_newehdr((Elf*) addr, elfClass)) == 0) {
|
|
+ if ((retPtr = (unsigned long int)gelf_newehdr((Elf*) addr, elfClass)) == 0) {
|
|
errx(EX_SOFTWARE, "gelf_newehdr() failed: %s.", elf_errmsg(-1));
|
|
}
|
|
} else {
|
|
@@ -277,7 +277,7 @@
|
|
jlong addr = getNativeAddress(env, ptrObj);
|
|
if (addr != -1) {
|
|
// Call libelf function
|
|
- if ((retPtr = gelf_newphdr((Elf*) addr, phnum)) == 0) {
|
|
+ if ((retPtr = (unsigned long int)gelf_newphdr((Elf*) addr, phnum)) == 0) {
|
|
errx(EX_SOFTWARE, "gelf_newphdr() failed: %s.", elf_errmsg(-1));
|
|
}
|
|
} else {
|