summaryrefslogtreecommitdiffstats
path: root/include/coff/go32exe.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-08-10 21:56:42 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-08-10 21:56:42 +0000
commit4e9b47b8d4d03c7e38861887e91ec05136986624 (patch)
treec4c4bb5689535f625f36a4c44e307520214a03b3 /include/coff/go32exe.h
parent9043b49e63ba94adc1d3756b953ab20f4f4e1a2c (diff)
downloadcygnal-4e9b47b8d4d03c7e38861887e91ec05136986624.tar.gz
cygnal-4e9b47b8d4d03c7e38861887e91ec05136986624.tar.bz2
cygnal-4e9b47b8d4d03c7e38861887e91ec05136986624.zip
bfd/
Stop using bfd_usrdata in libbfd. * coff-stgo32.c (bfd_coff_go32stub): Remove. (stub_bytes, comment): Replace STUBSIZE by GO32_STUBSIZE. (adjust_filehdr_in_post): Declare the abfd parameter as unused. Replace STUBSIZE by GO32_STUBSIZE. Save now the stub in filehdr_dst->u.go32.stub. New comment with the reason. (adjust_filehdr_out_pre): Replace STUBSIZE by GO32_STUBSIZE. Substitute the removed macro bfd_coff_go32stub. (adjust_filehdr_out_post, adjust_scnhdr_in_post, adjust_scnhdr_out_pre) (adjust_scnhdr_out_post, adjust_aux_in_post, adjust_aux_out_pre) (adjust_aux_out_post): Replace STUBSIZE by GO32_STUBSIZE. (create_go32_stub, go32_stubbed_coff_bfd_copy_private_bfd_data): Replace STUBSIZE by GO32_STUBSIZE. Substitute the removed macro bfd_coff_go32stub. * coffcode.h (coff_mkobject_hook): Initialize coff->go32stub. * libcoff-in.h (coff_data_type): New field go32stub. * libcoff.h: Regenerated. include/coff/ Stop using bfd_usrdata in libbfd. * go32exe.h (struct external_filehdr_go32_exe <stub>, FILHSZ): Replace STUBSIZE by GO32_STUBSIZE. (STUBSIZE): Move the definition ... * internal.h (GO32_STUBSIZE): ... here and rename it. (struct internal_filehdr <go32stub>, F_GO32STUB): New.
Diffstat (limited to 'include/coff/go32exe.h')
-rw-r--r--include/coff/go32exe.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/coff/go32exe.h b/include/coff/go32exe.h
index c85da0cc3..2248ff2f4 100644
--- a/include/coff/go32exe.h
+++ b/include/coff/go32exe.h
@@ -16,11 +16,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
-#define STUBSIZE 2048
-
struct external_filehdr_go32_exe
{
- char stub[STUBSIZE];/* the stub to load the image */
+ char stub[GO32_STUBSIZE]; /* the stub to load the image */
/* the standard COFF header */
char f_magic[2]; /* magic number */
char f_nscns[2]; /* number of sections */
@@ -34,4 +32,4 @@ struct external_filehdr_go32_exe
#undef FILHDR
#define FILHDR struct external_filehdr_go32_exe
#undef FILHSZ
-#define FILHSZ STUBSIZE+20
+#define FILHSZ GO32_STUBSIZE+20