RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v5]
Vladimir Kozelkov
duke at openjdk.org
Tue Oct 8 07:20:00 UTC 2024
On Mon, 7 Oct 2024 20:59:12 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> I think the new rules define a bunch of rules that all layouts that model C type declarations should follow - but do so in broad strokes, still allowing the linker implementation to have the final say on what is and is not accepted.
I completely agree with you, but I was worried about another case.
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.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21041#issuecomment-2399037464
More information about the core-libs-dev
mailing list