[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread jbeulich at suse dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #28 from Jan Beulich --- (In reply to H.J. Lu from comment #16) > gABI has > > sh_entsize > Some sections hold a table of fixed-size entries, such as a symbol table. > For such a section, this member gives the size in bytes of eac

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #11 from H.J. Lu --- stdio.c has #undef stdin #undef stdout #undef stderr FILE *stdin = (FILE *) &_IO_2_1_stdin_; FILE *stdout = (FILE *) &_IO_2_1_stdout_; FILE *stderr = (FILE *) &_IO_2_1_stderr_; libio_static_fn_required (_IO_f

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #10 from H.J. Lu --- stdio.o is corrupted by --strip-unneeded. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #9 from H.J. Lu --- Confirmed on Fedora 42 with glibc 2.41. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW -- You are receiving this mail because

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 H.J. Lu changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread xry111 at xry111 dot site
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #8 from Xi Ruoyao --- I don't have a running F42 yet but I tried on Ubuntu 24.04.2 with glibc-2.39 and binutils-2.42 and the issue still reproduces. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #26 from Sourceware Commits --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9c0adb10c7fcfb5a317095201cf144cdada6ca08 commit 9c0adb10c7fcfb5a317095201cf144cdada6ca08 A

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #25 from H.J. Lu --- (In reply to Sam James from comment #24) > (In reply to H.J. Lu from comment #22) > > I am testing this: > > > > diff --git a/ld/ldlang.c b/ld/ldlang.c > > index 8ba95b04e23..bbc679a31ef 100644 > > --- a/ld/ld

[Bug ld/33287] GNU TLS binary may not work on Linux

2025-08-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=33287 --- Comment #1 from Sourceware Commits --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fbcdc06c238be4fd6da7fb9bff4dd4c7f749ae07 commit fbcdc06c238be4fd6da7fb9bff4dd4c7f749ae07 Au

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #24 from Sam James --- (In reply to H.J. Lu from comment #22) > I am testing this: > > diff --git a/ld/ldlang.c b/ld/ldlang.c > index 8ba95b04e23..bbc679a31ef 100644 > --- a/ld/ldlang.c > +++ b/ld/ldlang.c > @@ -2862,6 +2862,7 @@

[Bug ld/33130] GNU2 TLS binary may not work on Linux

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33130 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug ld/33287] GNU TLS binary may not work on Linux

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33287 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug binutils/33213] Add GLIBC_ABI_DT_X86_64_PLT version to indicate x86_64 psABI compliance for DT_X86_64_PLT* support

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33213 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug binutils/33213] Add GLIBC_ABI_DT_X86_64_PLT version to indicate x86_64 psABI compliance for DT_X86_64_PLT* support

2025-08-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=33213 --- Comment #1 from Sourceware Commits --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=66e4999f343f85116cf2dda137cc0f31ac793ce6 commit 66e4999f343f85116cf2dda137cc0f31ac793ce6 Au

[Bug ld/33130] GNU2 TLS binary may not work on Linux

2025-08-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=33130 --- Comment #2 from Sourceware Commits --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0d1e88f8bfb0e62f37bf8a89172cd91373ace5e6 commit 0d1e88f8bfb0e62f37bf8a89172cd91373ace5e6 Au

[Bug ld/33267] Test failures with CFLAGS="-O2 -mno-direct-extern-access"

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33267 H.J. Lu changed: What|Removed |Added Target Milestone|--- |2.46 Status|WAITING

[Bug ld/33267] Test failures with CFLAGS="-O2 -mno-direct-extern-access"

2025-08-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=33267 --- Comment #20 from Sourceware Commits --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cf03cf4e8879bbfe6b90160ff3fda63feb2a898f commit cf03cf4e8879bbfe6b90160ff3fda63feb2a898f A

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #23 from Mark Wielaard --- (In reply to H.J. Lu from comment #21) > [hjl@gnu-cfl-3 pr33291]$ cat x.c > const long long int foo = 0x20001; > [hjl@gnu-cfl-3 pr33291]$ cat y.c > const char bar = 1; > [hjl@gnu-cfl-3 pr33291]$ make LD=.

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #22 from H.J. Lu --- I am testing this: diff --git a/ld/ldlang.c b/ld/ldlang.c index 8ba95b04e23..bbc679a31ef 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2862,6 +2862,7 @@ lang_add_section (lang_statement_list_type *ptr, {

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #21 from H.J. Lu --- [hjl@gnu-cfl-3 pr33291]$ cat x.c const long long int foo = 0x20001; [hjl@gnu-cfl-3 pr33291]$ cat y.c const char bar = 1; [hjl@gnu-cfl-3 pr33291]$ make LD=./ld.master gcc -B./ -O2 -fPIC -fmerge-all-constants -

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 --- Comment #20 from Mark Wielaard --- I don't immediately see the exact section (type) that eu-strip is complaining about, but I suspect it is because of the following check in libelf elf_update: if (unlikely (sh_size % shdr->sh_entsize

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread xry111 at xry111 dot site
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #5 from Xi Ruoyao --- https://xry111.site/assets/bz33300/libc.a is from Fedora glibc-static.x86_64 2.42-3.fc43. https://xry111.site/assets/bz33300/libc-broken.a is the result stripping libc.a with Fedora binutils.x86_64 2.45-3.fc44

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #2 from Sam James --- Another 'after' (post-strip binary) with binutils-2.44 would also be useful if that works. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #6 from Sam James --- I also can't reproduce it with my own libc.a yet. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #4 from Sam James --- (In reply to Xi Ruoyao from comment #0) > With the latest Glibc and Binutils release I see. This made me think it was a regression, especially as strip had a lot of changes recently (though none of them *shou

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread xry111 at xry111 dot site
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 --- Comment #3 from Xi Ruoyao --- (In reply to Sam James from comment #2) > Another 'after' (post-strip binary) with binutils-2.44 would also be useful > if that works. This is not a regression from 2.44 to 2.45: we've already observed it wit

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 Sam James changed: What|Removed |Added CC||sam at gentoo dot org --- Comment #1 from

[Bug binutils/33300] strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread xry111 at xry111 dot site
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 Xi Ruoyao changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are re

[Bug binutils/33300] New: strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically)

2025-08-20 Thread xry111 at xry111 dot site
https://sourceware.org/bugzilla/show_bug.cgi?id=33300 Bug ID: 33300 Summary: strip --strip-unneeded "breaks" libc.a (causing segfault in Rust programs linked libc statically) Product: binutils Version: 2.45 Status: UNCONF

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 Sam James changed: What|Removed |Added CC||mark at klomp dot org -- You are receivi

[Bug ld/33291] Recent entity size in gas change breaks ld (elfutils eu-strip -> dwz testsuite)

2025-08-20 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=33291 Michael Matz changed: What|Removed |Added CC||matz at suse dot de --- Comment #19 fr

[Bug ld/33294] Run i386 TLS tests on x86_64

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33294 --- Comment #3 from H.J. Lu --- FYI, I use a 32-bit GCC on Linux/x86-64 to build and test binutils in 32bit: [hjl@gnu-cfl-3 ~]$ /usr/gcc-15.2.1-32bit/bin/gcc -v Using built-in specs. COLLECT_GCC=/usr/gcc-15.2.1-32bit/bin/gcc COLLECT_LTO_WRAPP

[Bug ld/33294] Run i386 TLS tests on x86_64

2025-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33294 --- Comment #2 from H.J. Lu --- (In reply to Sam James from comment #1) > IF we want this, I can do ld-i386/no-plt.exp too. Not all Linux/x86-64 OSes provides bits needed for -m32. We need to check if -m32 works on Linux/x86-64, especially "

[Bug gas/33216] [RISCV] Allow c.slli, c.srai, c.srli with 0 immediate as a hint

2025-08-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=33216 --- Comment #2 from Sourceware Commits --- The master branch has been updated by Nelson Chu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cb4ed2bee7bea6dbd4384b1f7af6493eaf7af5d1 commit cb4ed2bee7bea6dbd4384b1f7af6493eaf7af5d1