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/] [binary.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...
/* BFD back-end for binary objects.
/* BFD back-end for binary objects.
   Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
   Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
   2004, 2005, 2006, 2007 Free Software Foundation, Inc.
   2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
   Written by Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>
   Written by Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>
 
 
   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 141... Line 141...
 
 
  size = (strlen (bfd_get_filename (abfd))
  size = (strlen (bfd_get_filename (abfd))
          + strlen (suffix)
          + strlen (suffix)
          + sizeof "_binary__");
          + sizeof "_binary__");
 
 
  buf = bfd_alloc (abfd, size);
  buf = (char *) bfd_alloc (abfd, size);
  if (buf == NULL)
  if (buf == NULL)
    return "";
    return "";
 
 
  sprintf (buf, "_binary_%s_%s", bfd_get_filename (abfd), suffix);
  sprintf (buf, "_binary_%s_%s", bfd_get_filename (abfd), suffix);
 
 
Line 165... Line 165...
  asection *sec = (asection *) abfd->tdata.any;
  asection *sec = (asection *) abfd->tdata.any;
  asymbol *syms;
  asymbol *syms;
  unsigned int i;
  unsigned int i;
  bfd_size_type amt = BIN_SYMS * sizeof (asymbol);
  bfd_size_type amt = BIN_SYMS * sizeof (asymbol);
 
 
  syms = bfd_alloc (abfd, amt);
  syms = (asymbol *) bfd_alloc (abfd, amt);
  if (syms == NULL)
  if (syms == NULL)
    return -1;
    return -1;
 
 
  /* Start symbol.  */
  /* Start symbol.  */
  syms[0].the_bfd = abfd;
  syms[0].the_bfd = abfd;
Line 314... Line 314...
#define binary_bfd_gc_sections                     bfd_generic_gc_sections
#define binary_bfd_gc_sections                     bfd_generic_gc_sections
#define binary_bfd_merge_sections                  bfd_generic_merge_sections
#define binary_bfd_merge_sections                  bfd_generic_merge_sections
#define binary_bfd_is_group_section                bfd_generic_is_group_section
#define binary_bfd_is_group_section                bfd_generic_is_group_section
#define binary_bfd_discard_group                   bfd_generic_discard_group
#define binary_bfd_discard_group                   bfd_generic_discard_group
#define binary_section_already_linked             _bfd_generic_section_already_linked
#define binary_section_already_linked             _bfd_generic_section_already_linked
 
#define binary_bfd_define_common_symbol            bfd_generic_define_common_symbol
#define binary_bfd_link_hash_table_create         _bfd_generic_link_hash_table_create
#define binary_bfd_link_hash_table_create         _bfd_generic_link_hash_table_create
#define binary_bfd_link_hash_table_free           _bfd_generic_link_hash_table_free
#define binary_bfd_link_hash_table_free           _bfd_generic_link_hash_table_free
#define binary_bfd_link_just_syms                 _bfd_generic_link_just_syms
#define binary_bfd_link_just_syms                 _bfd_generic_link_just_syms
#define binary_bfd_link_add_symbols               _bfd_generic_link_add_symbols
#define binary_bfd_link_add_symbols               _bfd_generic_link_add_symbols
#define binary_bfd_final_link                     _bfd_generic_final_link
#define binary_bfd_final_link                     _bfd_generic_final_link

powered by: WebSVN 2.1.0

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