Skip to content

Android native images: the kit's --wrap link options - #7

Merged
kdroidFilter merged 2 commits into
mainfrom
fix/bionic-addrinfo
Nov 16, 2026
Merged

kdroidFilter merged 2 commits into
mainfrom
fix/bionic-addrinfo

Conversation

@kdroidFilter

Copy link
Copy Markdown
Contributor

The graalvm-mobile kit translates glibc's resolver calls for bionic through -Wl,--wrap= options in its link.flags (NucleusFramework/graalvm-mobile, branch fix/bionic-addrinfo): without them, any InetAddress lookup in an Android native image crashes.

NjaAndroidLinkTask passes the kit's -Wl,--wrap=* options on. Kits without them (b1.1, b1.2) link as before; the fix arrives with the next kit release.

The kit's link.flags may wrap glibc calls its glibc_compat translates for
bionic (the resolver's struct addrinfo): the link passes them on. Kits without
them link as before.
@kdroidFilter
kdroidFilter merged commit bf6aa7e into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant