Commit Graph

124090 Commits

Author SHA1 Message Date
Indu Bhagat
6384e241e8 gas: sframe: fix PR gas/33277
In SFrame stack trace format, the representation of stack offsets allows
for either 1-byte, 2-byte or 4-byte integers.

Add new internal function sframe_fre_stack_offset_bound_p () which
checks if the given offset is within bounds (at most as a 4-byte
integer).  Use this to check if CFA offset is within bounds, if not skip
emitting the FDE, and warn the user.

Reviewed-by: Jens Remus <jremus@linux.ibm.com>

gas/
	PR gas/33277
        * gen-sframe.c (sframe_fre_stack_offset_bound_p): New
	definition.
        (sframe_xlate_do_def_cfa): Check bounds of offset.
        (sframe_xlate_do_def_cfa_offset): Likewise.

gas/testsuite/
	PR gas/33277
        * gas/cfi-sframe/cfi-sframe.exp: Add new test.
        * gas/cfi-sframe/cfi-sframe-x86_64-empty-pr33277.d: Likewise.
        * gas/cfi-sframe/cfi-sframe-x86_64-empty-pr33277.s: Likewise.
2025-11-04 22:59:55 -08:00
GDB Administrator
58fedddb89 Automatic date update in version.in 2025-11-05 00:00:38 +00:00
John David Anglin
d05b05527b hppa64: Fix some issues handling dynamic relocaltions
This change fixes the allocation logic in allocate_dynrel_entries and
elf64_hppa_finalize_dynreloc.  It also fixes addend calculation for
segment based relocations.

Some applications now link successfully on HP-UX but there are still
issues with external weak symbols.  This breaks linking with libgcc.
It looks like we need support for .rela.data.rel.ro, ...

2025-11-04  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

	* elf64-hppa.c (allocate_dynrel_entries): Correct hh->want_opd
	if condition.
	(elf64_hppa_finalize_dynreloc): Likewise.  Use symbol address
	instead of OPD address.  Include sec->output_offset in value2
	calculation.
	(elf64_hppa_finalize_opd): Likewise.
	(elf64_hppa_finalize_dlt): Likewise.
	(elf_hppa_final_link_relocate): Fix symbol address calculation.
2025-11-04 16:00:04 -05:00
Jan Vrany
628d488652 gdb: change blockvector_contains_pc to be a method
This changes blockvector_contains_pc() to be a method contains()
of struct blockvector.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
2025-11-04 11:18:12 +00:00
Jan Vrany
f29e763e90 gdb: change find_block_in_blockvector to be a method
This changes find_block_in_blockvector() to be a method lookup()
of struct blockvector.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
2025-11-04 11:18:12 +00:00
Jens Remus
cf312b990e s390: Emit relocation for 32-bit immediate operand
IBM Z instruction format RIL-a has a 32-bit immediate operand in
instruction bits 16 to 47.  Enable the assembler to emit a 32-bit
direct or PC-relative relocation when processing a fixup, similar
as it is already done for 16-bit immediate operands in bits 16-31.

This enables to assemble the following:

	lgfi	%r1,symbol	# R_390_32
	lgfi	%r1,symbol-.	# R_390_PC32

Furthermore it brings GNU assembler on par with LLVM assembler in
that regard.

gas/
	* config/tc-s390.c (md_apply_fix): Emit 32-bit direct or
	PC-relative relocation for 32-bit immediate operand in
	instruction bits 16-47.

gas/testsuite/
	* gas/s390/zarch-reloc.d: Add tests for relocation of RIL-a
	32-bit immediate operand.
	* gas/s390/zarch-reloc.s: Likewise.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
2025-11-04 11:51:07 +01:00
GDB Administrator
c38cda45dd Automatic date update in version.in 2025-11-04 00:00:43 +00:00
Simon Marchi
6f4cb3ab5a gdb: introduce blockvector_up
Change-Id: Id43c5982969f85b5931ba8a32d208a7326ed3492
Approved-By: Tom Tromey <tom@tromey.com>
2025-11-03 16:41:27 -05:00
Tankut Baris Aktemur
7c8311eca7 gdb: fix a typo in a comment in gdbtypes.h
Fix the typo "can server" to "can serve".

Also re-align the comment to make `void (*) ()` not break.
2025-11-03 16:07:52 +01:00
Tom Tromey
5b7bb3412e Clean up "return -1" in gdb.rust
This changes gdb.rust tests to use plain "return" rather than
"return -1".  In these spots, the "-1" has no meaning.

Approved-by: Kevin Buettner <kevinb@redhat.com>
2025-11-03 06:39:06 -07:00
Nick Clifton
12ef7d5b7b Remove call to abort in the DGB debug format printing code, thus allowing the display of a fuzzed input file to complete without triggering an abort.
PR 33448
2025-11-03 11:49:02 +00:00
Sam James
f5bee9f31b Sync top-level with GCC
This just brings in the following two changes:

commit 04df8fa9e73e612f978fff35a97841703b872f6c
Author:     Thomas Schwinge <tschwinge@baylibre.com>
AuthorDate: Tue Oct 21 09:46:32 2025 +0200
Commit:     Thomas Schwinge <tschwinge@baylibre.com>
CommitDate: Fri Oct 24 12:40:22 2025 +0200

    Simplify 'Makefile' dependencies for libatomic [PR81358]

    ...

commit e63cf4b130b86dd7dde1bf499d3d40faca10ea2e
Author:     Prathamesh Kulkarni <prathameshk@nvidia.com>
AuthorDate: Thu Oct 9 07:07:24 2025 +0000
Commit:     Prathamesh Kulkarni <prathameshk@nvidia.com>
CommitDate: Thu Oct 9 07:26:51 2025 +0000

    PR81358: Enable automatic linking of libatomic.

    ...

ChangeLog:

	* Makefile.def: Sync with GCC.
	* configure.ac: Ditto.
	* configure: Regenerate.
2025-11-03 09:53:04 +00:00
Indu Bhagat
ef442f8e7f libsframe: use sframe_decoder_get_funcdesc_v2 in dumper
Not strictly necessary for correctness.  But using '_v2' named APIs is
more appropriate.

libsframe/

        * sframe-dump.c (dump_sframe_func_with_fres):
2025-11-02 23:43:02 -08:00
Indu Bhagat
2445d240d1 gas: sframe: improve code comments around SFRAME_FRE_BASE_REG_INVAL
Rename it to SFRAME_FRE_REG_INVALID.

gas/
        * gen-sframe.c (sframe_row_entry_new): Adjust code comments a
	bit.
        * gen-sframe.h (SFRAME_FRE_BASE_REG_INVAL): Rename from..
        (SFRAME_FRE_REG_INVALID): ..to this.
2025-11-02 23:41:04 -08:00
H.J. Lu
f685e3953f elf: Don't set its DT_VERSYM entry for unversioned symbol
1. Referenced symbol without '@' has no version.
2. Defined symbol without the .symver directive has no version if there
is no linker version script.

Symbol without version shouldn't have the base version in its DT_VERSYM
entry.  Instead, its DT_VERSYM entry should be all zero to indicate that
the symbol doesn't have a version.

NB: Symbol with the base version has a '@' suffix, like "foo@", defined
with

.symver hide_original_foo, foo@

bfd/

	PR ld/33577
	* elflink.c (elf_link_output_extsym): Don't set its DT_VERSYM
	entry for the symbol without version.

ld/

	PR ld/33577
	* ld-elfvers/vers16.dsym: Remove the "Base" version on symbols
	without version.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
2025-11-03 15:09:07 +08:00
Markus Metzger
603d5fa176 btrace: stopped_by_*() consider the selected thread
In stopped_by_sw_breakpoint() and stopped_by_hw_breakpoint(), we check
whether any thread is replaying.  This is unnecessary as it only matters
if inferior_ptid is replaying.

Narrow the check to inferior_ptid.
2025-11-03 06:37:00 +00:00
Markus Metzger
10a280caf5 btrace: remove update_thread_list() and thread_alive()
The record btrace target does not create or destroy threads.  There is no
reason to override the update_thread_list() and thread_alive() target
methods.
2025-11-03 06:35:21 +00:00
Markus Metzger
07fe1be26c btrace, infrun: replay scheduler locking only depends on to-be-resumed thread
Similar to the parent commit, simplify schedlock_applies() by only
checking the argument thread.

When resuming that thread, GDB will automatically stop replaying its
inferior.  The replay state of other inferiors is not considered by
user_visible_resume_ptid(), so let's not consider them in
schedlock_applies(), either.

Approved-By: Tom Tromey <tom@tromey.com>
2025-11-03 06:33:39 +00:00
Markus Metzger
d0844398e2 btrace, infrun: simplify scheduler-locking replay
When scheduler-locking is set to replay and we're resuming a thread at the
end of its execution history, we check whether anything is replaying in
user_visible_resume_ptid() only to check again in clear_proceed_status()
before we stop replaying the current process.

What really matters is whether the selected thread is replaying or will
start replaying.

Simplify this by removing redundant checks.

Also avoid a redundant pass over all threads to check whether anything is
replaying before stopping replaying.  Make record_stop_replaying() handle
the case when we're not replaying gracefully.

Approved-By: Tom Tromey <tom@tromey.com>
2025-11-03 06:31:51 +00:00
Markus Metzger
732ed016e2 gdb, remote: adjust debug printing
remote::wait () may get called rather frequently, polluting the logging
output with tons of

    [remote] wait: enter
    [remote] wait: exit

messages.

Similarly, remote_target::remote_notif_remove_queued_reply () will print
the debug message even if nothing was actually removed.  Change that to
only print a debug message if a stop reply was removed.

Approved-By: Tom Tromey <tom@tromey.com>
2025-11-03 06:30:10 +00:00
Markus Metzger
921838d6db gdb, btrace: set wait status to ignore if nothing is moving
When record_btrace::wait() is called and no threads are moving, we set the
wait status to no_resumed.  Change that to ignore.

This helps with enabling per-inferior run-control for the record btrace
target as it avoids breaking out of do_target_wait() too early with
no_resumed when there would have been an event on another thread.
2025-11-03 06:28:35 +00:00
Markus Metzger
522ff727b6 gdb, btrace: simplify gdb.btrace/multi-inferior.exp
We don't really need three inferiors to test multi-inferior recording.
We don't really need to check info record before starting recording.
If we were recording, there would be output, causing a fail.

This just complicates the test when there is something to debug.
2025-11-03 06:27:24 +00:00
Markus Metzger
add41f3be2 btrace: clear thread stopped state when stopping replaying
When we stop replaying a thread, it moves to the end of its execution
history.  It retains its state from when it was replaying, though, so a
subsequent 'info program' command would show wrong information.

Clear all execution state used by the 'info program' command.
2025-11-03 06:27:17 +00:00
Markus Metzger
9a8c16ee84 btrace: do not allow moving running threads with 'record goto'
With asynchronous commands, a thread can be replaying in the background
while it is being moved using the 'record goto' command in the foreground.

Do not allow that.
2025-11-03 06:22:46 +00:00
Markus Metzger
92dc62fe6e btrace: do not stop replaying or recording while a thread is running
With asynchronous stepping commands, one may start replaying a thread in
the background and then stop recording its inferior in the foreground.

This causes the execution history to be cleared and the record target to
be unpushed while the thread is using said execution history.

I fail to see a use-case for this, so rather than trying to make this
work, I prevent such a scenario by not allowing replaying or recording to
be stopped while a thread is running.

We could do this only when a thread is running in replay mode and preserve
the existing behavior of being able to stop recording while threads are
running in recording mode.  It seems more consistent to not allow this for
both replaying and recording threads, though.
2025-11-03 06:21:11 +00:00
Markus Metzger
0b6e72d4c1 btrace: update record_btrace_stop_replaying_at_end
In record_btrace_stop_replaying_at_end, we know that we are at the end of
the execution history, so PC must match the current PC if we're not
replaying.

We're not changing any other registers during btrace replay, so we should
be fine leaving the regcache.

But we need to reinit the frame cache, since current frames used the
btrace unwinder.

The main motivation for this, however, is that future patches extend stop
replaying in ways that is not relevant to stop replaying at the end.
2025-11-03 06:19:36 +00:00
Markus Metzger
a00d335a2d gdb, record: notify frame change on 'record stop' when selected thread moves
As a side effect of the 'record stop' command, threads may move to the end
of their execution history if they had been replaying.

When using CLI or TUI, there is no indication of that move for the
selected thread.

Notify about the frame change for the selected thread.  This makes CLI
print the selected frame and TUI update their view.

Add a note to the MI record-stopped event.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Tom Tromey <tom@tromey.com>
2025-11-03 06:19:31 +00:00
Markus Metzger
4a9efbe8b0 gdb, btrace: fix pr19340
GDB fails with an assertion when stopping recording on a replaying thread
and then resuming that thread.  Stopping recording left the thread
replaying but the record target is gone.

Stop replaying all threads in the selected inferior before stopping recording.

I had to change the stepping test slightly to account for different
compilers generating slightly different debug information, so when
stepping the 'return 0' after 'record stop' I would end up in a different
location depending on which compiler I used.  The test still covers all
stepping commands.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19340

Approved-By: Andrew Burgess <aburgess@redhat.com>
2025-11-03 06:16:24 +00:00
Alan Modra
626360da44 ctf-archive sanity checks
Existing code checks that the first uint64_t ctfa_magic field is
available before reading but neglects to check that the last uint64_t
ctfa_ctfs is available before reading it in ctf_arc_bufpreamble.
ctf_arc_bufopen sets up a pointer to the struct ctf_archive in
ctf_new_archive_internal.  Extend the check to cover the entire struct.

	PR 33548
	PR 33549
	* ctf-archive.c (ctf_arc_bufpreamble, ctf_arc_bufopen): Check
	that buffer contains at least an entire struct ctf_archive
	when accessing such a struct.
2025-11-03 13:01:42 +10:30
Alan Modra
c2a2bab96b regen some configure files
commit 87b6078fc2 had some stale files
2025-11-03 11:52:30 +10:30
Alan Modra
87b6078fc2 tidy m4 plugin config support
In CLANG_PLUGIN_FILE it is possible for plugin_file to be non-NULL
when LLVMgold.so does not exist.

configure output is messy, with results not printed against their
  "checking.." line, eg.
checking for clang... (cached) yes
checking for clang plugin file... checking for x86_64-pc-linux-gnu-ar... (cached) ar --plugin /usr/lib/llvm-20/lib/clang/20/../../LLVMgold.so
/usr/lib/llvm-20/lib/clang/20/../../LLVMgold.so

This patch fixes those problems, and a similar interposition of other
configure output between AC_MSG_CHECKING and AC_MSG_RESULT in
gcc-plugin.m4.  It also tidies some of the message text, and makes
similar code in gcc-plugin.m4 and clang-plugin.m4 a little more
consistent.

config/
	* clang-plugin.m4 (CLANG_PLUGIN_FILE): Don't place checks for
	tools (llvm-config, ar) inside AC_MSG_CHECKING..AC_MSG_RESULT
	for clang plugin file.  Clear plugin_file before loop exit.
	(CLANG_PLUGIN_FILE_FOR_TARGET): Similarly.
	* gcc-plugin.m4 (GCC_PLUGIN_OPTION): Similarly.
	(GCC_PLUGIN_OPTION_FOR_TARGET): Correct AC_MSG_CHECKING.  Tidy
	return code.
binutils/
	* testsuite/lib/binutils-common.exp <llvm_plug_opt>: Set for
	non-native.
	* configure: Regenerate.
/
	* configure: Regenerate.
bfd/
	* configure: Regenerate.
gas/
	* configure: Regenerate.
gdb/
	* configure: Regenerate.
gprof/
	* configure: Regenerate.
gprofng/
	* configure: Regenerate.
	* libcollector/configure: Regenerate.
ld/
	* configure: Regenerate.
libbacktrace/
	* configure: Regenerate.
libctf/
	* configure: Regenerate.
libiberty/
	* configure: Regenerate.
libsframe/
	* configure: Regenerate.
opcodes/
	* configure: Regenerate.
sim/
	* configure: Regenerate.
zlib/
	* configure: Regenerate.
2025-11-03 10:59:50 +10:30
Alan Modra
f6b0f53a36 PR 33455 SEGV in vfinfo at ldmisc.c:527
A reloc howto set up with EMPTY_HOWTO has a NULL name.  More than one
place emitting diagnostics assumes a reloc howto won't have a NULL
name.

	PR 33455
	* coffcode.h (coff_slurp_reloc_table): Don't allow a howto with
	a NULL name.
2025-11-03 10:59:41 +10:30
GDB Administrator
efbf482f56 Automatic date update in version.in 2025-11-03 00:00:13 +00:00
John David Anglin
e23cba69ec hppa64: Implement segment based relocations for local symbols
There is progress in implementing 64-bit shared library support.

Fixes link error compiling vdso64.so.  HP-UX dynamic linker no longer
complains that libgcc_s.4 linked with GNU ld is an invalid shared library.

Relocations are now generated for all slots in .rela.data, .rela.dlt
and .rela.opd.  Relocation counts for libgcc_s.4 linked using GNU and
HP ld are the same except .rela.plt.  That may be okay as GNU ld directs
pc-relative calls to stubs.

Glibc's ld.so.new appears to link okay.  However, libgcc_s.4 linked with
GNU ld is still broken on HP-UX.

There are six unexpected fails in the testsuite and three unexpected
passes.  There's at least one fail due to name munging in the .dynsym
table.

2025-11-02  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

	* elf64-hppa.c (struct elf64_hppa_link_hash_entry): Remove
	sym_ind and owner fields.  Rename hash entries for __text_seg
	and __data_seg.  Adjust all users.
	(global_sym_index): Remove.
	(hppa64_elf_local_refcounts): Assert size is not 0.
	(elf64_hppa_check_relocs): Drop NEED_PLT from R_PARISC_FPTR64
	relocation.  Don't stash abfd and r_symndx in hh->owner and
	hh->sym_indx.  Add global symbols with hh->eh.dynindx equal
	-1 to dynamic table.  Don't record section symbols to the
	local dynamic symbol table.
	(allocate_global_data_dlt): Don't add symbol to local dynamic
	symbol table.
	(allocate_global_data_opd): Likewise.
	(elf64_hppa_late_size_sections): Rework code to add __text_seg
	and __data_seg symbols to the dynamic table.
	(elf64_hppa_finalize_dlt): Revise to use __text_seg and
	__data_seg symbols.
	(elf64_hppa_finalize_dynreloc): Likewise.
	(elf_hppa_final_link_relocate): When generating a shared
	library, ignore relocs in debugging sections.  Revise
	relocations needing DLT and OPD dynamic relocations to output
	dynamic relocatios for local symbols.  Move code to initialize
	segment base values back to SEGREL case.
2025-11-02 16:04:55 -05:00
Andrew Burgess
1ddfd4f3ea gdb: add a constructor for symtab
Convert symtab to use obstack_new, and have a real constructor.  The
filename, filename_for_id and m_compunit, members should really not
change once the symtab has been created, so make these members private
(m_compunit was already private) and set them just once from the
constructor.  The set_compunit function has been deleted, and new
getter functions for filename and filename_for_id have been added.

The language is also set at construction time, but can be updated
later, so set the language in the constructor, but retain
symtab::set_language for when the language needs to be updated.

Prior to this patch the symtab was allocated with OBSTACK_ZALLOC which
would zero out the symtab object.  With the call to objstack_new
fields in the symtab would no longer be initialised, so I've added
default member initialisation for everything not set in the
constructor.

The interesting changes are in symtab.h, and symfile.c.  Everything
else is just updating to handle symfile::filename and
symfile::filename_for_id becoming methods.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
2025-11-02 16:09:04 +00:00
GDB Administrator
8e9bfa66d8 Automatic date update in version.in 2025-11-02 00:00:33 +00:00
Indu Bhagat
3ae28d0776 libsframe: use sf_fde_tbl data structure internally for the decoder
Instead of the current sframe_func_desc_entry (on-disk format
representation) data structure.

The decoder context in libsframe, so far, has been internally directly
tied to the sframe_func_desc_entry (on-disk format representation) data
structure.  While this allows libsframe to avoid some operations, this
is not desirable anymore as the format evolves: we will need to support
reading in of older version(s) of SFrame FDE, as well as a newer on-disk
representations for SFrame FDE.

Use sf_fde_tbl internally in the decoder context.  Note that libsframe
already does _not_ use sframe_func_desc_entry in any external-facing,
user-visible APIs.

Note that this commit is simply preparatory in nature.  At the moment,
the 'sf_fde_tbl' internally uses the sframe_func_desc_entry (on-disk
format representation).  When need arises (as SFrame FDE evolves), we
may change sf_fde_tbl to use an alternative (but still libsframe
internal) definition of SFrame FDE.

lisbframe/
        * sframe-impl.h (sf_fde_tbl, sf_fre_tbl): Move definition before use.
	Use sf_fde_tbl instead of sframe_func_desc_entry in struct
        sframe_decoder_ctx.
        * sframe.c (sframe_fde_tbl_alloc): New internal definition.
        (sframe_fde_tbl_init): Likewise.
        (sframe_decoder_get_funcdesc_at_index): Adjust for sf_fde_tbl
	usage.
        (sframe_decoder_get_secrel_func_start_addr): Likewise.
        (sframe_fre_check_range_p): Likewise.
        (sframe_decode): Likewise.
        (sframe_get_funcdesc_with_addr_internal): Likewise.
2025-11-01 01:47:29 -07:00
Indu Bhagat
f264ead9fb libsframe: make flip_header version aware
Future versions of the format may have alternative representation of an
FDE.  As the format evolves, endian flipping of the SFrame header may
need to be version aware.

flip_header () now takes the SFrame version as argument and also returns
SFRAME_ERR in case of error.  Currently the SFrame version as argument
remains unused.

SFrame encoder, at the momemnt, writes the SFrame data in the most recent
format version by default.

libsframe/
        * sframe.c (flip_header): Make version aware.
        (sframe_decode): Adjust usage of flip_header.
        (sframe_encoder_write): Likewise.
2025-11-01 01:42:02 -07:00
Indu Bhagat
bdb0d62281 libsframe: make flip_fde version aware
Future versions of the format may have a different representation of an
SFrame FDE.  As the format evolves, endian flipping will need to be version
aware.

Refactor flip_fde a bit by carving out an internal sframe_decode_fde API
which can read information from an on-disk SFrame FDE.

libsframe/
        * sframe.c (flip_fde): Make version aware.
        (sframe_decode_fde): New internal definition.
        (flip_sframe): Use the new definitions.
2025-11-01 01:35:34 -07:00
GDB Administrator
a7e0ca446d Automatic date update in version.in 2025-11-01 00:00:12 +00:00
GDB Administrator
2f53fb60c9 Automatic date update in version.in 2025-10-31 00:00:16 +00:00
H.J. Lu
19c4084cfa lto: Set plugin_format to bfd_plugin_no only if known_used is set
commit b21318bd2c
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu May 11 14:31:09 2023 +0000

    Add LDPT_REGISTER_CLAIM_FILE_HOOK_V2 linker plugin hook [GCC PR109128]

added the LDPT_REGISTER_CLAIM_FILE_HOOK_V2 linker plugin hook for offload
support.  Since the V2 linker plugin hook doesn't claim the offload IR if
known_used is unset, set input plugin_format to bfd_plugin_no only if
known_used is set or the V2 linker plugin hook is unused.

	PR ld/33584
	* plugin.c (plugin_object_p): Set plugin_format to bfd_plugin_no
	only if known_used is set or the V2 linker plugin hook is unused.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
2025-10-31 07:52:23 +08:00
Alan Modra
9760f7d505 tic4x_scan: match printable arch string
Fix odd behaviour of objcopy -I -B on tic4x, where the tms320c4x
string reported by objcopy --info isn't a valid arch string.

	* cpu-tic4x.c (tic4x_scan): Match arch string reported by
	objcopy --info.
2025-10-31 10:00:53 +10:30
Alan Modra
0bb5cbb9b4 Pass -B to objcopy binary symbol test
objcopy -I binary -O some_coff_target does not currently work without
choosing a valid arch with -B.  This used to be the case for ELF
targets too, until commit 6765ee1825.

	* testsuite/binutils-all/objcopy.exp (binary_symbol): Pass
	-B arch to objcopy.  Choose different output object files for
	the two tests.
2025-10-31 09:44:38 +10:30
John David Anglin
2e352790ad hppa64: Use address of __text_seg symbol in elf64_hppa_finalize_opd
2025-10-30  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

	* elf64-hppa.c (elf64_hppa_finalize_opd): Use address of
	__text_seg symbol instead of hppa_info->text_segment_base.
2025-10-30 16:40:06 -04:00
John David Anglin
0b0ac02458 hppa64: Use address of __text_seg symbol insted of hppa_info->text_segment_base
2025-10-30  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

	* elf64-hppa.c (elf_hppa_final_link_relocate): Use address of
	__text_seg symbol insted of hppa_info->text_segment_base.
2025-10-30 16:29:55 -04:00
John David Anglin
de9efc361b hppa64: Add code to intialize __data_seg section symbol
2025-10-30  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

	* elf64-hppa.c (struct elf64_hppa_link_hash_table): Add
	data_segment field.
	(allocate_global_data_opd): Move code to initialize text
	segment section symbol to elf64_hppa_late_size_sections.
	(elf64_hppa_late_size_sections): Add code to setup
	__data_seg section symbol.
2025-10-30 16:15:31 -04:00
Simon Marchi
ddaee713f5 gdbsupport: bump unordered_dense to 4.8.0
We don't need anything in this release, but I think it doesn't hurt to
just stay up to date.  The new version has a new include file, stl.h.
To keep things clean and separated, move the imported files to a new
sub-directory.  This requires a small change in
gdb/check-include-guards.py, to be able to ignore the whole new
directory.

Change-Id: Ic8c5d0dd5ea8b6691c99975d6ca78f637175ef42
Approved-By: Tom Tromey <tom@tromey.com>
2025-10-30 12:31:34 -04:00
Simon Marchi
9f9eeeb6da pre-commit: use ^ anchors in files
Some `files` regexes use a ^ anchor, some don't.  I think it's good to
be explicit about it (and consistent), so use it everywhere.

Change-Id: I14eb2082a1c0ff6bc219e202fb16c3f12001fd73
Approved-By: Tom Tromey <tom@tromey.com>
2025-10-30 12:25:54 -04:00
Simon Marchi
da8ad8e03a pre-commit: run flake8 on all .py(.in)? files under gdb
This covers Python files under gdb/contrib and gdb/testsuite, which are
now flake8-clean.

Change-Id: If587964d0735f6f585c72d18df40439424215644
Approved-By: Tom Tromey <tom@tromey.com>
2025-10-30 12:25:54 -04:00