diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-08-15 16:26:06 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-08-15 16:26:06 +0000 |
commit | e8fbe6d9249ba4c01d42e7c1d20bd5b9e7091e66 (patch) | |
tree | 078b6b973cd1cc079597f57c724841585c332205 /bfd/libcoff.h | |
parent | 7de5c5e275a6eedce5a17fa8c6ee619ccf0df951 (diff) | |
download | gdb-e8fbe6d9249ba4c01d42e7c1d20bd5b9e7091e66.zip gdb-e8fbe6d9249ba4c01d42e7c1d20bd5b9e7091e66.tar.gz gdb-e8fbe6d9249ba4c01d42e7c1d20bd5b9e7091e66.tar.bz2 |
* coffcode.h (styp_to_sec_flags): Add name argument. If no flags
are recognized, chose section flags based on the name.
(bfd_coff_backend_data): _bfd_styp_to_sec_flags_hook field: Add
name argument.
(bfd_coff_styp_to_sec_flags_hook): Add name argument.
(coff_compute_section_file_positions): Don't adjust the section
position by COFF_PAGE_SIZE unless SEC_ALLOC is set.
* libcoff.h: Rebuilt.
* coffgen.c (make_a_section_from_file): Pass section name to
bfd_coff_styp_to_sec_flags_hook.
* ecoff.c (_bfd_ecoff_styp_to_sec_flags): Add unused name
argument.
* libecoff.h (_bfd_ecoff_styp_to_sec_flags): Add name argument to
prototype.
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r-- | bfd/libcoff.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h index 83d5468..0ffb49f 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -75,7 +75,7 @@ typedef struct coff_tdata #define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd))) /* Functions in coffgen.c. */ -extern bfd_target *coff_object_p PARAMS ((bfd *)); +extern const bfd_target *coff_object_p PARAMS ((bfd *)); extern struct sec *coff_section_from_bfd_index PARAMS ((bfd *, int)); extern long coff_get_symtab_upper_bound PARAMS ((bfd *)); extern long coff_get_symtab PARAMS ((bfd *, asymbol **)); @@ -83,7 +83,7 @@ extern int coff_count_linenumbers PARAMS ((bfd *)); extern struct coff_symbol_struct *coff_symbol_from PARAMS ((bfd *, asymbol *)); extern boolean coff_renumber_symbols PARAMS ((bfd *)); extern void coff_mangle_symbols PARAMS ((bfd *)); -extern void coff_write_symbols PARAMS ((bfd *)); +extern boolean coff_write_symbols PARAMS ((bfd *)); extern boolean coff_write_linenumbers PARAMS ((bfd *)); extern alent *coff_get_lineno PARAMS ((bfd *, asymbol *)); extern asymbol *coff_section_symbol PARAMS ((bfd *, char *)); @@ -258,7 +258,8 @@ typedef struct PTR internal_aouthdr)); flagword (*_bfd_styp_to_sec_flags_hook) PARAMS (( bfd *abfd, - PTR internal_scnhdr)); + PTR internal_scnhdr, + const char *name)); asection *(*_bfd_make_section_hook) PARAMS (( bfd *abfd, char *name)); @@ -344,8 +345,8 @@ typedef struct #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\ ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook) (abfd, filehdr, aouthdr)) -#define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr)\ - ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook) (abfd, scnhdr)) +#define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name)\ + ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook) (abfd, scnhdr, name)) #define bfd_coff_make_section_hook(abfd, name)\ ((coff_backend_info (abfd)->_bfd_make_section_hook) (abfd, name)) |