gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / bfd / som.h
index c456abe100d485e4079928648a00a98789fe161b..bf983c124657d539d77c8b4f82770e6afa451c8c 100644 (file)
--- a/bfd/som.h
+++ b/bfd/som.h
@@ -1,6 +1,5 @@
 /* HP PA-RISC SOM object file format:  definitions internal to BFD.
-   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001,
-   2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+   Copyright (C) 1990-2020 Free Software Foundation, Inc.
 
    Contributed by the Center for Software Science at the
    University of Utah (pa-gdb-bugs@cs.utah.edu).
 #include <dl.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if defined (HOST_HPPABSD) || defined (HOST_HPPAOSF)
 /* BSD uses a completely different scheme for object file identification.
    so for now, define _PA_RISC_ID to accept any random value for a model
@@ -63,7 +66,7 @@ typedef struct som_symbol
       unsigned int hppa_arg_reloc;
       unsigned int hppa_priv_level;
     } ap;
-    PTR any;
+    void * any;
   }
   tc_data;
 
@@ -202,7 +205,7 @@ struct som_section_data_struct
 #define obj_som_stringtab_size(bfd)    (somdata (bfd).stringtab_size)
 #define obj_som_reloc_filepos(bfd)     (somdata (bfd).reloc_filepos)
 #define obj_som_sorted_syms(bfd)       (somdata (bfd).sorted_syms)
-#define som_section_data(sec)      ((struct som_section_data_struct *) sec->used_by_bfd)
+#define som_section_data(sec)          ((struct som_section_data_struct *) sec->used_by_bfd)
 #define som_symbol_data(symbol)                ((som_symbol_type *) symbol)
 
 /* Defines groups of basic relocations.  FIXME:  These should
@@ -230,9 +233,13 @@ struct som_section_data_struct
 /* Exported functions, mostly for use by GAS.  */
 bfd_boolean  bfd_som_set_section_attributes    (asection *, int, int, unsigned int, int);
 bfd_boolean  bfd_som_set_subsection_attributes (asection *, asection *, int, unsigned int, int, int, int, int);
-void         bfd_som_set_symbol_type           (asymbol *, unsigned int);
-bfd_boolean  bfd_som_attach_aux_hdr            (bfd *, int, char *);
-int **       hppa_som_gen_reloc_type           (bfd *, int, int, enum hppa_reloc_field_selector_type_alt, int, asymbol *);
+void        bfd_som_set_symbol_type           (asymbol *, unsigned int);
+bfd_boolean  bfd_som_attach_aux_hdr           (bfd *, int, char *);
+int **      hppa_som_gen_reloc_type           (bfd *, int, int, enum hppa_reloc_field_selector_type_alt, int, asymbol *);
 bfd_boolean  bfd_som_attach_compilation_unit   (bfd *, const char *, const char *, const char *, const char *);
+asection *   bfd_section_from_som_symbol       (bfd *abfd, struct som_external_symbol_dictionary_record *symbol);
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* _SOM_H */
This page took 0.023804 seconds and 4 git commands to generate.