From 999cc186c55b712b7d547d002fce021a93ebcb16 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 31 Oct 1995 20:32:53 +0000 Subject: [PATCH] Tue Oct 31 15:30:07 1995 David Mosberger-Tang * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and define TRAD_HEADER as hosts/alphalinux.h. * configure: Rebuild. * hosts/alphalinux.h: New file. * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma, not int. --- bfd/ChangeLog | 9 +++++++++ bfd/configure | 11 +++++++++-- bfd/configure.in | 6 +++++- bfd/hosts/.Sanitize | 1 + bfd/hosts/alphalinux.h | 6 ++++++ 5 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 bfd/hosts/alphalinux.h diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ad3b98fa669..023a37d5a0b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +Tue Oct 31 15:30:07 1995 David Mosberger-Tang + + * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and + define TRAD_HEADER as hosts/alphalinux.h. + * configure: Rebuild. + * hosts/alphalinux.h: New file. + * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma, + not int. + Tue Oct 31 12:34:11 1995 Ian Lance Taylor * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and diff --git a/bfd/configure b/bfd/configure index 401236eae1e..98454e527fc 100755 --- a/bfd/configure +++ b/bfd/configure @@ -980,7 +980,14 @@ COREFILE= COREFLAG= if test "${target}" = "${host}"; then case "${host}" in - alpha-*-*) COREFILE=osf-core.o ;; + alpha*-*-linux*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/alphalinux.h" +EOF + + ;; + alpha*-*-*) COREFILE=osf-core.o ;; arm-*-riscix) COREFILE=trad-core.o ;; hppa*-*-hpux*) COREFILE=hpux-core.o ;; hppa*-*-hiux*) COREFILE=hpux-core.o ;; @@ -1212,7 +1219,7 @@ EOF echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return 0; } diff --git a/bfd/configure.in b/bfd/configure.in index 54ba855e8b0..4ac13b7394f 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -97,7 +97,11 @@ COREFILE= COREFLAG= if test "${target}" = "${host}"; then case "${host}" in - alpha-*-*) COREFILE=osf-core.o ;; + alpha*-*-linux*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/alphalinux.h") + ;; + alpha*-*-*) COREFILE=osf-core.o ;; arm-*-riscix) COREFILE=trad-core.o ;; hppa*-*-hpux*) COREFILE=hpux-core.o ;; hppa*-*-hiux*) COREFILE=hpux-core.o ;; diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize index d3beb066945..f6ff29c9c1b 100644 --- a/bfd/hosts/.Sanitize +++ b/bfd/hosts/.Sanitize @@ -24,6 +24,7 @@ Do-first: Things-to-keep: +alphalinux.h decstation.h dpx2.h hp300bsd.h diff --git a/bfd/hosts/alphalinux.h b/bfd/hosts/alphalinux.h new file mode 100644 index 00000000000..d9ba1b7ec6b --- /dev/null +++ b/bfd/hosts/alphalinux.h @@ -0,0 +1,6 @@ +/* Linux dumps "struct task_struct" at the end of the core-file. This + structure is currently 920 bytes long, but we allow up to 1024 + bytes to allow for some future growth. */ +#define TRAD_CORE_EXTRA_SIZE_ALLOWED 1024 +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \ + ((abfd)->tdata.trad_core_data->u.signal) -- 2.30.2