RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v5]
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Oct 8 10:30:05 UTC 2024
On Tue, 8 Oct 2024 07:17:02 GMT, Vladimir Kozelkov <duke at 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
More information about the core-libs-dev
mailing list