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

* [Bug libc/31151] [riscv64] elf/tst-audit{1,2,8} failures with --enable-bind-now and recent binutils
  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 ` sam at gentoo dot org
  2023-12-13 12:43 ` schwab@linux-m68k.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2023-12-12 23:45 UTC (permalink / raw)
  To: glibc-bugs

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

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

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

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

* [Bug libc/31151] [riscv64] elf/tst-audit{1,2,8} failures with --enable-bind-now and recent binutils
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2023-12-13 12:43 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
riscv is missing all of the required profile/audit setup.

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

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

* [Bug libc/31151] [RISC-V] missing support for profile/audit PLT setup
  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 ` schwab@linux-m68k.org
  2023-12-13 18:02 ` aurelien at aurel32 dot net
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2023-12-13 15:16 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Build|riscv64-unknown-linux-gnu   |
             Target|riscv64-unknown-linux-gnu   |
            Summary|[riscv64]                   |[RISC-V] missing support
                   |elf/tst-audit{1,2,8}        |for profile/audit PLT setup
                   |failures with               |
                   |--enable-bind-now and       |
                   |recent binutils             |
               Host|riscv64-unknown-linux-gnu   |riscv*-*-*

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

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

* [Bug libc/31151] [RISC-V] missing support for profile/audit PLT setup
  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
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2023-12-13 18:02 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Aurelien Jarno <aurelien at aurel32 dot net> ---
(In reply to Andreas Schwab from comment #1)
> riscv is missing all of the required profile/audit setup.

Thanks for looking at that, it makes sense. Do you plan to work on that, or
should I look what I can do?

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

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

* [Bug libc/31151] [RISC-V] missing support for profile/audit PLT setup
  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
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-30 10:00 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aurelien Jarno <aurel32@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6b32696116e0097f5dd578ec087bcbef483f2a07

commit 6b32696116e0097f5dd578ec087bcbef483f2a07
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Sat Dec 30 11:00:10 2023 +0100

    RISC-V: Add support for dl_runtime_profile (BZ #31151)

    Code is mostly inspired from the LoongArch one, which has a similar ABI,
    with minor changes to support riscv32 and register differences.

    This fixes elf/tst-sprof-basic. This also fixes elf/tst-audit1,
    elf/tst-audit2 and elf/tst-audit8 with recent binutils snapshots when
    --enable-bind-now is used.

    Resolves: BZ #31151

    Acked-by: Palmer Dabbelt <palmer@rivosinc.com>

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

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

* [Bug libc/31151] [RISC-V] missing support for profile/audit PLT setup
  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
                   ` (4 preceding siblings ...)
  2023-12-30 10:00 ` cvs-commit at gcc dot gnu.org
@ 2023-12-30 10:02 ` aurelien at aurel32 dot net
  5 siblings, 0 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2023-12-30 10:02 UTC (permalink / raw)
  To: glibc-bugs

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

Aurelien Jarno <aurelien at aurel32 dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |2.39
         Resolution|---                         |FIXED

--- Comment #4 from Aurelien Jarno <aurelien at aurel32 dot net> ---
Fixed in glibc master.

-- 
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).