From 44fd66228a251a2f66fab7a7412b248d2b6b929a Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 2 Mar 1994 19:59:03 +0000 Subject: * som.c (hppa_som_gen_reloc_type): Use correct enum type for field parameter. (bfd_som_set_section_attributes): Use unsigned int rather than unsigned char to avoid GNU-C extensions. (bfd_som_attach_aux_hdr): Return a boolean to indicate success or failure rather than aborting on failure. * som.h (bfd_som_set_section_attributes): Fix prototype to match som.c changes. (bfd_som_attach_aux_hdr): Add prototype. (hppa_som-gen_reloc_type): Likewise. * elf32-hppa.c: Add a couple casts to make HP compiler happy. (hppa_look_for_stubs_in_section): Do not return false on failure until rest of code is ready to handle it. Abort for now. --- bfd/som.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bfd/som.h') diff --git a/bfd/som.h b/bfd/som.h index 5a7c92d..0055480 100644 --- a/bfd/som.h +++ b/bfd/som.h @@ -135,7 +135,7 @@ struct som_section_data_struct #define som_section_data(sec) \ ((struct som_section_data_struct *)sec->used_by_bfd) #define som_symbol_data(symbol) \ - (((som_symbol_type **) symbol->udata)) + ((som_symbol_type *) symbol) /* Defines groups of basic relocations. FIXME: These should @@ -160,10 +160,12 @@ struct som_section_data_struct /* Exported functions, mostly for use by GAS. */ void bfd_som_set_section_attributes PARAMS ((asection *, int, int, - unsigned char, int)); + unsigned int, int)); void bfd_som_set_subsection_attributes PARAMS ((asection *, asection *, int, unsigned int, int)); void bfd_som_set_symbol_type PARAMS ((asymbol *, unsigned int)); void bfd_som_attach_unwind_info PARAMS ((asymbol *, char *)); - +boolean bfd_som_attach_aux_hdr PARAMS ((bfd *, int, char *)); +int ** hppa_som_gen_reloc_type + PARAMS ((bfd *, int, int, enum hppa_reloc_field_selector_type_alt)); #endif /* _SOM_H */ -- cgit v1.1