aboutsummaryrefslogtreecommitdiff
path: root/bfd/libxcoff.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-18 09:57:26 +0000
committerAlan Modra <amodra@gmail.com>2001-09-18 09:57:26 +0000
commitdc810e3900d47ab2eea86d50231ff2e70b596847 (patch)
tree13fc3d267fb99c450380f08a0775b2dff076b8d7 /bfd/libxcoff.h
parent417412a27c87b0e738a21122a38d48aa35317eb8 (diff)
downloadgdb-dc810e3900d47ab2eea86d50231ff2e70b596847.zip
gdb-dc810e3900d47ab2eea86d50231ff2e70b596847.tar.gz
gdb-dc810e3900d47ab2eea86d50231ff2e70b596847.tar.bz2
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become bfd_bread and bfd_bwrite. o bfd_*alloc now all take a bfd_size_type arg, and will error if size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files or bugs in linker scripts etc. o file_ptr becomes a bfd_signed_vma. Besides matching sizes with various other types involved in handling sections, this should make it easier for bfd to support a 64 bit off_t on 32 bit hosts that provide it. o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*) generally available. They now cast their args to bfd_vma and bfd_byte * as appropriate, which removes a swag of casts from the source. o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and aout-encap.c. o Zillions of formatting and -Wconversion fixes.
Diffstat (limited to 'bfd/libxcoff.h')
-rw-r--r--bfd/libxcoff.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/bfd/libxcoff.h b/bfd/libxcoff.h
index cbc0bfc..3c2532a 100644
--- a/bfd/libxcoff.h
+++ b/bfd/libxcoff.h
@@ -28,14 +28,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
struct xcoff_backend_data_rec
{
- /*
- * COFF backend information. Must be the first field.
+ /*
+ * COFF backend information. Must be the first field.
* This is where the std coff swap table goes
*/
bfd_coff_backend_data coff;
/* Magic number */
- unsigned short _xcoff_magic_number;
+ unsigned short _xcoff_magic_number;
/* Architecture and machine for coff_set_arch_mach_hook */
enum bfd_architecture _xcoff_architecture;
@@ -50,7 +50,7 @@ struct xcoff_backend_data_rec
void (* _xcoff_swap_ldrel_out)(bfd *, const struct internal_ldrel *, PTR);
/* size of the the external struct */
- unsigned int _xcoff_ldhdrsz;
+ unsigned int _xcoff_ldhdrsz;
unsigned int _xcoff_ldsymsz;
unsigned int _xcoff_ldrelsz;
@@ -60,9 +60,9 @@ struct xcoff_backend_data_rec
/* size of the small aout file header */
unsigned int _xcoff_small_aout_header_size;
- /*
- * version
- * loader version
+ /*
+ * version
+ * loader version
* 1 : xcoff32
* 2 : xcoff64
*/
@@ -72,7 +72,7 @@ struct xcoff_backend_data_rec
struct internal_syment *,
const char *);
- boolean (* _xcoff_put_ldsymbol_name)(bfd *, struct xcoff_loader_info *,
+ boolean (* _xcoff_put_ldsymbol_name)(bfd *, struct xcoff_loader_info *,
struct internal_ldsym *,
const char *);
@@ -80,34 +80,34 @@ struct xcoff_backend_data_rec
asection * (* _xcoff_create_csect_from_smclas) (bfd *, union internal_auxent *, const char *);
- /*
- * line_no and reloc overflow
+ /*
+ * line_no and reloc overflow
* 32 overflows to another section when the line_no or reloc count go
- * over 0xffff. 64 does not overflow.
+ * over 0xffff. 64 does not overflow.
*/
boolean (*_xcoff_is_lineno_count_overflow)(bfd *, bfd_vma);
boolean (*_xcoff_is_reloc_count_overflow)(bfd *, bfd_vma);
- /*
+ /*
* .loader symbol table offset
* 32 is after the .loader header
* 64 is offset in .loader header
- *
+ *
* Similar for the reloc table
*/
bfd_vma (*_xcoff_loader_symbol_offset)(bfd *, struct internal_ldhdr *);
bfd_vma (*_xcoff_loader_reloc_offset)(bfd *, struct internal_ldhdr *);
- /*
- * Global linkage
- *
+ /*
+ * Global linkage
+ *
* The first word of global linkage code must be be modified by
- * filling in the correct TOC offset.
+ * filling in the correct TOC offset.
*/
unsigned long *_xcoff_glink_code;
- /*
+ /*
* Size of the global link code in bytes of the xcoff_glink_code table
*/
unsigned long _xcoff_glink_size;
@@ -218,19 +218,19 @@ extern boolean _bfd_xcoff_bfd_link_add_symbols
PARAMS ((bfd *, struct bfd_link_info *));
extern boolean _bfd_xcoff_bfd_final_link
PARAMS ((bfd *, struct bfd_link_info *));
-extern boolean _bfd_xcoff_slurp_symbol_table
+extern boolean _bfd_xcoff_slurp_symbol_table
PARAMS ((bfd *));
-extern long _bfd_xcoff_get_symbol_table
+extern long _bfd_xcoff_get_symbol_table
PARAMS ((bfd *, asymbol **));
-extern asymbol *_bfd_xcoff_make_empty_symbol
+extern asymbol *_bfd_xcoff_make_empty_symbol
PARAMS ((bfd *));
-extern long _bfd_xcoff_get_symbol_table_upper_bound
+extern long _bfd_xcoff_get_symbol_table_upper_bound
PARAMS ((bfd *));
-extern void _bfd_xcoff_print_symbol
+extern void _bfd_xcoff_print_symbol
PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type));
-extern void _bfd_xcoff_get_symbol_info
+extern void _bfd_xcoff_get_symbol_info
PARAMS ((bfd *, asymbol *, symbol_info *));
-extern long _bfd_xcoff_canonicalize_reloc
+extern long _bfd_xcoff_canonicalize_reloc
PARAMS((bfd *, sec_ptr, arelent **, asymbol **));
extern reloc_howto_type *_bfd_xcoff_rtype_to_howto
PARAMS ((bfd *, asection *, struct internal_reloc *,
@@ -259,7 +259,7 @@ extern boolean bfd_xcoff_size_dynamic_sections
PARAMS ((bfd *, struct bfd_link_info *, const char *, const char *,
unsigned long, unsigned long, unsigned long, boolean,
int, boolean, boolean, struct sec **));
-extern boolean xcoff_slurp_reloc_table
+extern boolean xcoff_slurp_reloc_table
PARAMS ((bfd *, asection *, asymbol **));
#endif /* LIBXCOFF_H */