LLD vs LD section type: PROGBITS vs NOBITS

Would LLD accept patches to match LD behavior in cases like this, where both are within the (underspecified) spec but diverge in behavior?

Thank you! I had found that in the meanwhile. I was also concerned that the section flags (permissions) didn’t match LD. It turns out that that didn’t matter for my specific use case. Still, I’m curious. Is it possible to tweak my reduced linker script to also change the section flags to RW? I was mostly curious about achieving that purely within the linker script but I’m not even sure how to do that with the help of a .s. When I tried to assemble .section .stack, "w" (or "d", "r" is supposed to be read-only) and link that didn’t produce a RW section.

It came out perfect! (You do have a preview zone you can use to double check)