Source: gcc-11 Version: 11.5.0-3 Severity: normal Tags: patch Dear Maintainer,
gcc-11 11.5.0-3 fails to build with installed gcc-11. See: https://buildd.debian.org/status/fetch.php?pkg=gcc-11&arch=hppa&ver=11.5.0-3&stamp=1756753356&raw=0 The problem is gcc-11 was not upgraded to generate GNU_STACK notes before the release branch was closed. As a result, modules require an executable stack in gcc-11 and earlier. glibc 2.41 no longer allows modules or shared libraries requiring an executable stack to be loaded with dlopen. This broke gcc-11 11.5.0-2. We need to patch gcc-11 to enable the generation of GNU_STACK notes. I manually built and uploaded 11.5.0-3 using glibc 2.40 and the attached patch to generate GNU_STACK notes. The attached patch will need be added to debian/patches if gcc-11 ever needs rebuilding on hppa. Regards, Dave Anglin -- System Information: Debian Release: forky/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: hppa (parisc64) Kernel: Linux 6.12.43-dirty (SMP w/4 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) -- no debconf information
Index: gcc-11-11.5.0/src/gcc/config/pa/pa-linux.h =================================================================== --- gcc-11-11.5.0.orig/src/gcc/config/pa/pa-linux.h +++ gcc-11-11.5.0/src/gcc/config/pa/pa-linux.h @@ -148,8 +148,7 @@ along with GCC; see the file COPYING3. #define HAVE_sync_compare_and_swapsi 1 #define HAVE_sync_compare_and_swapdi 1 -/* It's not possible to enable GNU_stack notes since the kernel needs - an executable stack for signal returns and syscall restarts. */ +/* Enable execute stack. */ #undef NEED_INDICATE_EXEC_STACK -#define NEED_INDICATE_EXEC_STACK 0 +#define NEED_INDICATE_EXEC_STACK 1

