[PATCH v3 3/5] Code cleanup: dwarf2_initialize_objfile return value

Pedro Alves palves@redhat.com
Mon Dec 11 13:20:00 GMT 2017

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.

Pedro Alves

More information about the Gdb-patches mailing list