glibc/sysdeps
Adhemerval Zanella 20528165bd Disable SFrame support by default
And add extra checks to enable for binutils 2.45 and if the architecture
explicitly enables it.  When SFrame is disabled, all the related code
is also not enabled for backtrace() and _dl_find_object(), so SFrame
backtracking is not used even if the binary has the SFrame segment.

This patch also adds some other related fixes:

  * Fixed an issue with AC_CHECK_PROG_VER, where the READELF_SFRAME
    usage prevented specifying a different readelf through READELF
    environment variable at configure time.

  * Add an extra arch-specific internal definition,
    libc_cv_support_sframe, to disable --enable-sframe on architectures
    that have binutils but not glibc support (s390x).

  * Renamed the tests without the .sframe segment and move the
    tst-backtrace1 from pthread to debug.

  * Use the built compiler strip to remove the .sframe segment,
    instead of the system one (which might not support SFrame).

Checked on x86_64-linux-gnu and aarch64-linux-gnu.

Reviewed-by: Sam James <sam@gentoo.org>
2025-07-24 15:51:58 -03:00
..
aarch64 Disable SFrame support by default 2025-07-24 15:51:58 -03:00
alpha math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
arc math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
arm math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
csky math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
generic Disable SFrame support by default 2025-07-24 15:51:58 -03:00
gnu Add TCPI_OPT_USEC_TS from Linux 6.14 and TCPI_OPT_TFO_CHILD from 6.15 to netinet/tcp.h. 2025-06-17 09:57:44 -03:00
hppa math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
htl htl: move __pthread_get_cleanup_stack to libc 2025-07-06 19:56:15 +00:00
hurd hurd: Consolidate signal mask change 2025-03-06 02:28:35 +01:00
i386 i386: Update ___tls_get_addr to preserve vector registers 2025-06-19 04:30:31 +08:00
ieee754 powerpc: Remove modff optimization 2025-06-25 15:05:30 -03:00
loongarch i386: Update ___tls_get_addr to preserve vector registers 2025-06-19 04:30:31 +08:00
m68k math: Optimize float ilogb/llogb 2025-06-02 13:32:19 -03:00
mach htl: move __pthread_get_cleanup_stack to libc 2025-07-06 19:56:15 +00:00
microblaze math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
mips math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
nptl stdlib: Fix qsort memory leak if callback throws (BZ 32058) 2025-04-02 18:01:55 +00:00
or1k math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
posix stdlib: Fix __libc_message_impl iovec size (BZ 32947) 2025-06-30 13:51:41 -03:00
powerpc powerpc: Remove modf optimization 2025-06-25 15:05:30 -03:00
pthread Disable SFrame support by default 2025-07-24 15:51:58 -03:00
riscv RISC-V: Use builtin for ffs and ffsll while supported extension available 2025-04-28 09:51:59 -03:00
s390 S390: Use cfi_val_offset instead of cfi_escape. 31bit part 2025-05-23 15:05:56 +02:00
sh math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
sparc sparc: Fix sparc32 Fix argument passing to __libc_start_main (BZ 32981) 2025-06-18 11:20:34 -03:00
unix Revert "Linux: Keep termios ioctl constants strictly internal" 2025-07-21 15:13:08 +02:00
wordsize-32 stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
wordsize-64 stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
x86 x86-64: Properly compile ISA optimized modf and modff 2025-07-18 10:22:19 -07:00
x86_64 Disable SFrame support by default 2025-07-24 15:51:58 -03:00