]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Add svr4-tls-tdep.o to list of objects of i*86 targets
authorSergio Durigan Junior <sergiodj@sergiodj.net>
Sun, 7 Sep 2025 21:57:09 +0000 (17:57 -0400)
committerSergio Durigan Junior <sergiodj@sergiodj.net>
Mon, 8 Sep 2025 18:34:09 +0000 (14:34 -0400)
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

index f33d3de9214b3e267a1f3e9279b8023080b80217..34ae50363402521ad0250fc7bf93bb26b2f5927f 100644 (file)
@@ -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
        ;;