[PATCH 6/8] BFD: Add Elf Target Id for S12Z

Alan Modra amodra@gmail.com
Mon Jul 23 12:33:00 GMT 2018


On Mon, Jul 16, 2018 at 04:00:02PM +0200, John Darrington wrote:
> diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
> index 9453c32..d46797a 100644
> --- a/bfd/elf-bfd.h
> +++ b/bfd/elf-bfd.h
> @@ -518,6 +518,7 @@ enum elf_target_id
>    TILEGX_ELF_DATA,
>    TILEPRO_ELF_DATA,
>    RISCV_ELF_DATA,
> +  S12Z_ELF_DATA,
>    GENERIC_ELF_DATA
>  };

I don't think you need this until you start using extensions of
the ELF hash table.

> -#define ELF_TARGET_ID		0
> +#define ELF_TARGET_ID		S12Z_ELF_DATA

Instead, just leave ELF_TARGET_ID undefined.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list