[Bug gold/16446] internal error in find_runnable_or_wait, at workqueue.cc:263

2025-04-10 Thread mt at debian dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=16446

Michael Tautschnig  changed:

   What|Removed |Added

 CC||mt at debian dot org

--- Comment #3 from Michael Tautschnig  ---
It seems that the problem is tied to the use of start-group/end-group.

I have recently run into this when trying to build CBMC via its Makefile-based
build system. In a system where ld defaults to gold I see:

x86_64-pc-linux-gnu-g++  -o goto-synthesizer -Wl,--start-group
../ansi-c/ansi-c.a ../analyses/analyses.a ../assembler/assembler.a
../big-int/big-int.a ../cpp/cpp.a ../goto-checker/goto-checker.a
../goto-programs/goto-programs.a ../goto-instrument/contracts/contracts.o
../goto-instrument/contracts/havoc_assigns_clause_targets.o
../goto-instrument/contracts/inlining_decorator.o
../goto-instrument/contracts/instrument_spec_assigns.o
../goto-instrument/contracts/memory_predicates.o
../goto-instrument/contracts/utils.o ../goto-instrument/havoc_utils.o
../goto-instrument/loop_utils.o ../goto-instrument/nondet_static.o
../goto-instrument/unwind.o ../goto-instrument/unwindset.o
../goto-symex/goto-symex.a ../json/json.a ../langapi/langapi.a
../linking/linking.a ../pointer-analysis/pointer-analysis.a
../solvers/solvers.a ../util/util.a ../xmllang/xmllang.a cegis_evaluator.o
cegis_verifier.o dump_loop_contracts.o enumerative_loop_contracts_synthesizer.o
expr_enumerator.o goto_synthesizer_languages.o goto_synthesizer_main.o
goto_synthesizer_parse_options.o synthesizer_utils.o -Wl,--end-group
/x86_64-pc-linux-gnu/bin/ld: internal error in find_runnable_or_wait, at
/src/binutils-2.41/gold/workqueue.cc:263
collect2: error: ld returned 1 exit status

Appending `-fuse-ld=bfd` makes the above work just fine. It, however, also
works find with gold when removing start-group/end-group (and adjusting the
order of files as needed).

As this is perfectly reproducible for me (I also tried different versions of
binutils, the above is for binutils-2.41) I am happy to provide whatever other
information that may help to get this resolved after such a number of years.

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


[Bug ld/19962] R_ARM_COPY relocation generated with -znocopyreloc

2025-04-10 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=19962

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=16177

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


[Bug binutils/16177] R_ARM_COPY reloc generated for reference in writable section

2025-04-10 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=16177

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=19962

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


[Bug ld/32858] SEGV on ld function cache_bwrite

2025-04-10 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32858

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |2.45
 Status|ASSIGNED|RESOLVED

--- Comment #3 from Alan Modra  ---
Fixed for 2.45

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


[Bug ld/30437] aarch64: RELA relocations don't ignore section content as they should

2025-04-10 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30437

Sam James  changed:

   What|Removed |Added

   See Also||https://github.com/golang/g
   ||o/issues/39927,
   ||https://github.com/golang/g
   ||o/issues/22040

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


[Bug ld/30437] aarch64: RELA relocations don't ignore section content as they should

2025-04-10 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30437

Sam James  changed:

   What|Removed |Added

   Target Milestone|--- |2.41

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


[Bug ld/30437] aarch64: RELA relocations don't ignore section content as they should

2025-04-10 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30437

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=19962

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


[Bug ld/19962] R_ARM_COPY relocation generated with -znocopyreloc

2025-04-10 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=19962

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=30437

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


[Bug ld/30076] aarch64: stubs can add indirect branch that breaks BTI

2025-04-10 Thread pinskia at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=30076

Andrew Pinski  changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu.org
   See Also||https://github.com/ARM-soft
   ||ware/abi-aa/issues/196

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


[Bug ld/32858] SEGV on ld function cache_bwrite

2025-04-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32858

--- Comment #2 from Sourceware Commits  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1458933830456e54223d9fc61f0d9b3a19256f5

commit d1458933830456e54223d9fc61f0d9b3a19256f5
Author: Alan Modra 
Date:   Thu Apr 10 19:41:49 2025 +0930

PR32858 ld segfault on fuzzed object

We missed one place where it is necessary to check for empty groups.

PR 32858
* elflink.c (elf_gc_sweep): Protect against empty group.

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


[Bug ld/32858] SEGV on ld function cache_bwrite

2025-04-10 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32858

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Last reconfirmed||2025-04-10

--- Comment #1 from Alan Modra  ---
Please build binutils from current git master if you are reporting bugs found
using fuzzed object files.  This particular testcase has already been fixed on
mainline.

However, adding -melf_i386 to the command line (or using a ld that defaults to
i386) does show a different segfault

/home/alan/src/binutils-gdb/bfd/elflink.c:14411:26: runtime error: member
access within null pointer of type 'struct asection'
AddressSanitizer:DEADLYSIGNAL
=
==2584663==ERROR: AddressSanitizer: SEGV on unknown address 0x0028 (pc
0x5670997b8a63 bp 0x52120928 sp 0x7ffc4cdf63c0 T0)
==2584663==The signal is caused by a READ memory access.
==2584663==Hint: address points to the zero page.
#0 0x5670997b8a63 in elf_gc_sweep
/home/alan/src/binutils-gdb/bfd/elflink.c:14411
#1 0x5670997b8a63 in bfd_elf_gc_sections
/home/alan/src/binutils-gdb/bfd/elflink.c:14751

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


[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32854

H.J. Lu  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |2.45
 Status|NEW |RESOLVED

--- Comment #3 from H.J. Lu  ---
Fixed for 2.45.

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


[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846

H.J. Lu  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED
   Target Milestone|--- |2.45

--- Comment #12 from H.J. Lu  ---
Fixed for 2.45.

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


[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32846

--- Comment #11 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2cec91421e603699aa8f446d1ae44e873c4965f8

commit 2cec91421e603699aa8f446d1ae44e873c4965f8
Author: H.J. Lu 
Date:   Tue Apr 8 13:10:02 2025 -0700

ld: Skip the LTO archive member only for the earlier DSO

commit 2707d55e539ef323dd14a1293e762bf3d9739ee7
Author: Michael Matz 
Date:   Mon Mar 31 15:57:08 2025 +0200

skipped the LTO archive member even when the earlier item is also an
archive.  Instead, skip the LTO archive member only if the earlier item
is a shared library.

bfd/

PR ld/32846
PR ld/32854
* elflink.c (elf_link_add_archive_symbols): Skip the LTO archive
member only if the earlier item is a shared library.

ld/

PR ld/32846
PR ld/32854
* testsuite/ld-plugin/lto.exp: Run ld/32846 test.
* testsuite/ld-plugin/pr32846a.c: New file.
* testsuite/ld-plugin/pr32846b.c: Likewise.
* testsuite/ld-plugin/pr32846c.c: Likewise.
* testsuite/ld-plugin/pr32846d.c: Likewise.
* testsuite/ld-plugin/pr32846e.c: Likewise.

Signed-off-by: H.J. Lu 

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


[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32854

--- 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=2cec91421e603699aa8f446d1ae44e873c4965f8

commit 2cec91421e603699aa8f446d1ae44e873c4965f8
Author: H.J. Lu 
Date:   Tue Apr 8 13:10:02 2025 -0700

ld: Skip the LTO archive member only for the earlier DSO

commit 2707d55e539ef323dd14a1293e762bf3d9739ee7
Author: Michael Matz 
Date:   Mon Mar 31 15:57:08 2025 +0200

skipped the LTO archive member even when the earlier item is also an
archive.  Instead, skip the LTO archive member only if the earlier item
is a shared library.

bfd/

PR ld/32846
PR ld/32854
* elflink.c (elf_link_add_archive_symbols): Skip the LTO archive
member only if the earlier item is a shared library.

ld/

PR ld/32846
PR ld/32854
* testsuite/ld-plugin/lto.exp: Run ld/32846 test.
* testsuite/ld-plugin/pr32846a.c: New file.
* testsuite/ld-plugin/pr32846b.c: Likewise.
* testsuite/ld-plugin/pr32846c.c: Likewise.
* testsuite/ld-plugin/pr32846d.c: Likewise.
* testsuite/ld-plugin/pr32846e.c: Likewise.

Signed-off-by: H.J. Lu 

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


[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32854
Bug 32854 depends on bug 32846, which changed state.

Bug 32846 Summary: LTO link failures in various packages since 
2707d55e539ef323dd14a1293e762bf3d9739ee7
https://sourceware.org/bugzilla/show_bug.cgi?id=32846

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

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


[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32854

H.J. Lu  changed:

   What|Removed |Added

 Depends on||32846


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=32846
[Bug 32846] LTO link failures in various packages since
2707d55e539ef323dd14a1293e762bf3d9739ee7
-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846

H.J. Lu  changed:

   What|Removed |Added

 Blocks||32854


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=32854
[Bug 32854] Default versioned symbol in shared library is ignored with LTO
-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846

--- Comment #9 from H.J. Lu  ---
(In reply to Sam James from comment #0)
> Hi!
> 
> Since ...
> 
> commit 2707d55e539ef323dd14a1293e762bf3d9739ee7
> Author: Michael Matz 
> Date:   Mon Mar 31 15:57:08 2025 +0200
> 
> [lto] Fix symlookup in archives vs shared
> 

We need to open a binutils bug report to track this issue.

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


[Bug ld/32846] LTO link failures in various packages since 2707d55e539ef323dd14a1293e762bf3d9739ee7

2025-04-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32846

--- Comment #10 from H.J. Lu  ---
A patch is posted at

https://sourceware.org/pipermail/binutils/2025-April/140473.html

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


Re: Issue 404571515: binutils:fuzz_addr2line: Undefined-shift in nds32_elf_do_9_pcrel_reloc

2025-04-10 Thread buganizer-system

Replying to this email means your email address will be shared with the
team that works on this product.
https://issues.oss-fuzz.com/issues/404571515

Changed
access level:  Limited visibility → Default access

pe...@google.com added comment #3:

This bug has been fixed. It has been opened to the public.

___

Reference Info: 404571515 binutils:fuzz_addr2line: Undefined-shift in
nds32_elf_do_9_pcrel_reloc
component:  Public Trackers > 1362134 > OSS Fuzz
status:  Verified
reporter:  87...@developer.gserviceaccount.com
assignee:  cl...@appspot.gserviceaccount.com
verifier:  cl...@appspot.gserviceaccount.com
cc:  am...@gmail.com, bug-binutils@gnu.org, da...@adalogics.com, and 2 more
collaborators:  co...@oss-fuzz.com
type:  Bug
access level:  Default access
priority:  P2
severity:  S4
hotlist:  ClusterFuzz-Verified, Reproducible, Stability-LibFuzzer,
Stability-UndefinedBehaviorSanitizer
retention:  Component default
Disclosure:  Jun 17, 2025
Project:  binutils
Reported:  Mar 19, 2025


Generated by Google IssueTracker notification system.

You're receiving this email because you are subscribed to updates on Google
IssueTracker issue 404571515
Unsubscribe from this issue.


[Bug binutils/28530] Hang in objdump on machine with 196GB RAM

2025-04-10 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=28530

Sam James  changed:

   What|Removed |Added

   See Also||https://sourceware.org/bugz
   ||illa/show_bug.cgi?id=31846

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