This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3 3/5] Code cleanup: dwarf2_initialize_objfile return value
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>, GDB Patches <gdb-patches at sourceware dot org>, Victor Leschuk <vleschuk at accesssoftek dot com>
- Date: Mon, 11 Dec 2017 13:20:47 +0000
- Subject: Re: [PATCH v3 3/5] Code cleanup: dwarf2_initialize_objfile return value
- Authentication-results: sourceware.org; auth=none
- References: <149790572259.20186.14601775821404892582.stgit@host1.jankratochvil.net> <149790575186.20186.4091613230201630619.stgit@host1.jankratochvil.net> <83d5d4a6-a137-b680-1af0-33b895bd817d@redhat.com> <CAH=s-PPpOHjwODDcj2_LLTFuFBCTYp5eh_vTCk0dySfjH+8kWg@mail.gmail.com>
On 12/11/2017 01:03 PM, Yao Qi wrote:
> This breaks the arm-wince-pe build,
>
> dwarf2read.o: In function `dwarf2_initialize_objfile(objfile*)':
> /home/yao.qi/SourceCode/gnu/binutils-gdb/gdb/dwarf2read.c:6486:
> undefined reference to `elf_sym_fns_gdb_index'
> /home/yao.qi/SourceCode/gnu/binutils-gdb/gdb/dwarf2read.c:6490:
> undefined reference to `elf_sym_fns_debug_names'
> /home/yao.qi/SourceCode/gnu/binutils-gdb/gdb/dwarf2read.c:6495:
> undefined reference to `elf_sym_fns_lazy_psyms'
> collect2: error: ld returned 1 exit status
> Makefile:1920: recipe for target 'gdb' failed
>
> https://ci.linaro.org/job/tcwg-binutils/4395/
>
Eh, looks like the bridge was closer than I realized... I forgot
the non-elf ports don't include elfread.c in the build. So we
really need to do something else here. Maybe an enum instead of
the original boolean.
Thanks,
Pedro Alves