* som.c (hppa_som_reloc, som_mkobject, som_is_space)

(som_is_subspace, compare_subspaces, som_compute_checksum)
(som_build_and_write_symbol_table, som_slurp_symbol_table): New
protoypes.
(hppa_som_reloc, compare_syms, compare_subspaces)
(som_print_symbol, som_get_section_contents)
(som_set_section_contents): Remove space after 'void *'.
(som_bfd_print_private_bfd_data): Use %lx to print longs.
(som_bfd_merge_private_bfd_data)
(som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
defines.
This commit is contained in:
Mark Kettenis 2005-04-17 12:45:30 +00:00
parent f17882ade0
commit 6a808a40ca
2 changed files with 43 additions and 16 deletions

View file

@ -1,3 +1,17 @@
2005-04-17 Mark Kettenis <kettenis@gnu.org>
* som.c (hppa_som_reloc, som_mkobject, som_is_space)
(som_is_subspace, compare_subspaces, som_compute_checksum)
(som_build_and_write_symbol_table, som_slurp_symbol_table): New
protoypes.
(hppa_som_reloc, compare_syms, compare_subspaces)
(som_print_symbol, som_get_section_contents)
(som_set_section_contents): Remove space after 'void *'.
(som_bfd_print_private_bfd_data): Use %lx to print longs.
(som_bfd_merge_private_bfd_data)
(som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
defines.
2004-04-15 Julian Brown <julian@codesourcery.com>
* bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.

View file

@ -38,6 +38,16 @@
#include <machine/reg.h>
#include <sys/file.h>
static bfd_reloc_status_type hppa_som_reloc
(bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
static bfd_boolean som_mkobject (bfd *);
static bfd_boolean som_is_space (asection *);
static bfd_boolean som_is_subspace (asection *);
static int compare_subspaces (const void *, const void *);
static unsigned long som_compute_checksum (bfd *);
static bfd_boolean som_build_and_write_symbol_table (bfd *);
static unsigned int som_slurp_symbol_table (bfd *);
/* Magic not defined in standard HP-UX header files until 8.0. */
#ifndef CPU_PA_RISC1_0
@ -5070,16 +5080,16 @@ som_bfd_print_private_bfd_data (bfd *abfd, void *farg)
fprintf (f, "\n");
fprintf (f, " type %#x\n", auxhdr->type);
fprintf (f, " length %#x\n", auxhdr->length);
fprintf (f, " text size %#x\n", exec_header->exec_tsize);
fprintf (f, " text memory offset %#x\n", exec_header->exec_tmem);
fprintf (f, " text file offset %#x\n", exec_header->exec_tfile);
fprintf (f, " data size %#x\n", exec_header->exec_dsize);
fprintf (f, " data memory offset %#x\n", exec_header->exec_dmem);
fprintf (f, " data file offset %#x\n", exec_header->exec_dfile);
fprintf (f, " bss size %#x\n", exec_header->exec_bsize);
fprintf (f, " entry point %#x\n", exec_header->exec_entry);
fprintf (f, " loader flags %#x\n", exec_header->exec_flags);
fprintf (f, " bss initializer %#x\n", exec_header->exec_bfill);
fprintf (f, " text size %#lx\n", exec_header->exec_tsize);
fprintf (f, " text memory offset %#lx\n", exec_header->exec_tmem);
fprintf (f, " text file offset %#lx\n", exec_header->exec_tfile);
fprintf (f, " data size %#lx\n", exec_header->exec_dsize);
fprintf (f, " data memory offset %#lx\n", exec_header->exec_dmem);
fprintf (f, " data file offset %#lx\n", exec_header->exec_dfile);
fprintf (f, " bss size %#lx\n", exec_header->exec_bsize);
fprintf (f, " entry point %#lx\n", exec_header->exec_entry);
fprintf (f, " loader flags %#lx\n", exec_header->exec_flags);
fprintf (f, " bss initializer %#lx\n", exec_header->exec_bfill);
}
return TRUE;
@ -6229,6 +6239,9 @@ som_bfd_link_split_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
#define som_bfd_is_group_section bfd_generic_is_group_section
#define som_bfd_discard_group bfd_generic_discard_group
#define som_section_already_linked _bfd_generic_section_already_linked
#define som_bfd_merge_private_bfd_data _bfd_generic_bfd_merge_private_bfd_data
#define som_bfd_copy_private_header_data _bfd_generic_bfd_copy_private_header_data
#define som_bfd_set_private_flags _bfd_generic_bfd_set_private_flags
const bfd_target som_vec =
{