Build regression with --enable-targets=all [Re: [RFA] Remove target_section.bfd]

Jan Kratochvil
2013-07-17T04:33:01Z

On Tue, 16 Jul 2013 00:42:33 +0200, Doug Evans wrote:
> 2013-07-15 Doug Evans <dje@google.com>
>
> * target.h (struct target_section): Delete member bfd.
> All users updated to use the_bfd_section->owner instead.
> * exec.c (add_to_section_table): Assert bfd is expected value.
> Remove initialization of target_section.bfd.
> (remove_target_sections): Update.
> (section_table_available_memory): Update.
> (section_table_xfer_memory_partial): Update.
> (print_section_info): Update.
> (exec_set_section_address): Update.
> * record-full.c (record_full_core_xfer_partial): Update.
> * solib-svr4.c (svr4_relocate_section_addresses): Update.
> * solib-target.c (solib_target_relocate_section_addresses): Update.
> * symfile.c (build_section_addr_info_from_section_table): Update.
> * target.c (memory_xfer_live_readonly_partial): Update.
> (memory_xfer_partial_1): Update.

With --enable-targets=all I get:

nto-tdep.c: In function ‘nto_relocate_section_addresses’:
nto-tdep.c:309:48: error: ‘struct target_section’ has no member named ‘bfd’
make: *** [nto-tdep.o] Error 1
ppc64-tdep.c: In function ‘ppc64_convert_from_func_ptr_addr’:
ppc64-tdep.c:386:40: error: ‘struct target_section’ has no member named ‘bfd’
make: *** [ppc64-tdep.o] Error 1
solib-aix.c: In function ‘solib_aix_relocate_section_addresses’:
solib-aix.c:393:18: error: ‘struct target_section’ has no member named ‘bfd’
make: *** [solib-aix.o] Error 1
s390-tdep.c: In function ‘s390_load’:
s390-tdep.c:1182:15: error: ‘struct target_section’ has no member named ‘bfd’
s390-tdep.c:1182:15: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
cc1: all warnings being treated as errors

You need gcc<=4.7 as otherwise you will hit:
build regression w/ --enable-targets=all && gcc-4.8+ [Re: [committed] Add structures to describe MIPS operands]
http://sourceware.org/ml/binutils/2013-07/msg00154.html
Message-ID: <20130717042139.GA2444@host2.jankratochvil.net>

Jan