Bug #1048: i486: zip and unzip have an executable stack, ld-linux.so.2 traps on them

Closed opened 2026-11-14 23:43 UTC, updated 2026-11-14 23:55 UTC

From TazHelper report 139 (i686 firefox 20261110 live-usb, Pentium M): "crashed: ld-linux.so.2 (ld-2.20.so) x16".
The i486 zip and unzip binaries (funzip unzip unzipsfx zipinfo zip zipcloak zipnote zipsplit) are GNU_STACK RWE: the i386 assembly files (crc_i386.S, match.S) lack the .note.GNU-stack marker. The glibc 2.20 loader traps (ud2, invalid opcode) when run directly on them: /lib/ld-linux.so.2 --verify, as reprise's libs check does (8 files x 2 runs = 16). Running unzip normally works. x86_64 is not affected (no asm).
Fix: append .section .note.GNU-stack to the .S files in both receipts; i486 cook gives RW and --verify returns 0.

Changesets

History