[Bug ld/28021] riscv: wrong double relaxation with LTO

2021-07-07 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=28021

Michael Matz  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #4 from Michael Matz  ---
Fixed in master and 2.37.  Not planning further backports.

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


[Bug ld/28021] riscv: wrong double relaxation with LTO

2021-07-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28021

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_37-branch branch has been updated by Michael Matz
:

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

commit 7764dd1f5fdc9a4d6d6233b35bbb14ab161df299
Author: Michael Matz 
Date:   Mon Jun 28 17:57:17 2021 +0200

elf/riscv: Fix relaxation with aliases [PR28021]

the fix for PR22756 only changed behaviour for hidden aliases,
but the same situation exists for non-hidden aliases: sym_hashes[]
can contain multiple entries pointing to the same symbol structure
leading to relaxation adjustment to be applied twice.

Fix this by testing for duplicates for everything that looks like it
has a version.

PR ld/28021

bfd/
* elfnn-riscv.c (riscv_relax_delete_bytes): Check for any
versioning.

ld/
* testsuite/ld-riscv-elf/relax-twice.ver: New.
* testsuite/ld-riscv-elf/relax-twice-1.s: New.
* testsuite/ld-riscv-elf/relax-twice-2.s: New.
* testsuite/ld-riscv-elf/ld-riscv-elf.exp
(run_relax_twice_test): New, and call it.

(cherry picked from commit 235f5ef4a6b8fbdcfaea8b629f7c6a9792a789de)

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


[Bug ld/27659] BFD (GNU Binutils for Debian) 2.36.1 internal error, aborting at ../../bfd/elfcode.h:224 in bfd_elf32_swap_symbol_out

2021-07-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27659

--- Comment #17 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

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

commit ca52626babd59d58f3962dcaab94cf840e6aff82
Author: Nick Clifton 
Date:   Wed Jul 7 16:50:33 2021 +0100

Remove an accidental change to elfcode.h included as part of commit
6e0dfbf420.

PR 27659
* elfcode.h (elf_swap_symbol_out): Revert accidental change that
removed an abort if the shndx pointer is NULL.

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


[Bug ld/27659] BFD (GNU Binutils for Debian) 2.36.1 internal error, aborting at ../../bfd/elfcode.h:224 in bfd_elf32_swap_symbol_out

2021-07-07 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27659

--- Comment #18 from Nick Clifton  ---
Sorry about that - I have removed the accidental commit.

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


[Bug ld/28040] libLLVM.so fails to link using LTO with ld.bfd + LLVMGold plugin

2021-07-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28040

H.J. Lu  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #17 from H.J. Lu  ---
Fixed by

commit 7a30ac441a4e776e68399cb916c4731b5192e931
Author: H.J. Lu 
Date:   Tue Jul 6 06:21:54 2021 -0700

ld: Check archive only for archive member

on master and 2.37 branch.

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


[Bug ld/18028] 32-bit ld runs out of memory when linking 32-bit clang with debug info

2021-07-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=18028

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_37-branch branch has been updated by H.J. Lu
:

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

commit f9b771014915eebbd20791870ffd175b9156ce42
Author: H.J. Lu 
Date:   Wed Jul 7 07:47:00 2021 -0700

ld: Check archive only for archive member

Since plugin_maybe_claim calls bfd_close on the original input BFD if it
isn't an archive member, pass NULL to bfd_plugin_close_file_descriptor
to indicate that the BFD isn't an archive member.

bfd/

PR ld/18028
* plugin.c (bfd_plugin_close_file_descriptor): Check archive
only of abfd != NULL.
(try_claim): Pass NULL to bfd_plugin_close_file_descriptor if
it isn't an archive member.

ld/

PR ld/18028
* plugin.c (plugin_input_file): Add comments for abfd and ibfd.
(plugin_object_p): Set input->ibfd to NULL if it isn't an
archive member.

(cherry picked from commit 7a30ac441a4e776e68399cb916c4731b5192e931)

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


[Bug ld/18028] 32-bit ld runs out of memory when linking 32-bit clang with debug info

2021-07-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=18028

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

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

commit 7a30ac441a4e776e68399cb916c4731b5192e931
Author: H.J. Lu 
Date:   Tue Jul 6 06:21:54 2021 -0700

ld: Check archive only for archive member

Since plugin_maybe_claim calls bfd_close on the original input BFD if it
isn't an archive member, pass NULL to bfd_plugin_close_file_descriptor
to indicate that the BFD isn't an archive member.

bfd/

PR ld/18028
* plugin.c (bfd_plugin_close_file_descriptor): Check archive
only of abfd != NULL.
(try_claim): Pass NULL to bfd_plugin_close_file_descriptor if
it isn't an archive member.

ld/

PR ld/18028
* plugin.c (plugin_input_file): Add comments for abfd and ibfd.
(plugin_object_p): Set input->ibfd to NULL if it isn't an
archive member.

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


[Bug binutils/28058] 300x performance regression in strip

2021-07-07 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28058

Niklas Hambüchen  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Niklas Hambüchen  ---
OK, makes sense.

I was hoping that a point release for the past binutils (e.g. 2.35, 2.36
series) could make the fix available to current Linux distributions possible,
as they often do upgrade to bugfix releases, but not major releases in the same
OS release cycle.

I'm not certain what binutils's point release policy is overall -- there seems
to be some of it (e.g. 2.35.1 being released after 2.36), so I wasn't sure
whether such a thing would qualify or not.

Thanks for looking into it!

(Marking as resolved as the fix will be in 2.37.)

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


[Bug binutils/28058] 300x performance regression in strip

2021-07-07 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28058

--- Comment #2 from Nick Clifton  ---
(In reply to Niklas Hambüchen from comment #1)

> It would be great if a point release could be made that includes it.

Sorry - since we are just about to make a new release (2.37 - due in two weeks
time) - there does not seem to be much benefit in creating yet another point
release just for this one issue.

Cheers
  Nick

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


[Bug gas/28051] Unextractable messages in the code

2021-07-07 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28051

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton  ---
Hi Yuri,

  Thanks for raising this problem.  I have checked in a patch to the mainline
  sources to fix the issue, but I have decided to leave the 2.37 branch alone
  as I do not want to derail the translation efforts that are currently
  underway.

Cheers
  Nick

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


[Bug gas/28051] Unextractable messages in the code

2021-07-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28051

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

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

commit ffa5352c0c0f735541e69fe6d9a192d82e7d418c
Author: Nick Clifton 
Date:   Wed Jul 7 10:25:41 2021 +0100

Fix problems translating messages when a percentage sign appears at the end
of a string.

PR 28051
gas * config/tc-i386.c (offset_in_range): Reformat error messages in
order to fix problems when translating.
(md_assemble): Likewise.
* messages.c (as_internal_value_out_of_range): Likewise.
* read.c (emit_expr_with_reloc): Likewise.
* testsuite/gas/all/overflow.l Change expected output format.
* po/gas.pot: Regenerate.

bfd * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in
order to fix problems when translating.
* cofflink.c (_bfd_coff_write_global_sym): Likewise.
* elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
Likewise.
* po/bfd.pot: Regenerate.

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