RFR: 7903697: Support symbols in header files are alias for different name in share library
Brian Burkhalter
bpb at openjdk.org
Tue Apr 9 21:47:09 UTC 2024
On Tue, 9 Apr 2024 17:53:02 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This PR restores a functionality that was available in a (much) older version of jextract.
>
> Basically, some library symbols can have a C name that differs from the symbol found in the shared library. This is typically done using an attribute (AsmLabelAttr). We already have code to parse declaration attributes, but when we switched to the new FFM-based jextract, we didn't update code generation to use the aliased name for the symbol lookup, if one was available.
>
> I've resurrected the old test to check this functionality, with some changes: the original test also tested Windows support, but that seems less important, given that Windows doesn't really have an equivalent feature/attribute.
I am not qualified to approve this PR, but I am glad to see that the problem is being addressed promptly.
-------------
PR Comment: https://git.openjdk.org/jextract/pull/232#issuecomment-2046099726
More information about the jextract-dev
mailing list