This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix aarch64-freebsd build failure


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a0bf5dc149ad79b325cdffb6b4e57be6c5ecbc2

commit 0a0bf5dc149ad79b325cdffb6b4e57be6c5ecbc2
Author: Yao Qi <yao.qi@linaro.org>
Date:   Thu Sep 21 09:19:23 2017 +0100

    Fix aarch64-freebsd build failure
    
    I happen to see that fbsd-tdep.o is missing for target aarch64-freebsd,
    and it causes the build failure,
    
    aarch64-fbsd-tdep.o: In function `aarch64_fbsd_init_abi(gdbarch_info, gdbarch*)':
    binutils-gdb/gdb/aarch64-fbsd-tdep.c:186: undefined reference to `fbsd_init_abi(gdbarch_info, gdbarch*)'
    binutils-gdb/gdb/aarch64-fbsd-tdep.c:189: undefined reference to `svr4_lp64_fetch_link_map_offsets()'
    binutils-gdb/gdb/aarch64-fbsd-tdep.c:189: undefined reference to `set_solib_svr4_fetch_link_map_offsets(gdbarch*, link_map_offsets* (*)())'
    
    This patch fixed it.
    
    gdb:
    
    2017-09-21  Yao Qi  <yao.qi@linaro.org>
    
    	* configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
    	to gdb_target_obs.

Diff:
---
 gdb/ChangeLog     | 5 +++++
 gdb/configure.tgt | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 56a8260..adafa4c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-21  Yao Qi  <yao.qi@linaro.org>
+
+	* configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
+	to gdb_target_obs.
+
 2017-09-20  Tom Tromey  <tom@tromey.com>
 
 	* breakpoint.c (struct counted_command_line): Remove.
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 2e69e1d..7ac3ae0 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -46,7 +46,8 @@ aarch64*-*-elf | aarch64*-*-rtems*)
 
 aarch64*-*-freebsd*)
 	# Target: FreeBSD/aarch64
-	gdb_target_obs="aarch64-tdep.o aarch64-fbsd-tdep.o aarch64-insn.o"
+	gdb_target_obs="aarch64-tdep.o aarch64-fbsd-tdep.o aarch64-insn.o \
+			fbsd-tdep.o solib-svr4.o"
 	;;
 
 aarch64*-*-linux*)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]