Commit Graph

112798 Commits

Author SHA1 Message Date
GDB Administrator
7e440e325f Automatic date update in version.in 2023-04-01 00:00:56 +00:00
GDB Administrator
4c0b696977 Automatic date update in version.in 2023-03-31 00:01:13 +00:00
GDB Administrator
cc8fa93100 Automatic date update in version.in 2023-03-30 00:00:54 +00:00
GDB Administrator
89464ff0d4 Automatic date update in version.in 2023-03-29 00:00:49 +00:00
GDB Administrator
9d57bdf24c Automatic date update in version.in 2023-03-28 00:00:59 +00:00
GDB Administrator
5f0b5c3114 Automatic date update in version.in 2023-03-27 00:00:38 +00:00
GDB Administrator
313c466b8d Automatic date update in version.in 2023-03-26 00:00:39 +00:00
GDB Administrator
a665f99441 Automatic date update in version.in 2023-03-25 00:00:44 +00:00
Nick Alcock
bddd62e188 libctf: get the offsets of fields of unnamed structs/unions right
We were failing to add the offsets of the containing struct/union
in this case, leading to all offsets being relative to the unnamed
struct/union itself.

libctf/
	PR libctf/30264
	* ctf-types.c (ctf_member_info): Add the offset of the unnamed
	member of the current struct as necessary.
	* testsuite/libctf-lookup/unnamed-field-info*: New test.
2023-03-24 14:11:18 +00:00
Nick Alcock
7aa47eafcc libctf: fix assertion failure with no system qsort_r
If no suitable qsort_r is found in libc, we fall back to an
implementation in ctf-qsort.c.  But this implementation routinely calls
the comparison function with two identical arguments. The comparison
function that ensures that the order of output types is stable is not
ready for this, misinterprets it as a type appearing more that once (a
can-never-happen condition) and fails with an assertion failure.

Fixed, audited for further instances of the same failure (none found)
and added a no-qsort test to my regular testsuite run.

libctf/:
	PR libctf/30013
	* ctf-dedup.c (sort_output_mapping): Inputs are always equal to
	themselves.
2023-03-24 14:11:13 +00:00
GDB Administrator
9d7879951a Automatic date update in version.in 2023-03-24 00:01:18 +00:00
GDB Administrator
90c1af13df Automatic date update in version.in 2023-03-23 00:01:55 +00:00
Alan Modra
165accf075 coff_get_normalized_symtab bfd_release
We can't free "internal" on errors, since bfd_coff_swap_sym_in may
call bfd_alloc.  For example, _bfd_XXi_swap_sym_in may even create new
sections, which use bfd_alloc'd memory.  If "internal" is freed, all
more recently bfd_alloc'd memory is also freed.

	* coffgen.c (coff_get_normalized_symtab): Don't bfd_release on
	error.

(cherry picked from commit bcefc6be97)
2023-03-22 10:45:32 +10:30
GDB Administrator
d180af460b Automatic date update in version.in 2023-03-22 00:01:18 +00:00
Alan Modra
af35798e95 PR30217, dynamic relocations using local dynamic symbols
glibc's ld.so ignores local dynamic symbols.  It's been that way
forever.  We therefore can't use them on dynamic relocations.  Fixing
that problem uncovered another problem in sorting of dynamic relocs,
caused no doubt by copying make_iplt_section (where we don't want
reloc sorting by the generic gold function, we want iplt relocs last)
to make_lplt_section (where we do want sorting).

	PR 30217
	* powerpc.cc (branch_needs_plt_entry): New function.
	(Target_powerpc::plt_off): Use it here..
	(Target_powerpc::Scan::global): ..and here to correct PLT16 reloc
	handling for forced-local global symbols.
	(Output_data_plt_powerpc::add_entry): Rename "stash"
	parameter "is_local".  Emit relative relocs for globals that
	are forced local, and don't set_needs_dynsym_entry.
	(Target_powerpc::make_lplt_section): Don't create a separate
	reloc section, use rela_dyn.
	(Target_powerpc::make_brlt_section): Likewise.

(cherry picked from commit 0961e63157)
2023-03-22 09:21:49 +10:30
GDB Administrator
cf3ecb9574 Automatic date update in version.in 2023-03-21 00:01:36 +00:00
GDB Administrator
0b77148f8f Automatic date update in version.in 2023-03-20 00:01:33 +00:00
GDB Administrator
b31eb88fff Automatic date update in version.in 2023-03-19 00:01:20 +00:00
GDB Administrator
b0c1a2ec6f Automatic date update in version.in 2023-03-18 00:01:28 +00:00
GDB Administrator
17f33cd090 Automatic date update in version.in 2023-03-17 00:01:12 +00:00
GDB Administrator
75fdc002b9 Automatic date update in version.in 2023-03-16 00:01:55 +00:00
GDB Administrator
7f513c52d2 Automatic date update in version.in 2023-03-15 00:01:34 +00:00
GDB Administrator
fc3fbfb2ee Automatic date update in version.in 2023-03-14 00:01:57 +00:00
GDB Administrator
90e00511cf Automatic date update in version.in 2023-03-13 00:01:26 +00:00
GDB Administrator
29340ee530 Automatic date update in version.in 2023-03-12 00:01:24 +00:00
GDB Administrator
c145f2797e Automatic date update in version.in 2023-03-11 00:01:19 +00:00
GDB Administrator
e93ec771cb Automatic date update in version.in 2023-03-10 00:01:43 +00:00
GDB Administrator
b5732e7c17 Automatic date update in version.in 2023-03-09 00:01:20 +00:00
GDB Administrator
acac834f75 Automatic date update in version.in 2023-03-08 00:01:29 +00:00
GDB Administrator
b45236f0bb Automatic date update in version.in 2023-03-07 00:01:50 +00:00
Alan Modra
18bb604f1e PR30198, Assertion and segfault when linking x86_64 elf and coff
PR 30198
	* coff-x86_64.c (coff_amd64_reloc): Set *error_message when
	returning bfd_reloc_dangerous.  Also check that __ImageBase is
	defined before accessing h->u.def.

(cherry picked from commit 889d15d574)
2023-03-06 14:45:45 +10:30
GDB Administrator
a253eb5c31 Automatic date update in version.in 2023-03-06 00:01:10 +00:00
GDB Administrator
5bfb2ddb6a Automatic date update in version.in 2023-03-05 00:01:11 +00:00
GDB Administrator
cbb836549c Automatic date update in version.in 2023-03-04 00:01:16 +00:00
GDB Administrator
cd41c3c106 Automatic date update in version.in 2023-03-03 00:01:07 +00:00
Alan Modra
34a2b4a0e2 PR30155, ld segfault in _bfd_nearby_section
The segfault was a symptom of messing with the absolute section next
field, confusing bfd_section_removed_from_list in linker.c:fix_syms.
That's not all that was going wrong.  The INSERT list of output
sections was being inserted into itself, ie. lost from the main
list of linker statements.

	PR 30155
	* ldlang.c (process_insert_statements): Handle pathological
	case of the insert script being inserted before the first
	output section statement in the default script.
	(output_prev_sec_find): Don't test section owner here.
	(insert_os_after): Change parameter to a list union pointer.
	(lang_insert_orphan): Test section owner here and adjust
	insert_os_after call.

(cherry picked from commit 18e7a6587e)
2023-03-02 11:34:57 +10:30
Alan Modra
3d0046f39a PR30046, power cmpi leads to unknown architecture
PowerPC ELF always uses bfd_arch_powerpc, so we shouldn't allow the
gas -mpwr, -mpwr2 or -mpwrx options to choose bfd_arch_rs6000.
Given the possible values of ppc_cpu, I think the as_fatal at the end
of ppc_arch will never be reached, so it can be deleted and the code
simplified a little.

	PR 30046
	* config/tc-ppc.c (ppc_arch): Return bfd_arch_powerpc for ELF.
	Delete dead code.

(cherry picked from commit 4d826e132c)
2023-03-02 11:34:57 +10:30
Alan Modra
5c87fb1d59 ppc32 and "LOAD segment with RWX permissions"
When using a bss-plt we'll always trigger the RWX warning, which
disturbs gcc test results.  On the other hand, there may be reason to
want the warning when gcc is configured with --enable-secureplt.
So turning off the warning entirely for powerpc might not be the best
solution.  Instead, we'll turn off the warning whenever a bss-plt is
generated, unless the user explicitly asked for the warning.

bfd/
	* elf32-ppc.c (ppc_elf_select_plt_layout): Set
	no_warn_rwx_segments on generating a bss plt, unless explicity
	enabled by the user.  Also show the bss-plt warning when
	--warn-rwx-segments is given without --bss-plt.
include/
	* bfdlink.h (struct bfd_link_info): Add user_warn_rwx_segments.
ld/
	* lexsup.c (parse_args): Set user_warn_rwx_segments.
	* testsuite/ld-elf/elf.exp: Pass --secure-plt for powerpc to
	the rwx tests.

(cherry picked from commit 8478900290)
2023-03-02 11:34:57 +10:30
GDB Administrator
67b2106a0f Automatic date update in version.in 2023-03-02 00:01:16 +00:00
GDB Administrator
201fe4489c Automatic date update in version.in 2023-03-01 00:01:36 +00:00
GDB Administrator
11bafd29a9 Automatic date update in version.in 2023-02-28 00:01:18 +00:00
Nick Clifton
11f5c1ebf1 Updated Serbian translations for gold, gprof and opcodes sub-directories 2023-02-27 12:49:24 +00:00
GDB Administrator
2f471f3783 Automatic date update in version.in 2023-02-27 00:00:49 +00:00
GDB Administrator
c2bae25afb Automatic date update in version.in 2023-02-26 00:00:52 +00:00
GDB Administrator
49bd26445a Automatic date update in version.in 2023-02-25 00:00:47 +00:00
GDB Administrator
1caea23282 Automatic date update in version.in 2023-02-24 00:01:17 +00:00
GDB Administrator
9f7892cf1f Automatic date update in version.in 2023-02-23 00:01:13 +00:00
GDB Administrator
90b49bbe9a Automatic date update in version.in 2023-02-22 00:01:49 +00:00
GDB Administrator
e310116ffd Automatic date update in version.in 2023-02-21 00:00:57 +00:00
Nick Clifton
38e455b1d9 Updated translations for the bfd and gprof directories. 2023-02-20 12:32:30 +00:00