OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [bfd/] [elf32-hppa.c] - Diff between revs 148 and 161

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 148 Rev 161
Line 948... Line 948...
  unsigned int flags;
  unsigned int flags;
 
 
  i_ehdrp = elf_elfheader (abfd);
  i_ehdrp = elf_elfheader (abfd);
  if (strcmp (bfd_get_target (abfd), "elf32-hppa-linux") == 0)
  if (strcmp (bfd_get_target (abfd), "elf32-hppa-linux") == 0)
    {
    {
      /* GCC on hppa-linux produces binaries with OSABI=Linux,
      /* GCC on hppa-linux produces binaries with OSABI=GNU,
         but the kernel produces corefiles with OSABI=SysV.  */
         but the kernel produces corefiles with OSABI=SysV.  */
      if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_LINUX &&
      if (i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_GNU &&
          i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_NONE) /* aka SYSV */
          i_ehdrp->e_ident[EI_OSABI] != ELFOSABI_NONE) /* aka SYSV */
        return FALSE;
        return FALSE;
    }
    }
  else if (strcmp (bfd_get_target (abfd), "elf32-hppa-netbsd") == 0)
  else if (strcmp (bfd_get_target (abfd), "elf32-hppa-netbsd") == 0)
    {
    {
Line 4676... Line 4676...
#undef TARGET_BIG_SYM
#undef TARGET_BIG_SYM
#define TARGET_BIG_SYM          bfd_elf32_hppa_linux_vec
#define TARGET_BIG_SYM          bfd_elf32_hppa_linux_vec
#undef TARGET_BIG_NAME
#undef TARGET_BIG_NAME
#define TARGET_BIG_NAME         "elf32-hppa-linux"
#define TARGET_BIG_NAME         "elf32-hppa-linux"
#undef ELF_OSABI
#undef ELF_OSABI
#define ELF_OSABI               ELFOSABI_LINUX
#define ELF_OSABI               ELFOSABI_GNU
#undef elf32_bed
#undef elf32_bed
#define elf32_bed               elf32_hppa_linux_bed
#define elf32_bed               elf32_hppa_linux_bed
 
 
#include "elf32-target.h"
#include "elf32-target.h"
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.