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

Subversion Repositories openrisc_me

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

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

Rev 157 Rev 225
Line 1... Line 1...
/* PEF support for BFD.
/* PEF support for BFD.
   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
   Copyright 1999, 2000, 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 50... Line 50...
#define bfd_pef_bfd_gc_sections                     bfd_generic_gc_sections
#define bfd_pef_bfd_gc_sections                     bfd_generic_gc_sections
#define bfd_pef_bfd_merge_sections                  bfd_generic_merge_sections
#define bfd_pef_bfd_merge_sections                  bfd_generic_merge_sections
#define bfd_pef_bfd_is_group_section                bfd_generic_is_group_section
#define bfd_pef_bfd_is_group_section                bfd_generic_is_group_section
#define bfd_pef_bfd_discard_group                   bfd_generic_discard_group
#define bfd_pef_bfd_discard_group                   bfd_generic_discard_group
#define bfd_pef_section_already_linked              _bfd_generic_section_already_linked
#define bfd_pef_section_already_linked              _bfd_generic_section_already_linked
 
#define bfd_pef_bfd_define_common_symbol            bfd_generic_define_common_symbol
#define bfd_pef_bfd_link_hash_table_create          _bfd_generic_link_hash_table_create
#define bfd_pef_bfd_link_hash_table_create          _bfd_generic_link_hash_table_create
#define bfd_pef_bfd_link_hash_table_free            _bfd_generic_link_hash_table_free
#define bfd_pef_bfd_link_hash_table_free            _bfd_generic_link_hash_table_free
#define bfd_pef_bfd_link_add_symbols                _bfd_generic_link_add_symbols
#define bfd_pef_bfd_link_add_symbols                _bfd_generic_link_add_symbols
#define bfd_pef_bfd_link_just_syms                  _bfd_generic_link_just_syms
#define bfd_pef_bfd_link_just_syms                  _bfd_generic_link_just_syms
#define bfd_pef_bfd_final_link                      _bfd_generic_final_link
#define bfd_pef_bfd_final_link                      _bfd_generic_final_link
Line 95... Line 96...
    return -1;
    return -1;
 
 
  if (! (table.flags2 & TB_NAME_PRESENT))
  if (! (table.flags2 & TB_NAME_PRESENT))
    return -1;
    return -1;
 
 
  if (! table.flags1 & TB_HAS_TBOFF)
  if (! (table.flags1 & TB_HAS_TBOFF))
    return -1;
    return -1;
 
 
  offset = 8;
  offset = 8;
 
 
  if ((table.flags5 & TB_FLOATPARAMS) || (table.fixedparams))
  if ((table.flags5 & TB_FLOATPARAMS) || (table.fixedparams))
Line 184... Line 185...
 
 
  if (table.flags4 & TB_HAS_VEC_INFO)
  if (table.flags4 & TB_HAS_VEC_INFO)
    offset += 4;
    offset += 4;
 
 
  if (file != NULL)
  if (file != NULL)
    fprintf (file, " [length = 0x%lx]", (long) offset);
    fprintf (file, " [length = 0x%lx]", (unsigned long) offset);
 
 
  return offset;
  return offset;
}
}
 
 
static void
static void
Line 358... Line 359...
  unsigned long value;
  unsigned long value;
 
 
  BFD_ASSERT (len == 4);
  BFD_ASSERT (len == 4);
 
 
  value = bfd_getb32 (buf);
  value = bfd_getb32 (buf);
  symbol->class = value >> 24;
  symbol->symbol_class = value >> 24;
  symbol->name = value & 0x00ffffff;
  symbol->name = value & 0x00ffffff;
 
 
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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