Commit Graph

117737 Commits

Author SHA1 Message Date
GDB Administrator
805f0df28f Automatic date update in version.in 2024-03-20 00:02:39 +00:00
GDB Administrator
186520ee1b Automatic date update in version.in 2024-03-19 00:01:57 +00:00
GDB Administrator
d7860abebc Automatic date update in version.in 2024-03-18 00:02:28 +00:00
GDB Administrator
c282b281b4 Automatic date update in version.in 2024-03-17 00:00:57 +00:00
GDB Administrator
5f759a1696 Automatic date update in version.in 2024-03-16 00:01:09 +00:00
GDB Administrator
e2c0e3abae Automatic date update in version.in 2024-03-15 00:01:16 +00:00
Andrew Carlotti
d816fda3cb aarch64: Remove B16B16, SVE2p1 and SME2p1
Support for these extensions is broken and incomplete in the 2.42
branch, with a number of syntax and opcode bugs.  This patch removes the
flags and documentation, to avoid any further suggestion that this
extension is fully and correctly supported.
2024-03-14 17:01:46 +00:00
GDB Administrator
a2c275ad35 Automatic date update in version.in 2024-03-14 00:02:56 +00:00
GDB Administrator
ca2926ff13 Automatic date update in version.in 2024-03-13 00:01:13 +00:00
GDB Administrator
fd96d26ce8 Automatic date update in version.in 2024-03-12 00:02:53 +00:00
GDB Administrator
075b20318b Automatic date update in version.in 2024-03-11 00:01:56 +00:00
GDB Administrator
6062a0714e Automatic date update in version.in 2024-03-10 00:01:16 +00:00
Alan Modra
cb11047e34 Re: Move bfd_init to bfd.c
Commit b1c95bc4dd cleared some bfd static variables, with bad
results since bfd_set_error_program_name is often called before
bfd_init.

	* bfd.c (bfd_init): Don't clear _bfd_error_program_name.

(cherry picked from commit 0c947d990a)
2024-03-09 20:04:35 +10:30
Alan Modra
818bcf40ef print cached error messages using _bfd_error_handler
* format.c (print_warnmsg): Use _bfd_error_handler to print
	cached messages.

(cherry picked from commit bd8d76258f)
2024-03-09 20:04:18 +10:30
GDB Administrator
b9b7639c6f Automatic date update in version.in 2024-03-09 00:01:04 +00:00
GDB Administrator
2f02a3fcdc Automatic date update in version.in 2024-03-08 00:01:04 +00:00
GDB Administrator
2d6b9067b9 Automatic date update in version.in 2024-03-07 00:02:38 +00:00
GDB Administrator
d22bfe0b2a Automatic date update in version.in 2024-03-06 00:03:15 +00:00
GDB Administrator
418668d226 Automatic date update in version.in 2024-03-05 00:01:49 +00:00
GDB Administrator
1686f15562 Automatic date update in version.in 2024-03-04 00:02:26 +00:00
GDB Administrator
8dc84c7e49 Automatic date update in version.in 2024-03-03 00:01:49 +00:00
GDB Administrator
bb3d517660 Automatic date update in version.in 2024-03-02 00:01:03 +00:00
GDB Administrator
7e7618b0d1 Automatic date update in version.in 2024-03-01 00:02:06 +00:00
Srinath Parvathaneni
831be495ef aarch64: Fix the 2nd operand in gcsstr and gcssttr instructions.
The assembler wrongly expects plain register name instead of
memory-form 2nd operand for gcsstr and gcssttr instructions.
This patch fixes the issue.
2024-02-29 21:19:04 +00:00
GDB Administrator
9dce3449f5 Automatic date update in version.in 2024-02-29 00:02:11 +00:00
GDB Administrator
ce3bda6e5d Automatic date update in version.in 2024-02-28 00:01:30 +00:00
GDB Administrator
f40432e82d Automatic date update in version.in 2024-02-27 00:01:53 +00:00
GDB Administrator
177f7d2281 Automatic date update in version.in 2024-02-26 00:01:44 +00:00
GDB Administrator
73a3df68c9 Automatic date update in version.in 2024-02-25 00:02:22 +00:00
GDB Administrator
32933333f3 Automatic date update in version.in 2024-02-24 00:01:32 +00:00
GDB Administrator
6cbb046556 Automatic date update in version.in 2024-02-23 00:02:01 +00:00
GDB Administrator
4ce6d9f327 Automatic date update in version.in 2024-02-22 00:01:53 +00:00
GDB Administrator
303aeec545 Automatic date update in version.in 2024-02-21 00:01:41 +00:00
GDB Administrator
3907b93e92 Automatic date update in version.in 2024-02-20 00:01:09 +00:00
GDB Administrator
b12e61f981 Automatic date update in version.in 2024-02-19 00:01:30 +00:00
GDB Administrator
0f0fc784d7 Automatic date update in version.in 2024-02-18 00:00:45 +00:00
GDB Administrator
909abfc52e Automatic date update in version.in 2024-02-17 00:01:08 +00:00
H.J. Lu
553c7f61b7 x86: Display -msse-check= default as none
Display -msse-check= default as none for "as --help" since its default
is none, not warning.

	PR gas/31389
	* config/tc-i386.c (md_show_usage): Change -msse-check= default
	to none.

(cherry picked from commit 7a6a03c499)
2024-02-15 16:16:07 -08:00
GDB Administrator
79dae30d25 Automatic date update in version.in 2024-02-16 00:00:49 +00:00
GDB Administrator
7151e88a59 Automatic date update in version.in 2024-02-15 00:01:40 +00:00
GDB Administrator
518453a7fc Automatic date update in version.in 2024-02-14 00:01:19 +00:00
Peter Bergner
4f7d1d2d5e PowerPC: Add support for Power11 options
binutils/
	* doc/binutils.texi (PowerPC -M option): Mention power11 and pwr11.

gas/
	* config/tc-ppc.c: (md_show_usage): Mention -mpower11 and -mpwr11.
	* doc/c-ppc.texi: Likewise.

opcodes/
	* ppc-dis.c (ppc_opts): Add "power11" and "pwr11" entries.
	(powerpc_init_dialect): Default to "power11".

(cherry picked from commit 4199cf1e15)
2024-02-13 17:02:36 -06:00
GDB Administrator
7ce9bdab58 Automatic date update in version.in 2024-02-13 00:01:27 +00:00
GDB Administrator
a47235bd94 Automatic date update in version.in 2024-02-12 00:01:04 +00:00
GDB Administrator
79b6fe3b31 Automatic date update in version.in 2024-02-11 00:00:47 +00:00
H.J. Lu
3c1f1c3578 x86-64: Add R_X86_64_CODE_6_GOTTPOFF
For

	add	%reg1, name@gottpoff(%rip), %reg2

and

	add	name@gottpoff(%rip), %reg1, %reg2

add

 #define R_X86_64_CODE_6_GOTTPOFF		50

if the instruction starts at 6 bytes before the relocation offset.
They are similar to R_X86_64_GOTTPOFF.  Linker can covert GOTTPOFF to

	add	$name@tpoff, %reg1, %reg2

Rewrite fx_tcbit, fx_tcbit2 and fx_tcbit3 usage to generate
R_X86_64_GOTPCRELX, R_X86_64_REX_GOTPCRELX, R_X86_64_CODE_4_GOTPCRELX,
R_X86_64_CODE_4_GOTTPOFF, R_X86_64_CODE_4_GOTPC32_TLSDESC and
R_X86_64_CODE_6_GOTTPOFF.

NB: There is no need to check BFD_RELOC_X86_64_CODE_4_GOTTPOFF in
md_assemble since there is only BFD_RELOC_X86_64_GOTTPOFF at this
stage, which will be converted to BFD_RELOC_X86_64_CODE_4_GOTTPOFF
or BFD_RELOC_X86_64_CODE_6_GOTTPOFF in i386_validate_fix.

5 relocations:

 #define R_X86_64_CODE_5_GOTPCRELX		46
 #define R_X86_64_CODE_5_GOTTPOFF		47
 #define R_X86_64_CODE_5_GOTPC32_TLSDESC	48
 #define R_X86_64_CODE_6_GOTPCRELX		49
 #define R_X86_64_CODE_6_GOTPC32_TLSDESC	51

are added for completeness and they are unused.

bfd/

	* elf64-x86-64.c (x86_64_elf_howto_table): Add
	R_X86_64_CODE_5_GOTPCRELX, R_X86_64_CODE_5_GOTTPOFF,
	R_X86_64_CODE_5_GOTPC32_TLSDESC, R_X86_64_CODE_6_GOTPCRELX,
	R_X86_64_CODE_6_GOTTPOFF and R_X86_64_CODE_6_GOTPC32_TLSDESC.
	(R_X86_64_standard): Updated.
	(x86_64_reloc_map): Add R_X86_64_CODE_5_GOTPCRELX,
	R_X86_64_CODE_5_GOTTPOFF, R_X86_64_CODE_5_GOTPC32_TLSDESC,
	R_X86_64_CODE_6_GOTPCRELX, R_X86_64_CODE_6_GOTTPOFF and
	R_X86_64_CODE_6_GOTPC32_TLSDESC.
	(elf_x86_64_check_tls_transition): Handle
	R_X86_64_CODE_6_GOTTPOFF.
	(elf_x86_64_tls_transition): Likewise.
	(elf_x86_64_scan_relocs): Handle R_X86_64_CODE_6_GOTTPOFF.
	Issue an error for R_X86_64_CODE_5_GOTPCRELX,
	R_X86_64_CODE_5_GOTTPOFF, R_X86_64_CODE_5_GOTPC32_TLSDESC,
	R_X86_64_CODE_6_GOTPCRELX and R_X86_64_CODE_6_GOTPC32_TLSDESC.
	(elf_x86_64_relocate_section): Handle R_X86_64_CODE_6_GOTTPOFF.
	* reloc.c (bfd_reloc_code_real): Add
	BFD_RELOC_X86_64_CODE_5_GOTPCRELX,
	BFD_RELOC_X86_64_CODE_5_GOTTPOFF,
	BFD_RELOC_X86_64_CODE_5_GOTPC32_TLSDESC,
	BFD_RELOC_X86_64_CODE_6_GOTPCRELX,
	BFD_RELOC_X86_64_CODE_6_GOTTPOFF and
	BFD_RELOC_X86_64_CODE_6_GOTPC32_TLSDESC.
	* bfd-in2.h: Regenerated.
	* libbfd.h: Likewise.

elfcpp/

	* x86_64.h (R_X86_64_CODE_5_GOTPCRELX): New.
	(R_X86_64_CODE_5_GOTTPOFF): Likewise.
	(R_X86_64_CODE_5_GOTPC32_TLSDESC): Likewise.
	(R_X86_64_CODE_6_GOTPCRELX): Likewise.
	(R_X86_64_CODE_6_GOTTPOFF): Likewise.
	(R_X86_64_CODE_6_GOTPC32_TLSDESC): Likewise.

gas/

	* config/tc-i386.c (tc_i386_fix_adjustable): Handle
	BFD_RELOC_X86_64_CODE_6_GOTTPOFF.
	(md_assemble): Don't check BFD_RELOC_X86_64_CODE_4_GOTTPOFF.
	Allow "add %reg1, foo@gottpoff(%rip), %reg2".
	(output_disp): Handle BFD_RELOC_X86_64_CODE_6_GOTTPOFF.  Rewrite
	setting fx_tcbitX bits for BFD_RELOC_X86_64_GOTTPOFF,
	BFD_RELOC_X86_64_GOTPC32_TLSDESC and BFD_RELOC_32_PCREL.
	(md_apply_fix): Handle BFD_RELOC_X86_64_CODE_6_GOTTPOFF.
	(i386_validate_fix): Rewrite fx_tcbitX bit checking for
	BFD_RELOC_X86_64_GOTTPOFF, BFD_RELOC_X86_64_GOTPC32_TLSDESC and
	BFD_RELOC_32_PCREL.
	(tc_gen_reloc): Handle BFD_RELOC_X86_64_CODE_6_GOTTPOFF.
	* testsuite/gas/i386/x86-64-gottpoff.d: Updated.
	* testsuite/gas/i386/x86-64-gottpoff.s: Add tests for
	"add %reg1, foo@gottpoff(%rip), %reg2" and
	"add foo@gottpoff(%rip), %reg, %reg2".

gold/

	* x86_64.cc (Target_x86_64::optimize_tls_reloc): Handle
	R_X86_64_CODE_6_GOTTPOFF.
	(Target_x86_64::Scan::get_reference_flags): Likewise.
	(Target_x86_64::Scan::local): Likewise.
	(Target_x86_64::Scan::global): Likewise.
	(Target_x86_64::Relocate::relocate): Likewise.
	(Target_x86_64::Relocate::relocate_tls): Likewise.
	(Target_x86_64::Relocate::tls_ie_to_le): Handle.
	R_X86_64_CODE_6_GOTTPOFF.
	* testsuite/x86_64_ie_to_le.s: Add tests for
	"add %reg1, foo@gottpoff(%rip), %reg2" and
	"add foo@gottpoff(%rip), %reg, %reg2".
	* testsuite/x86_64_ie_to_le.sh: Updated.

include/

	* elf/x86-64.h (elf_x86_64_reloc_type): Add
	R_X86_64_CODE_5_GOTPCRELX, R_X86_64_CODE_5_GOTTPOFF,
	R_X86_64_CODE_5_GOTPC32_TLSDESC, R_X86_64_CODE_6_GOTPCRELX,
	R_X86_64_CODE_6_GOTTPOFF and R_X86_64_CODE_6_GOTPC32_TLSDESC.

ld/

	* testsuite/ld-x86-64/tlsbindesc.s: Add R_X86_64_CODE_6_GOTTPOFF
	tests.
	* testsuite/ld-x86-64/tlsbindesc.d: Updated.
	* testsuite/ld-x86-64/tlsbindesc.rd: Likewise.

(cherry picked from commit 5bc71c2a6b)
2024-02-10 08:23:26 -08:00
GDB Administrator
ba864c35f5 Automatic date update in version.in 2024-02-10 00:01:13 +00:00
Jan Beulich
c426c8e307 x86/APX: VROUND{P,S}{S,D} encodings require AVX512{F,VL}
In eea4357967 ("x86/APX: VROUND{P,S}{S,D} can generally be encoded") I
failed to add the AVX512* ISA dependency of the two new entries.
2024-02-09 08:42:22 +01:00
GDB Administrator
e13d5f0b38 Automatic date update in version.in 2024-02-09 00:00:44 +00:00
Alan Modra
78f9e9faaa PR31208, strip can break ELF alignment requirements
In https://sourceware.org/pipermail/binutils/2007-August/053261.html
(git commit 3dea8fca8b) I disabled a then new linker feature that
removed empty PT_LOAD headers in cases where a user specified program
headers, and for objcopy.  This can be a problem for objcopy/strip and
since objcopy operates on sections, any part of a PT_LOAD loading file
contents not covered by a section will be omitted anyway.

	PR 31208
	* elf.c (_bfd_elf_map_sections_to_segments): Pass remove_empty_load
	as true to elf_modify_segment_map for objcopy/strip.

(cherry picked from commit 7f26d260ef)
2024-02-09 08:05:34 +10:30