This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]