]> git.ipfire.org Git - thirdparty/binutils-gdb.git/log
thirdparty/binutils-gdb.git
3 months agoAutomatic date update in version.in
GDB Administrator [Sun, 13 Apr 2025 00:01:34 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sat, 12 Apr 2025 00:01:10 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Fri, 11 Apr 2025 00:01:21 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 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)

4 months agoAutomatic date update in version.in
GDB Administrator [Thu, 10 Apr 2025 00:01:35 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Wed, 9 Apr 2025 00:01:03 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Tue, 8 Apr 2025 00:01:57 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Mon, 7 Apr 2025 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sun, 6 Apr 2025 00:00:56 +0000 (00:00 +0000)] 
Automatic date update in version.in

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

4 months agoAutomatic date update in version.in
GDB Administrator [Fri, 4 Apr 2025 00:01:05 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Thu, 3 Apr 2025 00:01:13 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Wed, 2 Apr 2025 00:01:41 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Tue, 1 Apr 2025 00:01:23 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Mon, 31 Mar 2025 00:02:00 +0000 (00:02 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sun, 30 Mar 2025 00:01:32 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sat, 29 Mar 2025 00:01:46 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Fri, 28 Mar 2025 00:00:51 +0000 (00:00 +0000)] 
Automatic date update in version.in

4 months agox86: Remove AVX10.2 256 bit rounding support
Haochen Jiang [Wed, 19 Mar 2025 08:52:35 +0000 (16:52 +0800)] 
x86: Remove AVX10.2 256 bit rounding support

Since we will support 512 bit on both P-core and E-core for AVX10, 256 bit
rounding is not that useful because we currently have rounding feature
directly on E-core now and no need to use 256-bit rounding as somehow
a workaround. This patch will remove all the support and backport to
Binutils 2.44.

gas/ChangeLog:

* NEWS: Mention support removal.
* config/tc-i386.c (build_evex_prefix): Remove U bit encode.
(check_VecOperands): Remove ymm check for rounding.
(s_insn): Revise .insn comment.
* testsuite/gas/i386/avx10_2-256-cvt-intel.d: Remove ymm
rounding related test.
* testsuite/gas/i386/avx10_2-256-cvt.d: Ditto.
* testsuite/gas/i386/avx10_2-256-cvt.s: Ditto.
* testsuite/gas/i386/avx10_2-256-miscs-intel.d: Ditto.
* testsuite/gas/i386/avx10_2-256-miscs.d: Ditto.
* testsuite/gas/i386/avx10_2-256-miscs.s: Ditto.
* testsuite/gas/i386/avx10_2-256-satcvt-intel.d: Ditto.
* testsuite/gas/i386/avx10_2-256-satcvt.d: Ditto.
* testsuite/gas/i386/avx10_2-256-satcvt.s: Ditto.
* testsuite/gas/i386/evex.d: Ditto.
* testsuite/gas/i386/evex.s: Ditto.
* testsuite/gas/i386/i386.exp: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-cvt-intel.d: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-cvt.d: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-cvt.s: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-miscs-intel.d: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-miscs.d: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-miscs.s: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-satcvt-intel.d: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-satcvt.d: Ditto.
* testsuite/gas/i386/x86-64-avx10_2-256-satcvt.s: Ditto.
* testsuite/gas/i386/x86-64-evex.d: Ditto.
* testsuite/gas/i386/x86-64.exp: Ditto.
* testsuite/gas/i386/avx10_2-rounding-intel.d: Removed.
* testsuite/gas/i386/avx10_2-rounding-inval.l: Removed.
* testsuite/gas/i386/avx10_2-rounding-inval.s: Removed.
* testsuite/gas/i386/avx10_2-rounding.d: Removed.
* testsuite/gas/i386/avx10_2-rounding.s: Removed.
* testsuite/gas/i386/x86-64-avx10_2-rounding-intel.d: Removed.
* testsuite/gas/i386/x86-64-avx10_2-rounding.d: Removed.
* testsuite/gas/i386/x86-64-avx10_2-rounding.s: Removed.

opcodes/ChangeLog:

* i386-dis.c (struct instr_info): Remove U bit.
(get_valid_dis386): Roll back to APX condition.
* i386-opc.tbl: Remove ymm rounding support.
* i386-tbl.h: Regenerated.

4 months agoAutomatic date update in version.in
GDB Administrator [Thu, 27 Mar 2025 00:00:48 +0000 (00:00 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Wed, 26 Mar 2025 00:01:07 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Tue, 25 Mar 2025 00:00:54 +0000 (00:00 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Mon, 24 Mar 2025 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sun, 23 Mar 2025 00:01:22 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sat, 22 Mar 2025 00:01:59 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Fri, 21 Mar 2025 00:02:15 +0000 (00:02 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Thu, 20 Mar 2025 00:02:03 +0000 (00:02 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Wed, 19 Mar 2025 00:02:26 +0000 (00:02 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Tue, 18 Mar 2025 00:02:12 +0000 (00:02 +0000)] 
Automatic date update in version.in

4 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 agoAutomatic date update in version.in
GDB Administrator [Mon, 17 Mar 2025 00:02:09 +0000 (00:02 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sun, 16 Mar 2025 00:01:29 +0000 (00:01 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Sat, 15 Mar 2025 00:02:00 +0000 (00:02 +0000)] 
Automatic date update in version.in

4 months agoAutomatic date update in version.in
GDB Administrator [Fri, 14 Mar 2025 00:01:43 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 13 Mar 2025 00:00:59 +0000 (00:00 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Wed, 12 Mar 2025 00:01:54 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Tue, 11 Mar 2025 00:02:22 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Mon, 10 Mar 2025 00:00:55 +0000 (00:00 +0000)] 
Automatic date update in version.in

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

5 months agoAutomatic date update in version.in
GDB Administrator [Sat, 8 Mar 2025 00:01:07 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Fri, 7 Mar 2025 00:01:02 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 6 Mar 2025 00:01:18 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agold: Pass -Wl,-z,lazy to compiler for i386 lazy binding tests
H.J. Lu [Wed, 5 Mar 2025 04:44:11 +0000 (12:44 +0800)] 
ld: Pass -Wl,-z,lazy to compiler for i386 lazy binding tests

Pass -Wl,-z,lazy to compiler for i386 tests which require lazy binding
to support compilers which default to non-lazy binding.

PR ld/32762
* testsuite/ld-i386/i386.exp: Pass -Wl,-z,lazy for
"Build ifunc-1a with PIE -z ibtplt" test.
* testsuite/ld-i386/no-plt.exp: Pass -Wl,-z,lazy for
"Build libno-plt-1b.so", "No PLT (dynamic 1a)",
"No PLT (dynamic 1b)", "No PLT (dynamic 1c)",
"No PLT (PIE 1e)", "No PLT (PIE 1f)", "No PLT (PIE 1g)" tests.

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

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

5 months agoAutomatic date update in version.in
GDB Administrator [Tue, 4 Mar 2025 00:02:37 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Mon, 3 Mar 2025 00:01:32 +0000 (00:01 +0000)] 
Automatic date update in version.in

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

5 months agoAutomatic date update in version.in
GDB Administrator [Sat, 1 Mar 2025 00:01:57 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Fri, 28 Feb 2025 00:00:46 +0000 (00:00 +0000)] 
Automatic date update in version.in

5 months agoUpdated translations for bfd and gold
Nick Clifton [Thu, 27 Feb 2025 12:16:02 +0000 (12:16 +0000)] 
Updated translations for bfd and gold

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 27 Feb 2025 00:02:10 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Wed, 26 Feb 2025 00:01:10 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Tue, 25 Feb 2025 00:02:03 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Mon, 24 Feb 2025 00:01:30 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 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)

5 months agoAutomatic date update in version.in
GDB Administrator [Sun, 23 Feb 2025 00:02:51 +0000 (00:02 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Sat, 22 Feb 2025 00:01:38 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Fri, 21 Feb 2025 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 20 Feb 2025 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Wed, 19 Feb 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, 18 Feb 2025 00:01:53 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Mon, 17 Feb 2025 00:00:47 +0000 (00:00 +0000)] 
Automatic date update in version.in

5 months agoscore-elf gas SEGV
Alan Modra [Sat, 15 Feb 2025 21:59:27 +0000 (08:29 +1030)] 
score-elf gas SEGV

Commit 3fb6f5457e5b typoed an array subscript.

* config/tc-score7.c (s7_gen_reloc): Correct array subscript.
* testsuite/gas/score/pr32700.d,
* testsuite/gas/score/pr32700.s: New test.
* testsuite/gas/score/relax.exp: Run it.

(cherry picked from commit ac8a1a52cf757b64373dfca8efc0e3041648a9f5)

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

5 months agoAutomatic date update in version.in
GDB Administrator [Sat, 15 Feb 2025 00:01:06 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agogas: fix rs_fill_nop listing
Jan Beulich [Fri, 14 Feb 2025 08:33:18 +0000 (09:33 +0100)] 
gas: fix rs_fill_nop listing

In commit a0094f1a70e1 ("gas: make .nops output visible in listing") I
was wrongly assuming fr_fix would be zero for rs_fill_nop, when that's
only a side effect of listing_newline() inserting dummy frags, but only
when file/line did actually change from the previous invocation. This is
in particular not going to be true when the .nops directive isn't the
first statement on a line.

5 months agoAutomatic date update in version.in
GDB Administrator [Fri, 14 Feb 2025 00:01:55 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Thu, 13 Feb 2025 00:01:43 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Wed, 12 Feb 2025 00:01:19 +0000 (00:01 +0000)] 
Automatic date update in version.in

5 months agoAutomatic date update in version.in
GDB Administrator [Tue, 11 Feb 2025 00:01:41 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Mon, 10 Feb 2025 00:01:20 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 9 Feb 2025 00:01:40 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 8 Feb 2025 00:00:50 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Fri, 7 Feb 2025 00:01:38 +0000 (00:01 +0000)] 
Automatic date update in version.in

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

6 months agoAutomatic date update in version.in
GDB Administrator [Wed, 5 Feb 2025 00:01:53 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Tue, 4 Feb 2025 00:02:20 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Mon, 3 Feb 2025 00:01:33 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoOpen the 2.44 branch for further development
Nick Clifton [Sun, 2 Feb 2025 13:46:57 +0000 (13:46 +0000)] 
Open the 2.44 branch for further development

6 months agoThis is the 2.44 release binutils-2_44
Nick Clifton [Sun, 2 Feb 2025 11:50:17 +0000 (11:50 +0000)] 
This is the 2.44 release

6 months agoImport AArch64 commits:
Nick Clifton [Sun, 2 Feb 2025 11:30:27 +0000 (11:30 +0000)] 
Import AArch64 commits:

  0fad7627cf8 aarch64: Fix overly lax +frintts dependency
  99b90c46110 aarch64: Fix fp8 feature dependencies
  71e59ebefc2 aarch64: Support +sme+nosve permissively

6 months agoPR 32580: Partial fix for problems with the ksh shell and the elf linker script
Nick Clifton [Sun, 2 Feb 2025 11:29:51 +0000 (11:29 +0000)] 
PR 32580: Partial fix for problems with the ksh shell and the elf linker script

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 2 Feb 2025 00:02:18 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 1 Feb 2025 00:01:17 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoLoongArch: Do not relax against __[start|stop]_SECNAME symbol
Lulu Cai [Fri, 31 Jan 2025 10:37:00 +0000 (10:37 +0000)] 
LoongArch: Do not relax against __[start|stop]_SECNAME symbol

6 months agoAutomatic date update in version.in
GDB Administrator [Fri, 31 Jan 2025 00:01:57 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agoRemove a couple of entries in the binutils MAINTAINERS file
Nick Clifton [Thu, 30 Jan 2025 16:01:30 +0000 (16:01 +0000)] 
Remove a couple of entries in the binutils MAINTAINERS file

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

6 months agoAutomatic date update in version.in
GDB Administrator [Wed, 29 Jan 2025 00:03:25 +0000 (00:03 +0000)] 
Automatic date update in version.in

6 months agoUpdated translations for various sub-directories
Nick Clifton [Tue, 28 Jan 2025 16:27:24 +0000 (16:27 +0000)] 
Updated translations for various sub-directories

6 months agoAutomatic date update in version.in
GDB Administrator [Tue, 28 Jan 2025 00:03:10 +0000 (00:03 +0000)] 
Automatic date update in version.in

6 months agoloongson buffer overflow
Alan Modra [Sun, 26 Jan 2025 02:42:45 +0000 (13:12 +1030)] 
loongson buffer overflow

bfd_elfNN_loongarch_set_data_segment_info can be called from the target
after_allocation function with a non-ELF hash table.  This is seen in
the ld-elf pr21884 testcase.  Fix the problem by first checking the
hash table type before writing to a loongarch_elf_hash_table field.

(cherry picked from commit 59ba00f21f7d48780e92a9fb66ed4abbedc3bd28)

6 months agoPR32599, objcopy -I ihex: invalid operation
Alan Modra [Sun, 26 Jan 2025 04:24:15 +0000 (14:54 +1030)] 
PR32599, objcopy -I ihex: invalid operation

Restores ihex get_symtab_upper_bound to what it was prior to commit
394a3f4f8d.  This will enable objcopy of other no-sym formats too.

PR 32599
* libbfd-in.h (_bfd_nosymbols_get_symtab_upper_bound): Define
as _bfd_long_bfd_0.
* libbfd.h: Regenerate.

(cherry picked from commit fd45211245d0f1027a0c3ab606e3253eda779e68)

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

6 months agoAutomatic date update in version.in
GDB Administrator [Sun, 26 Jan 2025 00:00:48 +0000 (00:00 +0000)] 
Automatic date update in version.in

6 months agoAutomatic date update in version.in
GDB Administrator [Sat, 25 Jan 2025 00:03:12 +0000 (00:03 +0000)] 
Automatic date update in version.in

6 months agoaarch64: Fix PLT fixups when BTI is used [PR32572]
Richard Earnshaw [Thu, 23 Jan 2025 10:53:54 +0000 (10:53 +0000)] 
aarch64: Fix PLT fixups when BTI is used [PR32572]

PR ld/32572

There are two problems addressed in this PR.  Firstly, the choice of
whether or not a PLT stub needs a BTI on entry was too strict,
resulting in non-pie executables not having a BTI on their stub.  But
secondly, the logic to handle each stub types did not agree across the
various places where this information is used.

The first issue is fixed by using bfd_link_executable rather than
bfd_link_pde.  The second is addressed by recording a delta for PLT
stub alongside the stub itself.  This is then used without needing
additional logic later on since it has been pre-calculated.

A more comprehensive fix would involve creating a data structure to
describe each fixup, including a call-back function to apply any
relocations.  But that's a fairly large change and not appropriate for
backporting.

6 months agoAutomatic date update in version.in
GDB Administrator [Fri, 24 Jan 2025 00:01:32 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 months agold: fix alignment issue for ARM thumb long branch stub using PureCode section
Torbjörn SVENSSON [Tue, 17 Dec 2024 17:56:10 +0000 (18:56 +0100)] 
ld: fix alignment issue for ARM thumb long branch stub using PureCode section

When pure-code option is activated. The linker creates for M-profile architecures
a 2-bytes branch instruction. This causes the section alignment to be set to 2-byte
alignment instead of 4-byte alignment. This is a problem for long branch stub
without pure-code section as it contains a 32-bit address as data, which is expected
to be 4-byte aligned. Hence creating a long branch stub for PureCode section followed
by a long branch stub will result in a misalignment for the 32-bit address.

An easy fix is to add a nop instruction after the branch to keep the section alignment
to 4 bytes.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Co-authored-by: Guillaume VACHERIAS <guillaume.vacherias@st.com>
(cherry picked from commit 014a7c0fa36ecc41918e5793052dd3ae8372efe5)

6 months agold: fix bashism in scripttempl/elf.sc
Sam James [Thu, 23 Jan 2025 00:03:07 +0000 (00:03 +0000)] 
ld: fix bashism in scripttempl/elf.sc

ld/
PR ld/32580

* scripttempl/elf.sc: Fix '==' bashism.

(cherry picked from commit 6999916e6c7fe6ba3a7661d852757f59223416a3)