aboutsummaryrefslogtreecommitdiff
path: root/bfd/som.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-03-02 19:59:03 +0000
committerJeff Law <law@redhat.com>1994-03-02 19:59:03 +0000
commit44fd66228a251a2f66fab7a7412b248d2b6b929a (patch)
treeac8c1c046542ebc254395e7e35665c564b9234bd /bfd/som.h
parent3c5d10c8dfbe06ac621c1807e2944f751c8f2f18 (diff)
downloadgdb-44fd66228a251a2f66fab7a7412b248d2b6b929a.zip
gdb-44fd66228a251a2f66fab7a7412b248d2b6b929a.tar.gz
gdb-44fd66228a251a2f66fab7a7412b248d2b6b929a.tar.bz2
* 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.
Diffstat (limited to 'bfd/som.h')
-rw-r--r--bfd/som.h8
1 files changed, 5 insertions, 3 deletions
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 */