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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [bfd/] [ppcboot.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 PPCbug boot records.
/* BFD back-end for PPCbug boot records.
   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006,
   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
   2007 Free Software Foundation, Inc.
   2007, 2008, 2009 Free Software Foundation, Inc.
   Written by Michael Meissner, Cygnus Support, <meissner@cygnus.com>
   Written by Michael Meissner, Cygnus Support, <meissner@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 410... Line 410...
  long entry_offset = bfd_getl_signed_32 ((PTR) tdata->header.entry_offset);
  long entry_offset = bfd_getl_signed_32 ((PTR) tdata->header.entry_offset);
  long length = bfd_getl_signed_32 ((PTR) tdata->header.length);
  long length = bfd_getl_signed_32 ((PTR) tdata->header.length);
  int i;
  int i;
 
 
  fprintf (f, _("\nppcboot header:\n"));
  fprintf (f, _("\nppcboot header:\n"));
  fprintf (f, _("Entry offset        = 0x%.8lx (%ld)\n"), entry_offset, entry_offset);
  fprintf (f, _("Entry offset        = 0x%.8lx (%ld)\n"),
  fprintf (f, _("Length              = 0x%.8lx (%ld)\n"), length, length);
           (unsigned long) entry_offset, entry_offset);
 
  fprintf (f, _("Length              = 0x%.8lx (%ld)\n"),
 
           (unsigned long) length, length);
 
 
  if (tdata->header.flags)
  if (tdata->header.flags)
    fprintf (f, _("Flag field          = 0x%.2x\n"), tdata->header.flags);
    fprintf (f, _("Flag field          = 0x%.2x\n"), tdata->header.flags);
 
 
  if (tdata->header.os_id)
  if (tdata->header.os_id)
Line 451... Line 453...
               tdata->header.partition[i].partition_end.ind,
               tdata->header.partition[i].partition_end.ind,
               tdata->header.partition[i].partition_end.head,
               tdata->header.partition[i].partition_end.head,
               tdata->header.partition[i].partition_end.sector,
               tdata->header.partition[i].partition_end.sector,
               tdata->header.partition[i].partition_end.cylinder);
               tdata->header.partition[i].partition_end.cylinder);
 
 
      fprintf (f, _("Partition[%d] sector = 0x%.8lx (%ld)\n"), i, sector_begin, sector_begin);
      fprintf (f, _("Partition[%d] sector = 0x%.8lx (%ld)\n"),
      fprintf (f, _("Partition[%d] length = 0x%.8lx (%ld)\n"), i, sector_length, sector_length);
               i, (unsigned long) sector_begin, sector_begin);
 
      fprintf (f, _("Partition[%d] length = 0x%.8lx (%ld)\n"),
 
               i, (unsigned long) sector_length, sector_length);
    }
    }
 
 
  fprintf (f, "\n");
  fprintf (f, "\n");
  return TRUE;
  return TRUE;
}
}
Line 469... Line 473...
#define ppcboot_bfd_merge_sections bfd_generic_merge_sections
#define ppcboot_bfd_merge_sections bfd_generic_merge_sections
#define ppcboot_bfd_is_group_section bfd_generic_is_group_section
#define ppcboot_bfd_is_group_section bfd_generic_is_group_section
#define ppcboot_bfd_discard_group bfd_generic_discard_group
#define ppcboot_bfd_discard_group bfd_generic_discard_group
#define ppcboot_section_already_linked \
#define ppcboot_section_already_linked \
  _bfd_generic_section_already_linked
  _bfd_generic_section_already_linked
 
#define ppcboot_bfd_define_common_symbol bfd_generic_define_common_symbol
#define ppcboot_bfd_link_hash_table_create _bfd_generic_link_hash_table_create
#define ppcboot_bfd_link_hash_table_create _bfd_generic_link_hash_table_create
#define ppcboot_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define ppcboot_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define ppcboot_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define ppcboot_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define ppcboot_bfd_link_just_syms _bfd_generic_link_just_syms
#define ppcboot_bfd_link_just_syms _bfd_generic_link_just_syms
#define ppcboot_bfd_final_link _bfd_generic_final_link
#define ppcboot_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.