diff mbox

fix aarch64-none-elf build error

Message ID 018B8906-8E80-4E12-963C-B4A014ADC286@arm.com
State New
Headers show

Commit Message

Alan Hayward Nov. 24, 2017, 1:26 p.m. UTC
> On 24 Nov 2017, at 12:49, Yao Qi <qiyaoltc@gmail.com> wrote:

> 

> On Fri, Nov 24, 2017 at 11:34 AM, Alan Hayward <Alan.Hayward@arm.com> wrote:

>> 

>> 

>> All 4 Patches pushed.

>> 

> 

> They break aarch64-elf build.

> 

> aarch64-tdep.o: In function `aarch64_read_description()':

> binutils-gdb/gdb/aarch64-tdep.c:2837: undefined reference to

> `aarch64_create_target_description()'

> binutils-gdb/gdb/aarch64-tdep.c:2837: undefined reference to

> `aarch64_create_target_description()'

> aarch64-tdep.o: In function `_initialize_aarch64_tdep()':

> binutils-gdb/gdb/aarch64-tdep.c:3073: undefined reference to

> `aarch64_create_target_description()'

> collect2: error: ld returned 1 exit status

> 

> https://ci.linaro.org/job/tcwg-binutils/4251/

> 

> -- 

> Yao (齐尧)



This patch fixes the build error I introduced for aarch64-none-elf.
Apologies, I hadn’t run that build.

2017-11-24  Alan Hayward  <alan.hayward@arm.com>

	* configure.tgt: Add arch/aarch64.o


Alan.

Comments

Yao Qi Nov. 24, 2017, 2:05 p.m. UTC | #1
On Fri, Nov 24, 2017 at 1:26 PM, Alan Hayward <Alan.Hayward@arm.com> wrote:
>
> This patch fixes the build error I introduced for aarch64-none-elf.
> Apologies, I hadn’t run that build.
>
> 2017-11-24  Alan Hayward  <alan.hayward@arm.com>
>
>         * configure.tgt: Add arch/aarch64.o

Patch is good to me.
diff mbox

Patch

diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index daec0a7bcd31944679b87fb4c3775dedc15dfd21..701ad6c48605fd72cb8afea40fa711c3b817133c 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -46,7 +46,7 @@  amd64_tobjs="amd64-tdep.o arch/amd64.o"

 case "${targ}" in
 aarch64*-*-*)
-	cpu_obs="aarch64-tdep.o arch/aarch64-insn.o";;
+	cpu_obs="aarch64-tdep.o arch/aarch64-insn.o arch/aarch64.o";;

 alpha*-*-*)
 	# Target: Alpha