]> git.ipfire.org Git - thirdparty/binutils-gdb.git/log
thirdparty/binutils-gdb.git
9 months agos390: Use proper string lengths when parsing opcode table flags
Jens Remus [Fri, 1 Mar 2024 10:12:40 +0000 (11:12 +0100)] 
s390: Use proper string lengths when parsing opcode table flags

opcodes/
* s390-mkopc.c: Use proper string lengths when parsing opcode
table flags.

Fixes: c5306fed7d4 ("s390: Support for jump visualization in disassembly")
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
(cherry picked from commit 996097d5ca92518feddccb2258213d98cf253fee)

9 months agos390: Whitespace fixes in conditional branch flavor descriptions
Jens Remus [Fri, 1 Mar 2024 10:12:40 +0000 (11:12 +0100)] 
s390: Whitespace fixes in conditional branch flavor descriptions

opcodes/
* s390-mkopc.c: Whitespace fixes in conditional branch flavor
descriptions.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
(cherry picked from commit d9d4fc898d28d2f4547e1cf93c1d9f51c1a59e25)

9 months agoLoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata
Xin Wang [Fri, 6 Sep 2024 01:00:12 +0000 (09:00 +0800)] 
LoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata

LoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata.

(cherry picked from commit 28489a70d4660d67e71d75e82286a6e1a7003b93)

9 months agoLoongArch: The symbol got type can only be obtained after initialization
Lulu Cai [Fri, 19 Apr 2024 02:24:52 +0000 (10:24 +0800)] 
LoongArch: The symbol got type can only be obtained after initialization

When scanning relocations and determining whether TLS type transition is
possible, it will try to obtain the symbol got type. If the symbol got
type record has not yet been allocated space and initialized, it will
cause ld to crash. So when uninitialized, the symbol is set to GOT_UNKNOWN.

(cherry picked from commit b221bff7c7ca20d961a7e6b663a545384054a5be)

12 months agolibctf: fix ref leak of names of newly-inserted non-root-visible types
Nick Alcock [Mon, 29 Jul 2024 11:45:09 +0000 (12:45 +0100)] 
libctf: fix ref leak of names of newly-inserted non-root-visible types

A bug in ctf_dtd_delete led to refs in the string table to the
names of non-root-visible types not being removed when the DTD
was.  This seems harmless, but actually it would lead to a write
down a pointer into freed memory if such a type was ctf_rollback()ed
over and then the dict was serialized (updating all the refs as the
strtab was serialized in turn).

Bug introduced in commit fe4c2d55634c700ba527ac4183e05c66e9f93c62
("libctf: create: non-root-visible types should not appear in name tables")
which is included in binutils 2.35.

libctf/
* ctf-create.c (ctf_dtd_delete): Remove refs for all types
with names, not just root-visible ones.

12 months agold: Move foo before delete in dl5.cc
H.J. Lu [Mon, 1 Jul 2024 09:22:45 +0000 (02:22 -0700)] 
ld: Move foo before delete in dl5.cc

* testsuite/ld-elf/dl5.cc (main): Move foo before delete.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 25396021367381247ebb8b08bdfc571e3ea4347f)

12 months agold: Avoid folding new and delete pairs
H.J. Lu [Sun, 30 Jun 2024 05:42:43 +0000 (22:42 -0700)] 
ld: Avoid folding new and delete pairs

GCC 15 may fold new and delete pairs, like

  A *bb = new A[10];
  delete [] bb;
  bb = new (std::nothrow) A [10];
  delete [] bb;

as shown in

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115712

Avoid folding new and delete pairs by adding a function call between new
and delete.

* testsuite/ld-elf/dl5.cc: Include "dl5.h".
(A): Removed.
Call foo between new and delete.
* testsuite/ld-elf/dl5.h: New file.
* testsuite/ld-elf/new.cc: Include "dl5.h".
(foo): New function.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit adf584eb92b0aaf134db99f4238eedb3e5bacb4a)

12 months agoAutomatic date update in version.in
GDB Administrator [Tue, 23 Jul 2024 00:01:19 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Mon, 22 Jul 2024 00:00:43 +0000 (00:00 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Sun, 21 Jul 2024 00:01:22 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Sat, 20 Jul 2024 00:00:47 +0000 (00:00 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Fri, 19 Jul 2024 00:01:18 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Thu, 18 Jul 2024 00:01:32 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Wed, 17 Jul 2024 00:01:22 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Tue, 16 Jul 2024 00:01:06 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Mon, 15 Jul 2024 00:00:50 +0000 (00:00 +0000)] 
Automatic date update in version.in

12 months agox86-64: Skip -z mark-plt tests on MUSL
H.J. Lu [Wed, 10 Jul 2024 23:46:21 +0000 (16:46 -0700)] 
x86-64: Skip -z mark-plt tests on MUSL

Skip -z mark-plt tests, which are specific to glibc, on MUSL.

PR ld/31970
* ld/testsuite/ld-x86-64/x86-64.exp: Skip -z mark-plt tests on
MUSL.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit aa047105e03f6db375f4f1db257a28572e3c6427)

12 months agohppa: Fix handling of relocations that apply to data
John David Anglin [Sun, 14 Jul 2024 11:22:13 +0000 (07:22 -0400)] 
hppa: Fix handling of relocations that apply to data

Commit d125f9675372b1ae01ceb1893c06ccb27bc7bf22 introduced a bug
in handling relocations for data.  The R_PARISC_DIR32 relocation
operates on 32-bit data and not instructions.  The HOWTO table
needs to be used to determine the format of relocations that apply
to data.  The R_PARISC_SEGBASE relocation is another special case
as it only changes segment base.

This was noticed in Debian cmor package build.

2024-07-14  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

* elf32-hppa.c (final_link_relocate): Use HOWTO table to
determine reload format for relocations that apply to data.

12 months agoAutomatic date update in version.in
GDB Administrator [Sun, 14 Jul 2024 00:01:01 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Sat, 13 Jul 2024 00:01:22 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Fri, 12 Jul 2024 00:01:55 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Thu, 11 Jul 2024 00:00:42 +0000 (00:00 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Wed, 10 Jul 2024 00:02:23 +0000 (00:02 +0000)] 
Automatic date update in version.in

12 months agoelf: Add glibc version dependency only if needed
H.J. Lu [Tue, 9 Jul 2024 08:48:54 +0000 (01:48 -0700)] 
elf: Add glibc version dependency only if needed

There is no need to add a needed glibc version if the glibc base version
includes the needed glibc version.

PR ld/31966
* elflink.c (elf_link_add_glibc_verneed): Add glibc_minor_base.
Skip if the glibc base version includes the needed glibc version.
(_bfd_elf_link_add_glibc_version_dependency): Initialize
glibc_minor_base to INT_MAX and pass it to
elf_link_add_glibc_verneed.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 7757f66fdbe2a9fa4b51aa7792532fddda4b295c)

12 months agoAutomatic date update in version.in
GDB Administrator [Tue, 9 Jul 2024 00:01:30 +0000 (00:01 +0000)] 
Automatic date update in version.in

12 months agoAutomatic date update in version.in
GDB Administrator [Mon, 8 Jul 2024 00:00:45 +0000 (00:00 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sun, 7 Jul 2024 00:00:36 +0000 (00:00 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sat, 6 Jul 2024 00:00:46 +0000 (00:00 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Fri, 5 Jul 2024 00:01:28 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Thu, 4 Jul 2024 00:02:00 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Wed, 3 Jul 2024 00:01:57 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Tue, 2 Jul 2024 00:01:45 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Mon, 1 Jul 2024 00:02:02 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sun, 30 Jun 2024 00:02:34 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agold: pass -g for ld-elf tests
Sam James [Sat, 29 Jun 2024 10:07:18 +0000 (11:07 +0100)] 
ld: pass -g for ld-elf tests

The "DWARF parse during linker error" and "Build warn libbar.so" tests
require debug information.

configure defaults to "-O2 -g" but if overriding *FLAGS when building
tests, this might be lost. Explicitly pass -g given these tests require
it.

Originally reported downstream in Gentoo at https://bugs.gentoo.org/934149.

ld/
* testsuite/ld-elf/dwarf.exp: Pass -g for "DWARF parse during linker error".
* testsuite/ld-elf/shared.exp: Ditto for "Build warn libbar.so".

(cherry picked from commit 17c78a23491ce76fd6d21cdbf2db3c0cf02145e0)

13 months agoAutomatic date update in version.in
GDB Administrator [Sat, 29 Jun 2024 00:02:50 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Fri, 28 Jun 2024 00:01:01 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Thu, 27 Jun 2024 00:02:01 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Wed, 26 Jun 2024 00:02:30 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Tue, 25 Jun 2024 00:01:31 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Mon, 24 Jun 2024 00:01:17 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoaarch64: Enable +cssc for armv8.9-a
Andrew Carlotti [Fri, 12 Apr 2024 12:35:00 +0000 (13:35 +0100)] 
aarch64: Enable +cssc for armv8.9-a

FEAT_CSSC is mandatory in the architecture from Armv8.9.

13 months agoAutomatic date update in version.in
GDB Administrator [Sun, 23 Jun 2024 00:01:51 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sat, 22 Jun 2024 00:01:33 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Fri, 21 Jun 2024 00:02:27 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Thu, 20 Jun 2024 00:02:01 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Wed, 19 Jun 2024 00:01:23 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Tue, 18 Jun 2024 00:01:16 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoPR31898 bug in processing DW_RLE_startx_endx
Alan Modra [Mon, 17 Jun 2024 06:21:13 +0000 (15:51 +0930)] 
PR31898 bug in processing DW_RLE_startx_endx

PR 31898
* dwarf.c (display_debug_rnglists_list): Correct fetch of "end"
indexed address.  Remove excess parens.

(cherry picked from commit 1b19566b18a1208f84b89029785a1e93a6544514)

13 months agoAutomatic date update in version.in
GDB Administrator [Mon, 17 Jun 2024 00:01:17 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sun, 16 Jun 2024 00:00:51 +0000 (00:00 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sat, 15 Jun 2024 00:01:44 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Fri, 14 Jun 2024 00:01:40 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Thu, 13 Jun 2024 00:02:10 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Wed, 12 Jun 2024 00:01:54 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Tue, 11 Jun 2024 00:01:16 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Mon, 10 Jun 2024 00:02:02 +0000 (00:02 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sun, 9 Jun 2024 00:01:16 +0000 (00:01 +0000)] 
Automatic date update in version.in

13 months agoAutomatic date update in version.in
GDB Administrator [Sat, 8 Jun 2024 00:01:37 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Fri, 7 Jun 2024 00:02:16 +0000 (00:02 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Thu, 6 Jun 2024 00:01:16 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Wed, 5 Jun 2024 00:02:12 +0000 (00:02 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Tue, 4 Jun 2024 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Mon, 3 Jun 2024 00:00:57 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sun, 2 Jun 2024 00:00:39 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sat, 1 Jun 2024 00:01:45 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Fri, 31 May 2024 00:01:00 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Thu, 30 May 2024 00:00:55 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Wed, 29 May 2024 00:00:52 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Tue, 28 May 2024 00:01:14 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Mon, 27 May 2024 00:00:57 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sun, 26 May 2024 00:01:02 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sat, 25 May 2024 00:00:57 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Fri, 24 May 2024 00:01:33 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Thu, 23 May 2024 00:00:48 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Wed, 22 May 2024 00:00:48 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Tue, 21 May 2024 00:01:09 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Mon, 20 May 2024 00:01:06 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sun, 19 May 2024 00:00:59 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sat, 18 May 2024 00:01:03 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Fri, 17 May 2024 00:01:34 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoaarch64: Remove asserts from operand qualifier decoders
Nick Clifton [Thu, 16 May 2024 11:10:04 +0000 (12:10 +0100)] 
aarch64: Remove asserts from operand qualifier decoders

  PR31595

14 months agoAutomatic date update in version.in
GDB Administrator [Thu, 16 May 2024 00:00:55 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Wed, 15 May 2024 00:01:01 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Tue, 14 May 2024 00:01:16 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Mon, 13 May 2024 00:00:45 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sun, 12 May 2024 00:00:46 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Sat, 11 May 2024 00:01:45 +0000 (00:01 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Fri, 10 May 2024 00:00:57 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Thu, 9 May 2024 00:00:51 +0000 (00:00 +0000)] 
Automatic date update in version.in

14 months agoAutomatic date update in version.in
GDB Administrator [Wed, 8 May 2024 00:01:00 +0000 (00:01 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Tue, 7 May 2024 00:00:52 +0000 (00:00 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Mon, 6 May 2024 00:00:48 +0000 (00:00 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Sun, 5 May 2024 00:00:39 +0000 (00:00 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Sat, 4 May 2024 00:00:37 +0000 (00:00 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Fri, 3 May 2024 00:01:07 +0000 (00:01 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Thu, 2 May 2024 00:00:39 +0000 (00:00 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Wed, 1 May 2024 00:01:13 +0000 (00:01 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Tue, 30 Apr 2024 00:01:00 +0000 (00:01 +0000)] 
Automatic date update in version.in

15 months agoAutomatic date update in version.in
GDB Administrator [Mon, 29 Apr 2024 00:01:07 +0000 (00:01 +0000)] 
Automatic date update in version.in