public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/31151] New: [riscv64] elf/tst-audit{1,2,8} failures with --enable-bind-now and recent binutils
@ 2023-12-12 17:45 aurelien at aurel32 dot net
  2023-12-12 23:45 ` [Bug libc/31151] " sam at gentoo dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2023-12-12 17:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=31151

            Bug ID: 31151
           Summary: [riscv64] elf/tst-audit{1,2,8} failures with
                    --enable-bind-now and recent binutils
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: aurelien at aurel32 dot net
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
              Host: riscv64-unknown-linux-gnu
            Target: riscv64-unknown-linux-gnu
             Build: riscv64-unknown-linux-gnu

The following patch has been recently merged in binutils:

7345d05aafde53a48d5a587a6d9c1778db78e0f3 is the first bad commit
commit 7345d05aafde53a48d5a587a6d9c1778db78e0f3
Author: Andreas Schwab <schwab@suse.de>
Date:   Thu Sep 21 16:49:41 2023 +0200

    RISC-V: Protect .got with relro

    Move .got before .data so that it can be protected with -zrelro.  Also
    separate .got.plt from .got if -znow is not in effect; the first two words
    of .got.plt are placed within the relro region.

    ld:
            PR ld/30877
            * emulparams/elf32lriscv-defs.sh (DATA_GOT, SEPARATE_GOTPLT):
            Define.
            * emulparams/elf64lriscv-defs.sh (SEPARATE_GOTPLT): Define.
            * testsuite/ld-elf/binutils.exp (binutils_test): Remove riscv*-*-*
            from relro_got expression.

 ld/emulparams/elf32lriscv-defs.sh | 4 ++++
 ld/emulparams/elf64lriscv-defs.sh | 1 +
 ld/testsuite/ld-elf/binutils.exp  | 1 -
 3 files changed, 5 insertions(+), 1 deletion(-)

It causes the elf/audit1 elf/tst-audit2 elf/tst-audit8 glibc tests to fail with
a segmentation fault if configured with --enable-bind-now. It appears to be a
bug in glibc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-12-30 10:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-12 17:45 [Bug libc/31151] New: [riscv64] elf/tst-audit{1,2,8} failures with --enable-bind-now and recent binutils aurelien at aurel32 dot net
2023-12-12 23:45 ` [Bug libc/31151] " sam at gentoo dot org
2023-12-13 12:43 ` schwab@linux-m68k.org
2023-12-13 15:16 ` [Bug libc/31151] [RISC-V] missing support for profile/audit PLT setup schwab@linux-m68k.org
2023-12-13 18:02 ` aurelien at aurel32 dot net
2023-12-30 10:00 ` cvs-commit at gcc dot gnu.org
2023-12-30 10:02 ` aurelien at aurel32 dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).