* som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
unsigned int *. (som_write_space_strings): Change type of tmp_space and p to char *. (som_write_symbol_strings): Likewise. Also change type of comp to char *comp[4]. (som_begin_writing): Change type of strings_size to unsigned int. (som_finish_writing): Likewise. (som_slurp_reloc_table): Change type of external_relocs to unsigned char *. * som.h (struct som_section_data_struct): Change type of reloc_stream field to unsigned char *.
This commit is contained in:
parent
872544e5f5
commit
a96afa0f49
3 changed files with 25 additions and 11 deletions
|
@ -1,3 +1,17 @@
|
||||||
|
2005-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||||
|
|
||||||
|
* som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
|
||||||
|
unsigned int *.
|
||||||
|
(som_write_space_strings): Change type of tmp_space and p to char *.
|
||||||
|
(som_write_symbol_strings): Likewise. Also change type of comp to
|
||||||
|
char *comp[4].
|
||||||
|
(som_begin_writing): Change type of strings_size to unsigned int.
|
||||||
|
(som_finish_writing): Likewise.
|
||||||
|
(som_slurp_reloc_table): Change type of external_relocs to unsigned
|
||||||
|
char *.
|
||||||
|
* som.h (struct som_section_data_struct): Change type of reloc_stream
|
||||||
|
field to unsigned char *.
|
||||||
|
|
||||||
2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
|
2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
|
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
|
||||||
|
|
20
bfd/som.c
20
bfd/som.c
|
@ -1054,7 +1054,7 @@ som_reloc_queue_find (unsigned char *p,
|
||||||
|
|
||||||
static unsigned char *
|
static unsigned char *
|
||||||
try_prev_fixup (bfd *abfd ATTRIBUTE_UNUSED,
|
try_prev_fixup (bfd *abfd ATTRIBUTE_UNUSED,
|
||||||
int *subspace_reloc_sizep,
|
unsigned int *subspace_reloc_sizep,
|
||||||
unsigned char *p,
|
unsigned char *p,
|
||||||
unsigned int size,
|
unsigned int size,
|
||||||
struct reloc_queue *queue)
|
struct reloc_queue *queue)
|
||||||
|
@ -2958,8 +2958,8 @@ som_write_space_strings (bfd *abfd,
|
||||||
/* Chunk of memory that we can use as buffer space, then throw
|
/* Chunk of memory that we can use as buffer space, then throw
|
||||||
away. */
|
away. */
|
||||||
size_t tmp_space_size = SOM_TMP_BUFSIZE;
|
size_t tmp_space_size = SOM_TMP_BUFSIZE;
|
||||||
unsigned char *tmp_space = alloca (tmp_space_size);
|
char *tmp_space = alloca (tmp_space_size);
|
||||||
unsigned char *p = tmp_space;
|
char *p = tmp_space;
|
||||||
unsigned int strings_size = 0;
|
unsigned int strings_size = 0;
|
||||||
asection *section;
|
asection *section;
|
||||||
bfd_size_type amt;
|
bfd_size_type amt;
|
||||||
|
@ -3063,11 +3063,11 @@ som_write_symbol_strings (bfd *abfd,
|
||||||
/* Chunk of memory that we can use as buffer space, then throw
|
/* Chunk of memory that we can use as buffer space, then throw
|
||||||
away. */
|
away. */
|
||||||
size_t tmp_space_size = SOM_TMP_BUFSIZE;
|
size_t tmp_space_size = SOM_TMP_BUFSIZE;
|
||||||
unsigned char *tmp_space = alloca (tmp_space_size);
|
char *tmp_space = alloca (tmp_space_size);
|
||||||
unsigned char *p = tmp_space;
|
char *p = tmp_space;
|
||||||
|
|
||||||
unsigned int strings_size = 0;
|
unsigned int strings_size = 0;
|
||||||
unsigned char *comp[4];
|
char *comp[4];
|
||||||
bfd_size_type amt;
|
bfd_size_type amt;
|
||||||
|
|
||||||
/* This gets a bit gruesome because of the compilation unit. The
|
/* This gets a bit gruesome because of the compilation unit. The
|
||||||
|
@ -3227,7 +3227,7 @@ static bfd_boolean
|
||||||
som_begin_writing (bfd *abfd)
|
som_begin_writing (bfd *abfd)
|
||||||
{
|
{
|
||||||
unsigned long current_offset = 0;
|
unsigned long current_offset = 0;
|
||||||
int strings_size = 0;
|
unsigned int strings_size = 0;
|
||||||
unsigned long num_spaces, num_subspaces, i;
|
unsigned long num_spaces, num_subspaces, i;
|
||||||
asection *section;
|
asection *section;
|
||||||
unsigned int total_subspaces = 0;
|
unsigned int total_subspaces = 0;
|
||||||
|
@ -3576,12 +3576,12 @@ som_finish_writing (bfd *abfd)
|
||||||
{
|
{
|
||||||
int num_spaces = som_count_spaces (abfd);
|
int num_spaces = som_count_spaces (abfd);
|
||||||
asymbol **syms = bfd_get_outsymbols (abfd);
|
asymbol **syms = bfd_get_outsymbols (abfd);
|
||||||
int i, num_syms, strings_size;
|
int i, num_syms;
|
||||||
int subspace_index = 0;
|
int subspace_index = 0;
|
||||||
file_ptr location;
|
file_ptr location;
|
||||||
asection *section;
|
asection *section;
|
||||||
unsigned long current_offset;
|
unsigned long current_offset;
|
||||||
unsigned int total_reloc_size;
|
unsigned int strings_size, total_reloc_size;
|
||||||
bfd_size_type amt;
|
bfd_size_type amt;
|
||||||
|
|
||||||
/* We must set up the version identifier here as objcopy/strip copy
|
/* We must set up the version identifier here as objcopy/strip copy
|
||||||
|
@ -4842,7 +4842,7 @@ som_slurp_reloc_table (bfd *abfd,
|
||||||
asymbol **symbols,
|
asymbol **symbols,
|
||||||
bfd_boolean just_count)
|
bfd_boolean just_count)
|
||||||
{
|
{
|
||||||
char *external_relocs;
|
unsigned char *external_relocs;
|
||||||
unsigned int fixup_stream_size;
|
unsigned int fixup_stream_size;
|
||||||
arelent *internal_relocs;
|
arelent *internal_relocs;
|
||||||
unsigned int num_relocs;
|
unsigned int num_relocs;
|
||||||
|
|
|
@ -214,7 +214,7 @@ struct som_section_data_struct
|
||||||
{
|
{
|
||||||
struct som_copyable_section_data_struct *copy_data;
|
struct som_copyable_section_data_struct *copy_data;
|
||||||
unsigned int reloc_size;
|
unsigned int reloc_size;
|
||||||
char *reloc_stream;
|
unsigned char *reloc_stream;
|
||||||
struct space_dictionary_record *space_dict;
|
struct space_dictionary_record *space_dict;
|
||||||
struct som_subspace_dictionary_record *subspace_dict;
|
struct som_subspace_dictionary_record *subspace_dict;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue