From patchwork Thu Sep 21 08:18:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 23054 Received: (qmail 91269 invoked by alias); 21 Sep 2017 08:19:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 90851 invoked by uid 89); 21 Sep 2017 08:18:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1631, H*r:sk:static. X-HELO: mail-wm0-f65.google.com Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Sep 2017 08:18:55 +0000 Received: by mail-wm0-f65.google.com with SMTP id i131so4495659wma.1 for ; Thu, 21 Sep 2017 01:18:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=+R9t0o92dURsfxStGgoA5Ctor7Waa4RhVt0so05YFeM=; b=nJXPupxU2OVkNRiYuZ8c9PLaE4+1Dm+ydBbU53KMOq9XEWptgolzNvY1pB76DpAoaF c1UjxPGdZh3mF2NpC1Nc4S8mfsJk9MvFelmVcG/rympuU2Hnbb2ExoSV6qNTZzT0fgtF ih8Ebm9rwKWJnGTeiIlzLAEpkYD2PGf4TNn8KD8fQJtYfmWCQZjp/LwwHhhDRpSBjqDJ xRfDk6fwiWUvSNwm3tk9EClfsmYcvoCkYsfRdWGrz7XkcvQCQjIGqjWkzZkjQOeDnA/5 AsXoynZ4YpHOR42TLK3xnmYJk83xbnv2NeZkYyBVss6J2odCUNe8ujmdS6F2qvY8LgiB ySkg== X-Gm-Message-State: AHPjjUi01Q9nyTB3L7ZIAV1oRbSOZSKpI0a91hZoWa8hlMQsT3dU+308 HBFOKa8SxR84zeoPgz19Lsaz4g== X-Google-Smtp-Source: AOwi7QDYmbE9pqbJrDgiJ+v+FJQSZGziNTtbMwsS5lxtoX/T5zIQAdml/6EmqtSxzJ6VS8ZNXRE1wA== X-Received: by 10.28.165.1 with SMTP id o1mr236275wme.31.1505981933317; Thu, 21 Sep 2017 01:18:53 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id a69sm944151wme.40.2017.09.21.01.18.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 01:18:52 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH OBV] Fix aarch64-freebsd build failure Date: Thu, 21 Sep 2017 09:18:48 +0100 Message-Id: <1505981928-30199-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes 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 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o to gdb_target_obs. --- 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 + + * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o + to gdb_target_obs. + 2017-09-20 Tom Tromey * breakpoint.c (struct counted_command_line): Remove. diff --git a/gdb/configure.tgt b/gdb/configure.tgt index a7d89c7..ae375a5 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -47,7 +47,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*)