Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb: Add svr4-tls-tdep.o to list of objects of i*86 targets
@ 2025-09-07 22:01 Sergio Durigan Junior
  2025-09-07 22:03 ` Sergio Durigan Junior
  2025-09-08 13:41 ` Tom Tromey
  0 siblings, 2 replies; 6+ messages in thread
From: Sergio Durigan Junior @ 2025-09-07 22:01 UTC (permalink / raw)
  To: GDB Patches; +Cc: Kevin Buettner, Sergio Durigan Junior

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-09-08 18:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-07 22:01 [PATCH] gdb: Add svr4-tls-tdep.o to list of objects of i*86 targets Sergio Durigan Junior
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox