OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [bfd/] [elf32-mep.c] - Diff between revs 157 and 225

Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
/* MeP-specific support for 32-bit ELF.
/* MeP-specific support for 32-bit ELF.
   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
 
 
   This file is part of BFD, the Binary File Descriptor library.
   This file is part of BFD, the Binary File Descriptor library.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
Line 682... Line 682...
/* This will be edited by the MeP configration tool.  */
/* This will be edited by the MeP configration tool.  */
static const char * config_names[] =
static const char * config_names[] =
{
{
  "basic"
  "basic"
  /* start-mepcfgtool */
  /* start-mepcfgtool */
  ,"simple"
  ,"default"
  ,"fmax"
 
  /* end-mepcfgtool */
  /* end-mepcfgtool */
};
};
 
 
static const char * core_names[] =
static const char * core_names[] =
{
{
Line 704... Line 703...
 
 
  /* Print normal ELF private data.  */
  /* Print normal ELF private data.  */
  _bfd_elf_print_private_bfd_data (abfd, ptr);
  _bfd_elf_print_private_bfd_data (abfd, ptr);
 
 
  flags = elf_elfheader (abfd)->e_flags;
  flags = elf_elfheader (abfd)->e_flags;
  fprintf (file, _("private flags = 0x%lx"), (long)flags);
  fprintf (file, _("private flags = 0x%lx"), (unsigned long) flags);
 
 
  partial_flags = (flags & EF_MEP_CPU_MASK) >> 24;
  partial_flags = (flags & EF_MEP_CPU_MASK) >> 24;
  if (partial_flags < ARRAY_SIZE (core_names))
  if (partial_flags < ARRAY_SIZE (core_names))
    fprintf (file, "  core: %s", core_names[(long)partial_flags]);
    fprintf (file, "  core: %s", core_names[(long)partial_flags]);
 
 
Line 730... Line 729...
    {
    {
    default: break;
    default: break;
    case EF_MEP_CPU_C2: return bfd_mach_mep;
    case EF_MEP_CPU_C2: return bfd_mach_mep;
    case EF_MEP_CPU_C3: return bfd_mach_mep;
    case EF_MEP_CPU_C3: return bfd_mach_mep;
    case EF_MEP_CPU_C4: return bfd_mach_mep;
    case EF_MEP_CPU_C4: return bfd_mach_mep;
 
    case EF_MEP_CPU_C5: return bfd_mach_mep_c5;
    case EF_MEP_CPU_H1: return bfd_mach_mep_h1;
    case EF_MEP_CPU_H1: return bfd_mach_mep_h1;
    }
    }
 
 
  return bfd_mach_mep;
  return bfd_mach_mep;
}
}

powered by: WebSVN 2.1.0

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