diff options
author | Steve Chamberlain <sac@cygnus> | 1995-09-12 19:28:30 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-09-12 19:28:30 +0000 |
commit | beee31b1a2bb292732d7944ab9c3fa3e10769864 (patch) | |
tree | 82715419e28da48d4923e207ab74a1793b192be2 /bfd/libcoff.h | |
parent | 5aa4c3ffda161ee77f273912f5e9bbfe2ef11e55 (diff) | |
download | gdb-beee31b1a2bb292732d7944ab9c3fa3e10769864.zip gdb-beee31b1a2bb292732d7944ab9c3fa3e10769864.tar.gz gdb-beee31b1a2bb292732d7944ab9c3fa3e10769864.tar.bz2 |
Thu Sep 7 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
* coffcode.h (coff_compute_section_file_positions): Keep the
raw size safe.
(coff_write_object_contents): Remember if it's a relocatable
file.
* libcoff-in.h (pe_data_type): New member 'has_reloc_section'
* peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
if relocatable file. Swap out saved raw size.
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r-- | bfd/libcoff.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h index ccd4221..7053852 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -82,9 +82,22 @@ typedef struct coff_tdata int pe; /* Used by the COFF backend linker. */ struct coff_link_hash_entry **sym_hashes; + struct bfd_link_info *link_info; } coff_data_type; +/* Tdata for pe image files. */ +typedef struct pe_tdata +{ + coff_data_type coff; + struct internal_extra_pe_aouthdr pe_opthdr; + int dll; + int has_reloc_section; +} pe_data_type; + +#define pe_data(bfd) ((bfd)->tdata.pe_obj_data) + + /* We take the address of the first element of a asymbol to ensure that the * macro is only ever applied to an asymbol. */ #define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd))) |