From c67056970aca5cc403e8fde116512055a4beb29c Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Tue, 3 Sep 1991 20:48:27 +0000 Subject: [PATCH] *** empty log message *** --- bfd/ChangeLog | 7 +++++++ bfd/aoutx.h | 31 +++++++++++++++++++++++++++++++ bfd/configure | 30 +++++++++++++++++++++--------- bfd/configure.in | 12 ++++++------ 4 files changed, 65 insertions(+), 15 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index af5bf45ff31..9f2ea723c80 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ +Tue Sep 3 13:46:19 1991 Steve Chamberlain (steve at cygint.cygnus.com) + + * config/* aoutx.h configure* shortened all the h/tmake-xxxx to h/t-xxxx + files so that everything will work on System V. + Fri Aug 23 13:51:06 1991 John Gilmore (gnu at cygint.cygnus.com) + * aoutx.h: Add information on host-aout.c and how to configure + to use it, to the manual. * configure.in: Tix typo. * ecoff.c: If compiling for DEC3100, use trad_unix core files, else dummy out the core file support. diff --git a/bfd/aoutx.h b/bfd/aoutx.h index ebd825b2133..b6d7e418620 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -72,6 +72,37 @@ requires all the names from aout32.c, and produces the jump vector sunos_big_vec @end example +The file host-aout.c is a special case. It is for a large set of hosts +that use ``more or less standard'' a.out files, and for which cross-debugging +is not interesting. It uses the standard 32-bit a.out support routines, +but determines the file offsets and addresses of the text, data, +and BSS sections, the machine architecture and machine type, +and the entry point address, in a host-dependent manner. Once these +values have been determined, generic code is used to handle the +object file. + +When porting it to run on a new system, you must supply: + + HOST_PAGE_SIZE + HOST_SEGMENT_SIZE + HOST_MACHINE_ARCH (optional) + HOST_MACHINE_MACHINE (optional) + HOST_TEXT_START_ADDR + HOST_STACK_END_ADDR + +in the file ../include/sys/h-XXX.h (for your host). These values, plus +the structures and macros defined in on your host system, will +produce a BFD target that will access ordinary a.out files on your host. + +To configure a new machine to use host-aout.c, specify: + +TDEFINES = -DDEFAULT_VECTOR=host_aout_big_vec +TDEPFILES= host-aout.o trad-core.o + +in the config/t-XXX file, and modify configure.in to use the +t-XXX file (by setting "bfd_target=XXX") when your configuration is +selected. + */ #define KEEPIT flags diff --git a/bfd/configure b/bfd/configure index 9aa01f94436..175548bfa71 100755 --- a/bfd/configure +++ b/bfd/configure @@ -323,7 +323,7 @@ for host in ${hosts} ; do host_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` host_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` host=${host_cpu}-${host_vendor}-${host_os} - host_makefile_frag=config/hmake-${host} + host_makefile_frag=config/h-${host} #### configure.in per-host parts come in here. @@ -381,12 +381,12 @@ else esac fi -if [ ! -f config/hmake-${bfd_host} ] ; then - echo '***' BFD does not support host ${host}: no file config/hmake-${bfd_host} +if [ ! -f config/h-${bfd_host} ] ; then + echo '***' BFD does not support host ${host}: no file config/h-${bfd_host} exit 1 fi -host_makefile_frag=config/hmake-${bfd_host} +host_makefile_frag=config/h-${bfd_host} ## end of per-host part. @@ -397,7 +397,7 @@ host_makefile_frag=config/hmake-${bfd_host} target_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` target_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` target=${target_cpu}-${target_vendor}-${target_os} - target_makefile_frag=config/tmake-${target} + target_makefile_frag=config/t-${target} #### configure.in per-target parts come in here. @@ -444,12 +444,12 @@ none) ;; esac -if [ ! -f config/tmake-${bfd_target} ] ; then - echo '***' BFD does not support target ${target}: no file config/tmake-${bfd_target} +if [ ! -f config/t-${bfd_target} ] ; then + echo '***' BFD does not support target ${target}: no file config/t-${bfd_target} exit 1 fi -target_makefile_fragment=config/tmake-${bfd_target} +target_makefile_frag=config/t-${bfd_target} files= links= @@ -711,7 +711,19 @@ exit 0 # # $Log$ -# Revision 1.23 1991/08/23 04:48:43 rich +# Revision 1.25 1991/09/03 20:48:23 steve +# *** empty log message *** +# +# Revision 1.24 1991/08/23 20:55:21 gnu +# * configure.in: Tix typo. +# * ecoff.c: If compiling for DEC3100, use trad_unix core files, +# else dummy out the core file support. +# * trad-core.c (trad_unix_core_file_p): If HOST_DATA_START_ADDR is +# specified, use it to locate the data section. +# * coffcode.h (coff_write_symbols): Declare buffer as bfd_bytes +# rather than as chars (lint). +# +# Revision 1.23 1991/08/23 04:48:43 rich # Minor config polish. # # Revision 1.22 1991/08/23 03:31:43 rich diff --git a/bfd/configure.in b/bfd/configure.in index 185079b3084..3d906f9a572 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -62,12 +62,12 @@ else esac fi -if [ ! -f config/hmake-${bfd_host} ] ; then - echo '***' BFD does not support host ${host}: no file config/hmake-${bfd_host} +if [ ! -f config/h-${bfd_host} ] ; then + echo '***' BFD does not support host ${host}: no file config/h-${bfd_host} exit 1 fi -host_makefile_frag=config/hmake-${bfd_host} +host_makefile_frag=config/h-${bfd_host} # per-target: @@ -114,12 +114,12 @@ none) ;; esac -if [ ! -f config/tmake-${bfd_target} ] ; then - echo '***' BFD does not support target ${target}: no file config/tmake-${bfd_target} +if [ ! -f config/t-${bfd_target} ] ; then + echo '***' BFD does not support target ${target}: no file config/t-${bfd_target} exit 1 fi -target_makefile_fragment=config/tmake-${bfd_target} +target_makefile_frag=config/t-${bfd_target} files= links= -- 2.30.2