[patch] bfd/elfxx-target.h and rx: multi-targets ?

Alan Modra amodra@gmail.com
Thu Jun 2 00:34:00 GMT 2011


On Wed, Jun 01, 2011 at 06:19:18PM -0400, DJ Delorie wrote:
> +/* It is possible for a target to include this header twice, providing
> +   it's careful about the differences between the two inclusions, as
> +   long as we only define this static variable once.  See elf32-rx.c
> +   for an example.  */
> +#ifndef ELFNN_BED_DEFINED
> +#define ELFNN_BED_DEFINED 1

Not OK.  Many targets include elfxx-target.h multiple times, and want
a different elfnn_bed for each inclusion.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list