From 77d112846632e45f800d6203365c9435e734083a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 4 May 1994 19:37:36 +0000 Subject: For PR 1927. Changed m68k-aout to set flags to 0; m68k-sunos still uses 1. * aout0.c: New file. * targets.c (aout0_big_vec): Declare. (bfd_target_vector): Add aout0_big_vec. * config.bfd (m68*-*-aout*): Use m68k-0aout, not m68k-aout. * config/m68k-aout.mt (SELECT_VECS): Removed. * config/m68k-0aout.mt: New file. * configure.in (aout0_big_vec): New target vector: use aout0.o, aout32.o and stab-syms.o. * Makefile.in: Rebuilt dependencies. (BFD32_BACKENDS): Add aout0.o. (CFILES): Add aout0.c. * libaout.h (struct aout_backend_data): Add field exec_hdr_flags. * aout-target.h (MY_exec_hdr_flags): If not defined, define as 0. MY(backend_data): Initialize exec_hdr_flags field. * aoutf1.h (sunos_32_set_arch_mach): Make static. (aout32_sunos4_write_object_contents): Set flags from backend info. (MY_exec_hdr_flags): If not defined, define as 1. (sunos4_aout_backend): Initialize exec_hdr_flags field. * aout-encap.c (encap_write_object_contents): Set flags from backend info. (MY_exec_hdr_flags): Define as N_FLAGS_COFF_ENCAPSULATE. * hp300hpux.c (MY_exec_hdr_flags): Define as 0x2. (MY(write_object_contents)): Set flags from backend info. * i386aout.c (MY(backend_data)): Initialize exec_hdr_flags field. * i386mach3.c (MY(backend_data)): Likewise. * mipsbsd.c (MY(backend_data)): Likewise. * sparclynx.c (NAME(aout,sparclynx_write_object_contents)): Set flags from backend info. (sparclynx_aout_backend): Initialize exec_hdr_flags field. --- bfd/aout-encap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/aout-encap.c') diff --git a/bfd/aout-encap.c b/bfd/aout-encap.c index dff9f74..56c1936 100644 --- a/bfd/aout-encap.c +++ b/bfd/aout-encap.c @@ -148,7 +148,7 @@ int need_coff_header; { need_coff_header = 1; /* set this flag now, since it will change the values of N_TXTOFF, etc */ - N_SET_FLAGS (outheader, N_FLAGS_COFF_ENCAPSULATE); + N_SET_FLAGS (outheader, aout_backend_info (abfd)->exec_hdr_flags); text_size += sizeof (struct coffheader); } #endif @@ -232,5 +232,6 @@ int need_coff_header; #define MY_write_object_content encap_write_object_contents #define MY_object_p encap_object_p +#define MY_exec_hdr_flags N_FLAGS_COFF_ENCAPSULATE #include "aout-target.h" -- cgit v1.1