diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-02-27 19:31:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-02-27 19:31:29 +0000 |
commit | 55626bf0869ae0199da7a57613912e46cf839c9f (patch) | |
tree | 423fece67f164d3d52af783424647d9eace4f949 /bfd | |
parent | 6c7b309055066861281ffdb0b8e7d64d5227257f (diff) | |
download | gdb-55626bf0869ae0199da7a57613912e46cf839c9f.zip gdb-55626bf0869ae0199da7a57613912e46cf839c9f.tar.gz gdb-55626bf0869ae0199da7a57613912e46cf839c9f.tar.bz2 |
Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68klinux.c: New file.
* hosts/m68klinux.h: New file.
* config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
* configure.in (m68*-*-linux*): New native host.
(m68klinux_vec): New vector.
* configure: Rebuild.
* targets.c (m68klinux_vec): Declare.
* i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
* bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
declaration from bfd_linux_size_dynamic_sections.
(bfd_m68klinux_size_dynamic_sections): Declare.
* bfd-in2.h: Rebuild.
* Makefile.in: Rebuild dependencies.
(BFD32_BACKENDS): Add m68klinux.o.
(BFD32_BACKENDS_CFILES): Add m68klinux.c.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/.Sanitize | 1 | ||||
-rw-r--r-- | bfd/ChangeLog | 19 | ||||
-rwxr-xr-x | bfd/configure | 24 | ||||
-rw-r--r-- | bfd/configure.in | 24 | ||||
-rw-r--r-- | bfd/hosts/.Sanitize | 1 | ||||
-rw-r--r-- | bfd/hosts/m68klinux.h | 6 |
6 files changed, 55 insertions, 20 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize index a03d7ac..262ae7a 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -195,6 +195,7 @@ liboasys.h linker.c lynx-core.c m68k4knetbsd.c +m68klinux.c m68klynx.c m68knetbsd.c m88kmach3.c diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f587f19..20632f9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,22 @@ +Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> + + * m68klinux.c: New file. + * hosts/m68klinux.h: New file. + * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets. + * configure.in (m68*-*-linux*): New native host. + (m68klinux_vec): New vector. + * configure: Rebuild. + * targets.c (m68klinux_vec): Declare. + * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from + bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c. + * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename + declaration from bfd_linux_size_dynamic_sections. + (bfd_m68klinux_size_dynamic_sections): Declare. + * bfd-in2.h: Rebuild. + * Makefile.in: Rebuild dependencies. + (BFD32_BACKENDS): Add m68klinux.o. + (BFD32_BACKENDS_CFILES): Add m68klinux.c. + Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com) * libhppa.h (pa_arch): Add pa20. diff --git a/bfd/configure b/bfd/configure index be3d0b1..7aeefe4 100755 --- a/bfd/configure +++ b/bfd/configure @@ -727,9 +727,6 @@ if test "${shared}" = "true"; then fi fi -# Permit host specific settings. -. ${srcdir}/configure.host - # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 @@ -806,6 +803,9 @@ else fi +# Permit host specific settings. +. ${srcdir}/configure.host + # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 @@ -1170,7 +1170,7 @@ done case "${host}" in -i[345]86-*-msdos* | i[345]86-*-go32* | i[345]86-*-win32) +i[345]86-*-msdos* | i[345]86-*-go32* | *-*-cygwin32) cat >> confdefs.h <<\EOF #define USE_BINARY_FOPEN 1 EOF @@ -1401,6 +1401,13 @@ EOF EOF ;; + m68*-*-linux*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/m68klinux.h" +EOF + + ;; m68*-motorola-sysv*) COREFILE=trad-core.o cat >> confdefs.h <<\EOF @@ -1502,7 +1509,7 @@ EOF echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1506 "configure" +#line 1513 "configure" #include "confdefs.h" #include <sys/procfs.h> int main() { return 0; } @@ -1677,6 +1684,7 @@ do ieee_vec) tb="$tb ieee.o" ;; m68kcoff_vec) tb="$tb coff-m68k.o cofflink.o" ;; m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o cofflink.o" ;; + m68klinux_vec) tb="$tb m68klinux.o aout32.o stab-syms.o" ;; m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;; m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;; m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;; @@ -1789,7 +1797,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1793 "configure" +#line 1801 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1841,7 +1849,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <<EOF -#line 1845 "configure" +#line 1853 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. */ @@ -1935,7 +1943,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1939 "configure" +#line 1947 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ diff --git a/bfd/configure.in b/bfd/configure.in index f18017b..2ab9cb5 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -71,11 +71,11 @@ changequote([,])dnl fi fi +AC_PROG_CC + # Permit host specific settings. . ${srcdir}/configure.host -AC_PROG_CC -AC_SUBST(CFLAGS) AC_SUBST(HDEFINES) AC_CHECK_PROG(AR, ar, ar, :) AC_PROG_RANLIB @@ -160,8 +160,7 @@ changequote([,])dnl changequote(,)dnl i[345]86-*-netbsd*) changequote([,])dnl - COREFILE=trad-core.o - AC_DEFINE(TRAD_HEADER,"hosts/i386nbsd.h") + COREFILE=netbsd-core.o ;; changequote(,)dnl i[345]86-esix-sysv3*) @@ -204,8 +203,7 @@ changequote([,])dnl AC_DEFINE(TRAD_HEADER,"hosts/mipsmach3.h") ;; mips-*-netbsd*) - COREFILE=trad-core.o - AC_DEFINE(TRAD_HEADER,"hosts/mipsnbsd.h") + COREFILE=netbsd-core.o ;; mips-dec-*) COREFILE=trad-core.o @@ -235,6 +233,10 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/hp300bsd.h") ;; + m68*-*-linux*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/m68klinux.h") + ;; m68*-motorola-sysv*) COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER, "hosts/delta68.h") @@ -244,8 +246,7 @@ changequote([,])dnl AC_DEFINE(TRAD_HEADER,"hosts/news.h") ;; m68*-*-netbsd*) - COREFILE=trad-core.o - AC_DEFINE(TRAD_HEADER,"hosts/m68knbsd.h") + COREFILE=netbsd-core.o ;; m68*-apple-aux*) COREFILE=trad-core.o @@ -262,8 +263,7 @@ changequote([,])dnl AC_DEFINE(TRAD_HEADER,"hosts/pc532mach.h") ;; ns32k-*-netbsd*) - COREFILE=trad-core.o - AC_DEFINE(TRAD_HEADER,"hosts/ns32knbsd.h") + COREFILE=netbsd-core.o ;; rs6000-*-lynx*) COREFILE=lynx-core.o ;; rs6000-*-aix4*) COREFILE=rs6000-core.o ;; @@ -271,8 +271,7 @@ changequote([,])dnl powerpc-*-aix4*) COREFILE=rs6000-core.o ;; powerpc-*-aix*) COREFILE=rs6000-core.o ;; sparc-*-netbsd*) - COREFILE=trad-core.o - AC_DEFINE(TRAD_HEADER,"hosts/sparcnbsd.h") + COREFILE=netbsd-core.o ;; tahoe-*-*) COREFILE=trad-core.o @@ -465,6 +464,7 @@ do ieee_vec) tb="$tb ieee.o" ;; m68kcoff_vec) tb="$tb coff-m68k.o cofflink.o" ;; m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o cofflink.o" ;; + m68klinux_vec) tb="$tb m68klinux.o aout32.o stab-syms.o" ;; m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;; m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;; m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;; diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize index cc68c8c..7f47671 100644 --- a/bfd/hosts/.Sanitize +++ b/bfd/hosts/.Sanitize @@ -35,6 +35,7 @@ i386mach3.h i386sco.h i860mach3.h m68kaux.h +m68klinux.h m88kmach3.h mipsbsd.h mipsmach3.h diff --git a/bfd/hosts/m68klinux.h b/bfd/hosts/m68klinux.h new file mode 100644 index 0000000..0067dfa --- /dev/null +++ b/bfd/hosts/m68klinux.h @@ -0,0 +1,6 @@ +/* Linux dumps "struct task_struct" at the end of the core-file. This + structure is currently 2512 bytes long, but we allow up to 4096 + bytes to allow for some future growth. */ +#define TRAD_CORE_EXTRA_SIZE_ALLOWED 4096 +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \ + ((abfd)->tdata.trad_core_data->u.signal) |