mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
Outputs whose input carries no PT_GNU_STACK get one appended with PF_R|PF_W and alignment 16 so the kernel does not fall back to an executable stack marking. RequiredProgramHeaderCount and WriteLayout now derive from one shared header list, so the reserved slot and the written header cannot disagree at any PhNum boundary, when a free input slot should be reused, or when the RELRO coverage guard reduces the kept count. Space exhaustion beyond the 16-bit header limit fails loudly instead of silently skipping the header.