On Tue, 8 Oct 2024 07:17:02 GMT, Vladimir Kozelkov <d...@openjdk.org> wrote:

> I'm wondering if a particular linker implementation must declare its 
> compatibility with the C calling convention for that platform? An 
> implementation may reject many things that are possible, but what it accepts 
> _must_ be consistent with the native convention, otherwise it doesn't make 
> sense.

Of course - that's implicit in the sentence `A linker has detailed knowledge of 
the calling conventions and data types used by a
specific ABI` which appears quite early in the `Linker` javadoc. Also, the 
javadoc for `Linker::nativeLinker` states:


{@return a linker for the ABI associated with the underlying native platform}

-------------

PR Comment: https://git.openjdk.org/jdk/pull/21041#issuecomment-2399463764

Reply via email to