]> git.ipfire.org Git - thirdparty/binutils-gdb.git/log
thirdparty/binutils-gdb.git
5 weeks agox86: Check MODRM for call and jmp in binutils older than 2.45 binutils-2_43-branch
H.J. Lu [Thu, 22 May 2025 03:29:49 +0000 (11:29 +0800)] 
x86: Check MODRM for call and jmp in binutils older than 2.45

When i386 glibc was assembled with commit:

commit 11c2852449825a5f486f63bc40aabed56b7c04c1 (HEAD)
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Feb 21 10:24:50 2025 +0100

    x86: widen @got{,pcrel} support to PUSH and APX IMUL

    With us doing the transformation to an immediate operand for MOV and
    various ALU insns, there's little reason to then not support the same
    conversion for the other two insns which have respective immediate
    operand forms. Unfortunately for IMUL (due to the 0F opcode prefix)
    there's no suitable relocation, so the pre-APX forms cannot be marked
    for relaxation in the assembler.

"pushl main@GOT(%ebx)" in sysdeps/i386/start.S was assembled to

1c: ff b3 00 00 00 00 push 0x0(%ebx) 1e: R_386_GOT32X main

Linkers in binutils versions older than 2.45 treated it as jmp and relaxed
it to

22c: e9 cf ff ff ff   jmp    200 <main>
231: 90               nop

Update elf_i386_convert_load_reloc in binutils versions older than 2.45
to check MODRM for call and jmp to work with i386 glibc assembled with
binutils 2.45 or newer.  Do the same in elf_x86_64_convert_load_reloc.

PR ld/32991
* elf32-i386.c (elf_i386_convert_load_reloc): Check MODRM for
call and jmp.
* elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.

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

5 weeks agox86: Report expected register for elf_x86_tls_error_indirect_call
H.J. Lu [Wed, 28 Aug 2024 12:03:04 +0000 (05:03 -0700)] 
x86: Report expected register for elf_x86_tls_error_indirect_call

Since R_386_TLS_DESC_CALL can only be used with

call *variable@TLSCALL(%eax)

and R_X86_64_TLSDESC_CALL can only be used with

call *variable@TLSCALL(%rax)

update TLS transition error report to display the expected register in
indirect CALL.

bfd/

PR ld/32017
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize
the ax_register field.
(_bfd_x86_elf_link_report_tls_transition_error): Report the
expected register in elf_x86_tls_error_indirect_call error.
* elfxx-x86.h (elf_x86_link_hash_table): Add ax_register.

ld/

PR ld/32017
* testsuite/ld-i386/tlsgdesc2.d: Updated.
* testsuite/ld-i386/tlsgdesc2.s: Change jmp to call via ECX.
* testsuite/ld-x86-64/tlsdesc4.d: Updated.
* testsuite/ld-x86-64/tlsdesc4.s: Change jmp to call via RCX.

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

7 weeks agodwarf: Dump .debug_loclists only for DWARF-5
H.J. Lu [Thu, 20 Mar 2025 20:16:34 +0000 (13:16 -0700)] 
dwarf: Dump .debug_loclists only for DWARF-5

.debug_loclists section is loaded into debug_information as DWARF-5 debug
info and .debug_loc section is loaded into debug_information as pre-DWARF-5
debug info.  When dumping .debug_loc section, we should only process
pre-DWARF-5 debug info in debug_information.  When dumping .debug_loclists
section, we should only process DWARF-5 info in debug_information.

binutils/

PR binutils/32809
* dwarf.c (display_debug_loc): Dump .debug_loclists only for
DWARF-5.

ld/

PR binutils/32809
* testsuite/ld-x86-64/dwarf4.s: New file.
* testsuite/ld-x86-64/dwarf5a.s: Likewise.
* testsuite/ld-x86-64/dwarf5b.s: Likewise.
* testsuite/ld-x86-64/pr32809.d: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr32809.

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

2 months agos390: Add support for z17 as CPU name
Jens Remus [Wed, 9 Apr 2025 06:59:24 +0000 (08:59 +0200)] 
s390: Add support for z17 as CPU name

So far IBM z17 was identified as arch15.  Add the real name, as it has
been announced. [1]

[1]: IBM z17 announcement letter, AD25-0015,
     https://www.ibm.com/docs/en/announcements/z17-makes-more-possible

gas/
* config/tc-s390.c (s390_parse_cpu): Add z17 as alternate CPU
name for arch15.
* doc/c-s390.texi: Likewise.
* doc/as.texi: Likewise.

opcodes/
* s390-mkopc.c (main): Add z17 as alternate CPU name for arch15.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
(cherry picked from commit 981fe5fd80faf511aa265e841a380c9b46be30e6)

3 months agoelf: Clear the SEC_ALLOC bit for NOLOAD note sections
H.J. Lu [Thu, 13 Mar 2025 18:52:00 +0000 (11:52 -0700)] 
elf: Clear the SEC_ALLOC bit for NOLOAD note sections

When generating an ELF output file, if a note section is marked as
NOLOAD, clear the SEC_ALLOC bit so that it won't be treated as an
SHF_ALLOC section, like a .bss style section.

PR ld/32787
* ld.texi: Update NOLOAD for ELF output files.
* ldlang.c (lang_add_section): Clear the SEC_ALLOC bit for NOLOAD
note sections for ELF output files.
* testsuite/ld-elf/pr32787.d: New file.
* testsuite/ld-elf/pr32787.t: Likewise.

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

4 months agoPR 32731 ub sanitizer accessing filenames_reversed
Alan Modra [Sun, 23 Feb 2025 10:34:29 +0000 (21:04 +1030)] 
PR 32731 ub sanitizer accessing filenames_reversed

tic4x-coff and mcore-pe tickle this bug by a peculiarity of their
default ld scripts.

PR 32731
* ldlang.c (lang_add_wild): Init filenames_reversed when no
filespec.

(cherry picked from commit a021382482a6c891d74d302a598688f447ae97e0)

4 months agoPR32238, ld -r slowdown since 21401fc7bf
Alan Modra [Sat, 4 Jan 2025 01:03:27 +0000 (11:33 +1030)] 
PR32238, ld -r slowdown since 21401fc7bf

PR 32238
* ldlang.c (struct out_section_hash_entry): Add "tail".
(output_section_statement_newfunc_1): New, extracted from..
(output_section_statement_newfunc): ..here.  Init tail.
(lang_output_section_statement_lookup): Use tail to avoid
list traversal.

(cherry picked from commit a55875bd182258a917af303c653d6667593e7b3e)

5 months agoAutomatic date update in version.in
GDB Administrator [Sun, 19 Jan 2025 00:01:58 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Sat, 18 Jan 2025 00:00:52 +0000 (00:00 +0000)] 
Automatic date update in version.in

5 months agoaarch64: Fix sve2p1 gating and add missing instructions
Andrew Carlotti [Thu, 16 Jan 2025 02:34:44 +0000 (02:34 +0000)] 
aarch64: Fix sve2p1 gating and add missing instructions

Many FEAT_SVE2p1 instructions need to be enabled by either of two
different features (one for streaming mode, and one for non-streaming
mode).  This patch adds correct gating conditions for these
instructions.

There were also a few sve2p1 instructions missing altogether, so add
those as well.

The testsuite is modified to check for all alternative enablement
conditions.  In many cases this is done by adding an alternative
assembler commands to existing test files.  For some SME/SME2 tests,
only some of the instructions are enabled by +sve2p1, so these are
copied into a separate test.  For original SVE2p1 tests, the non-SME2p1
instructions have been moved to a separate test file.

There are also new tests for the newly added instructions.  These
include a couple of fixme comments relating to bad error reporting,
which should be investigated later.

5 months agoAutomatic date update in version.in
GDB Administrator [Fri, 17 Jan 2025 00:03:09 +0000 (00:03 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 16 Jan 2025 00:03:33 +0000 (00:03 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Wed, 15 Jan 2025 00:02:04 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Tue, 14 Jan 2025 00:02:57 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Mon, 13 Jan 2025 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Sun, 12 Jan 2025 00:01:53 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Sat, 11 Jan 2025 00:00:55 +0000 (00:00 +0000)] 
Automatic date update in version.in

5 months agoaarch64: Fix incorrect gating of sme-lutv2 instructions
Andrew Carlotti [Mon, 6 Jan 2025 16:56:22 +0000 (16:56 +0000)] 
aarch64: Fix incorrect gating of sme-lutv2 instructions

Only the strided form of the luti4 intrinsic requires FEAT_SME2p1.

5 months agoAutomatic date update in version.in
GDB Administrator [Fri, 10 Jan 2025 00:01:09 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 9 Jan 2025 00:02:45 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Wed, 8 Jan 2025 00:01:48 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Tue, 7 Jan 2025 00:01:45 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Mon, 6 Jan 2025 00:02:54 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Sun, 5 Jan 2025 00:01:39 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months ago_bfd_write_ar_hdr
Alan Modra [Sat, 4 Jan 2025 06:27:48 +0000 (16:57 +1030)] 
_bfd_write_ar_hdr

This has been broken since commit 8f95b6e44955 in 2010, and apparently
nobody has noticed.  How we write archive headers depends on the
archive, not the contents.

* libbfd-in.h (_bfd_write_ar_hdr): Correct.
* libbfd.h: Regenerate.

(cherry picked from commit c232d080c4f05b16e998bd49d6e2d92c56b6421e)

5 months agoPR32266, segv when linking libclang_rt.asan-powerpc64.so
Alan Modra [Sun, 13 Oct 2024 04:41:59 +0000 (15:11 +1030)] 
PR32266, segv when linking libclang_rt.asan-powerpc64.so

Change the mmap support added with commit 9ba56acee518 to always mmap
memory with PROT_READ | PROT_WRITE.  Prior to that commit most file
contents were read into a buffer allocated with bfd_alloc or
bfd_malloc and thus the memory was read/write.  Even after that commit
any section contents with relocations must be read/write to apply the
relocs.  Making them all read/write is not a major change, and it
should not introduce any measurable linker slowdown for contents that
are not modified.  More importantly, it removes a BFD behaviour
difference that only triggers when large files are involved.

PR 32266
PR 32109
* libbfd.c (bfd_mmap_local): Remove prot param.  Always mmap
with PROT_READ | PROT_WRITE.  Adjust all calls.
(_bfd_mmap_temporary): Rename from _bfd_mmap_readonly_temporary.
(_bfd_munmap_temporary): Rename from _bfd_munmap_readonly_temporary.
_bfd_mmap_persistent): Rename from _bfd_mmap_readonly_persistent.
(_bfd_generic_get_section_contents): Use PROT_READ | PROT_WRITE
regardless of relocs.
* libbfd-in.h: Update decls to suit.  Make non-USE_MMAP variants
static inline functions.
* elflink.c: Update all uses of _bfd_mmap functions.
* elf.c: Likewise.
(bfd_elf_get_str_section): Revert commit 656f8fbaae.
* libbfd.h: Regenerate.

(cherry picked from commit 76eab8f47a743bde86be410bce8fd8382eaea6c2)

5 months agoAutomatic date update in version.in
GDB Administrator [Sat, 4 Jan 2025 00:01:37 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Fri, 3 Jan 2025 00:02:15 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 2 Jan 2025 00:02:52 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Wed, 1 Jan 2025 00:02:14 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Tue, 31 Dec 2024 00:02:11 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoLoongArch: Add relaxation support for call36 that jump to PLT entry
mengqinggang [Thu, 26 Dec 2024 06:14:12 +0000 (14:14 +0800)] 
LoongArch: Add relaxation support for call36 that jump to PLT entry

Part of commit a104f0a3e620 ("LoongArch: Add more relaxation support for
call36") in master.  This part is needed for 2.43 branch to fix a link
failure of QtWebEngine-6.8.1, which can be demonstrated with a reduced
test case (with -shared):

    .text
    .zero 1 << 27   # pretending we have a lot of code in .text
    .globl f        # preemptible, thus must be called via PLT
    f:
      move $a0, $r0
      ret
    g:
      pcaddu18i $t0, %call36(f)
      jr $t0

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
5 months agoAutomatic date update in version.in
GDB Administrator [Mon, 30 Dec 2024 00:02:15 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 29 Dec 2024 00:01:52 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoLoongArch: Fix broken DESC => IE transition for 2.43 branch
Xi Ruoyao [Fri, 27 Dec 2024 08:26:28 +0000 (16:26 +0800)] 
LoongArch: Fix broken DESC => IE transition for 2.43 branch

If code compiled with -fPIC -mtls-dialect=desc is linked into a PDE or
PIE, and the code refers to external DSO symbols, we can produce broken
link unit as check_relocs expects DESC => IE transition to happen and
emits a TLS IE entry in the GOT, but a too early "continue" in
relax_section actually jumps over the DESC => IE transition so the code
sequence is unchanged and still expecting a TLS descriptor (instead of
an IE entry) in the GOT.

The bug is already fixed in master branch by commit 5c3d09c1855b
("LoongArch: Optimize the relaxation process") so this fix is only
needed for the 2.43 branch.

Reported-by: Icenowy Zheng <uwu@icenowy.me>
Closes: https://gcc.gnu.org/PR118114
Tested-by: Icenowy Zheng <uwu@icenowy.me>
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 28 Dec 2024 00:02:36 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Fri, 27 Dec 2024 00:02:07 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Thu, 26 Dec 2024 00:01:55 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Wed, 25 Dec 2024 00:00:52 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Tue, 24 Dec 2024 00:00:58 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Mon, 23 Dec 2024 00:01:14 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 22 Dec 2024 00:00:48 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 21 Dec 2024 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Fri, 20 Dec 2024 00:01:58 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agox86-64: correct CODE_5 relocs
Jan Beulich [Thu, 19 Dec 2024 09:38:47 +0000 (10:38 +0100)] 
x86-64: correct CODE_5 relocs

Two of them had their numbers swapped; luckily they aren't really in use
just yet. Correct indentation as well while at it.

6 months agoAutomatic date update in version.in
GDB Administrator [Thu, 19 Dec 2024 00:02:45 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Wed, 18 Dec 2024 00:01:11 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agonm: Avoid potential segmentation fault when displaying symbols without version info.
Nick Clifton [Tue, 17 Dec 2024 09:18:57 +0000 (09:18 +0000)] 
nm: Avoid potential segmentation fault when displaying symbols without version info.

PR 32467

6 months agoAutomatic date update in version.in
GDB Administrator [Tue, 17 Dec 2024 00:02:22 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Mon, 16 Dec 2024 00:01:49 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 15 Dec 2024 00:00:57 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 14 Dec 2024 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

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

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

6 months agoAutomatic date update in version.in
GDB Administrator [Wed, 11 Dec 2024 00:02:20 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Tue, 10 Dec 2024 00:00:44 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Mon, 9 Dec 2024 00:01:44 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 8 Dec 2024 00:00:58 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 7 Dec 2024 00:00:48 +0000 (00:00 +0000)] 
Automatic date update in version.in

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

6 months agoAutomatic date update in version.in
GDB Administrator [Thu, 5 Dec 2024 00:00:55 +0000 (00:00 +0000)] 
Automatic date update in version.in

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

6 months agoAutomatic date update in version.in
GDB Administrator [Tue, 3 Dec 2024 00:00:57 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Mon, 2 Dec 2024 00:01:36 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 1 Dec 2024 00:03:07 +0000 (00:03 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 30 Nov 2024 00:01:27 +0000 (00:01 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Fri, 29 Nov 2024 00:00:33 +0000 (00:00 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Thu, 28 Nov 2024 00:02:20 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoPR32387 ppc64 TLS optimization bug with -fno-plt code
Alan Modra [Mon, 25 Nov 2024 21:54:19 +0000 (08:24 +1030)] 
PR32387 ppc64 TLS optimization bug with -fno-plt code

The inline plt code emitted by gcc is incompatible with the
linker/ld.so --tls-get-addr-optimize scheme.  This is the runtime
optimisation where the first call to __tls_get_addr results in
__tls_get_addr updating the tls_index pair, then the special linker
stub using that to short-circuit second and subsequent calls for a
given tls symbol.  Enabled by default when the linker sees
__tls_get_addr_opt is preseent, and enabled in ld.so when DT_PPC64_OPT
has PPC64_OPT_TLS set.  Note that this is distinct from link-time tls
optimisation.

PR 32387
* elf64-ppc.c (ppc64_elf_check_relocs): Disable tls_get_addr_opt
on detecting inline plt calls to __tls_get_addr.

(cherry picked from commit 1686dc7079f1c03bdaffd2f779b92aa2b7ad97b5)

7 months agoAutomatic date update in version.in
GDB Administrator [Wed, 27 Nov 2024 00:03:11 +0000 (00:03 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Tue, 26 Nov 2024 00:03:39 +0000 (00:03 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Mon, 25 Nov 2024 00:03:44 +0000 (00:03 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Sun, 24 Nov 2024 00:03:58 +0000 (00:03 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Sat, 23 Nov 2024 00:03:25 +0000 (00:03 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Fri, 22 Nov 2024 00:03:21 +0000 (00:03 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Thu, 21 Nov 2024 00:02:39 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Wed, 20 Nov 2024 00:02:11 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agold: fix -std=gnu23 compatibility wrt _Bool
Sam James [Sat, 16 Nov 2024 07:07:02 +0000 (07:07 +0000)] 
ld: fix -std=gnu23 compatibility wrt _Bool

GCC trunk now defaults to -std=gnu23. We return false in a few places
which can't work when true/false are a proper type (_Bool). Return NULL
where appropriate instead of false. All callers handle this appropriately.

ChangeLog:
PR ld/32372

* pdb.c (add_stream): Return NULL.

(cherry picked from commit bf447eec6d7b69cba652127e2f38f102de38de39)

7 months agobinutils: fix -std=gnu23 compatibility wrt _Bool
Sam James [Sat, 16 Nov 2024 05:12:51 +0000 (05:12 +0000)] 
binutils: fix -std=gnu23 compatibility wrt _Bool

GCC trunk now defaults to -std=gnu23. We return false in a few places
which can't work when true/false are a proper type (_Bool). Return NULL
where appropriate instead of false. All callers handle this appropriately.

ChangeLog:
PR ld/32372

* prdbg.c (visibility_name): Return NULL.

(cherry picked from commit eeff15bc88b89abed1cdb4d3b1b2cc7b4cec6fe7)

7 months agoopcodes: fix -std=gnu23 compatibility wrt static_assert
Sam James [Sat, 16 Nov 2024 05:03:52 +0000 (05:03 +0000)] 
opcodes: fix -std=gnu23 compatibility wrt static_assert

static_assert is declared in C23 so we can't reuse that identifier:
* Define our own static_assert conditionally;

* Rename "static assert" hacks to _N as we do already in some places
  to avoid a conflict.

ChangeLog:
PR ld/32372

        * i386-gen.c (static_assert): Define conditionally.
        * mips-formats.h (MAPPED_INT): Rename identifier.
        (MAPPED_REG): Rename identifier.
        (OPTIONAL_MAPPED_REG): Rename identifier.
        * s390-opc.c (static_assert): Define conditionally.

(cherry picked from commit 8ebe62f3f0d27806b1bf69f301f5e188b4acd2b4)

7 months agobfd: fix -std=gnu23 compatibility wrt _Bool
Sam James [Sat, 16 Nov 2024 05:01:58 +0000 (05:01 +0000)] 
bfd: fix -std=gnu23 compatibility wrt _Bool

GCC trunk now defaults to -std=gnu23. We return false in a few places
which can't work when true/false are a proper type (_Bool). Return NULL
where appropriate instead of false. All callers handle this appropriately.

ChangeLog:
PR ld/32372

* elf32-ppc.c (ppc_elf_tls_setup): Return NULL.
        * elf32-xtensa.c (translate_reloc_bfd_fix): Ditto.
        (translate_reloc): Ditto.
        * elf64-ppc.c (update_local_sym_info): Ditto.
        * mach-o.c (bfd_mach_o_lookup_uuid_command): Ditto.
        * xsym.c (bfd_sym_read_name_table): Ditto.

(cherry picked from commit 931e4f9b09512bb9012204bb2e4060ab6d9b9b46)

7 months agoAutomatic date update in version.in
GDB Administrator [Tue, 19 Nov 2024 00:02:24 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agos390: Add arch15 Concurrent-Functions Facility insns
Jens Remus [Mon, 18 Nov 2024 09:42:21 +0000 (10:42 +0100)] 
s390: Add arch15 Concurrent-Functions Facility insns

opcodes/
* s390-opc.txt: Add arch15 Concurrent-Functions Facility
instructions.
* s390-opc.c (INSTR_SSF_RRDRD2, MASK_SSF_RRDRD2): New SSF
instruction format variant.

gas/testsuite/
* gas/s390/zarch-arch15.d: Tests for arch15 Concurrent-Functions
Facility instructions.
* gas/s390/zarch-arch15.s: Likewise.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
(cherry picked from commit 76445f36a2f9e41b1744d0327e7ec243cb7fac12)

7 months agos390: Add arch15 instruction names
Jens Remus [Mon, 18 Nov 2024 09:42:21 +0000 (10:42 +0100)] 
s390: Add arch15 instruction names

opcodes/
* s390-opc.txt: Add arch15 instruction names.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
(cherry picked from commit b0588b2173bf9aeff9eadc0cc024c4c69e69114d)

7 months agoAutomatic date update in version.in
GDB Administrator [Mon, 18 Nov 2024 00:01:21 +0000 (00:01 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Sun, 17 Nov 2024 00:02:17 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Sat, 16 Nov 2024 00:02:19 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Fri, 15 Nov 2024 00:02:07 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Thu, 14 Nov 2024 00:02:40 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Wed, 13 Nov 2024 00:02:06 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Tue, 12 Nov 2024 00:02:30 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Mon, 11 Nov 2024 00:01:37 +0000 (00:01 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Sun, 10 Nov 2024 00:00:45 +0000 (00:00 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Sat, 9 Nov 2024 00:04:11 +0000 (00:04 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Fri, 8 Nov 2024 00:02:10 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Thu, 7 Nov 2024 00:02:42 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Wed, 6 Nov 2024 00:02:50 +0000 (00:02 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Tue, 5 Nov 2024 00:03:04 +0000 (00:03 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Mon, 4 Nov 2024 00:01:35 +0000 (00:01 +0000)] 
Automatic date update in version.in

7 months agoAutomatic date update in version.in
GDB Administrator [Sun, 3 Nov 2024 00:02:30 +0000 (00:02 +0000)] 
Automatic date update in version.in