From: Sergio Durigan Junior <sergiodj@sergiodj.net>
To: GDB Patches <gdb-patches@sourceware.org>
Cc: Kevin Buettner <kevinb@redhat.com>,
Sergio Durigan Junior <sergiodj@sergiodj.net>
Subject: [PATCH] gdb: Add svr4-tls-tdep.o to list of objects of i*86 targets
Date: Sun, 7 Sep 2025 18:01:35 -0400 [thread overview]
Message-ID: <20250907220135.3746141-1-sergiodj@sergiodj.net> (raw)
GDB currently fails to build from source on i386 if compiled with
--enable-64-bit-bfd. This is happening because svr4-tls-tdep.o is
missing from the gdb_target_obs variable, while amd64-linux-tdep.o is
obviously there.
Fix the problem by adding svr4-tls-tdep.o to the object list, but only
when --enable-64-bit-bfd is provided.
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33399
---
gdb/configure.tgt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index f33d3de9214..34ae5036340 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -326,7 +326,7 @@ i[34567]86-*-linux*)
arch/x86-linux-tdesc-features.o"
if test "x$have_64_bit_bfd" = "xyes"; then
# Target: GNU/Linux x86-64
- gdb_target_obs="amd64-linux-tdep.o \
+ gdb_target_obs="amd64-linux-tdep.o svr4-tls-tdep.o \
arch/amd64-linux-tdesc.o ${gdb_target_obs}"
fi
;;
--
2.50.1
next reply other threads:[~2025-09-07 22:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-07 22:01 Sergio Durigan Junior [this message]
2025-09-07 22:03 ` Sergio Durigan Junior
2025-09-08 13:42 ` Tom Tromey
2025-09-08 18:41 ` Sergio Durigan Junior
2025-09-08 13:41 ` Tom Tromey
2025-09-08 18:36 ` Sergio Durigan Junior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250907220135.3746141-1-sergiodj@sergiodj.net \
--to=sergiodj@sergiodj.net \
--cc=gdb-patches@sourceware.org \
--cc=kevinb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox