[PATCH] Fix LTO handling of ELFOSABI_NONE vs. ELFOSABI_LINUX objects

Diego Novillo dnovillo@google.com
Wed Jul 7 18:18:00 GMT 2010


On Wed, Jul 7, 2010 at 18:11, Jakub Jelinek <jakub@redhat.com> wrote:

> 2010-07-07  Jakub Jelinek  <jakub@redhat.com>
>
>        * lto-elf.c (ELFOSABI_NONE, ELFOSABI_LINUX): Define if not defined.
>        (validate_file): Allow merging of ELFOSABI_NONE with ELFOSABI_LINUX
>        objects.

OK with

> +  else
> +    {
> +      char elf_ident_buf[EI_NIDENT];
> +
> +      memcpy (elf_ident_buf, elf_ident,
> +             sizeof elf_ident_buf);

Can be merged into one line.


Diego.



More information about the Gcc-patches mailing list