Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/bfd Put back the a.out netbsd an...



details:   https://anonhg.NetBSD.org/src/rev/96a0f486877f
branches:  trunk
changeset: 937087:96a0f486877f
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 08 19:26:09 2020 +0000

description:
Put back the a.out netbsd and bsd vector. They are useful for debugging
old a.out binaries and take ~0 space.

diffstat:

 external/gpl3/binutils/dist/bfd/config.bfd   |   4 +-
 external/gpl3/binutils/dist/bfd/configure    |   1 +
 external/gpl3/binutils/dist/bfd/configure.ac |   1 +
 external/gpl3/binutils/dist/bfd/i386netbsd.c |  38 ++++++++++++++++++++++++++++
 external/gpl3/binutils/dist/bfd/targets.c    |   1 +
 5 files changed, 43 insertions(+), 2 deletions(-)

diffs (96 lines):

diff -r 62fccf412e18 -r 96a0f486877f external/gpl3/binutils/dist/bfd/config.bfd
--- a/external/gpl3/binutils/dist/bfd/config.bfd        Sat Aug 08 19:13:39 2020 +0000
+++ b/external/gpl3/binutils/dist/bfd/config.bfd        Sat Aug 08 19:26:09 2020 +0000
@@ -622,7 +622,7 @@
     ;;
   i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
     targ_defvec=i386_elf32_vec
-    targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec"
+    targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec i386_aout_bsd_vec i386_aout_nbsd_vec"
     targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec x86_64_pei_vec"
     ;;
   i[3-7]86-*-netbsdpe*)
@@ -686,7 +686,7 @@
     ;;
   x86_64-*-netbsd* | x86_64-*-openbsd*)
     targ_defvec=x86_64_elf64_vec
-    targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
+    targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec i386_aout_bsd_vec i386_aout_nbsd_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
     want64=true
     ;;
   x86_64-*-linux-*)
diff -r 62fccf412e18 -r 96a0f486877f external/gpl3/binutils/dist/bfd/configure
--- a/external/gpl3/binutils/dist/bfd/configure Sat Aug 08 19:13:39 2020 +0000
+++ b/external/gpl3/binutils/dist/bfd/configure Sat Aug 08 19:26:09 2020 +0000
@@ -14752,6 +14752,7 @@
     i386_aout_vec)              tb="$tb i386aout.lo aout32.lo" ;;
     i386_aout_bsd_vec)          tb="$tb i386bsd.lo aout32.lo" ;;
     i386_aout_lynx_vec)                 tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
+    i386_aout_nbsd_vec)                 tb="$tb i386netbsd.lo aout32.lo" ;;
     i386_coff_vec)              tb="$tb coff-i386.lo $coff" ;;
     i386_coff_go32_vec)                 tb="$tb coff-go32.lo $coff" ;;
     i386_coff_go32stubbed_vec)  tb="$tb coff-stgo32.lo $coff" ;;
diff -r 62fccf412e18 -r 96a0f486877f external/gpl3/binutils/dist/bfd/configure.ac
--- a/external/gpl3/binutils/dist/bfd/configure.ac      Sat Aug 08 19:13:39 2020 +0000
+++ b/external/gpl3/binutils/dist/bfd/configure.ac      Sat Aug 08 19:26:09 2020 +0000
@@ -488,6 +488,7 @@
     i386_aout_vec)              tb="$tb i386aout.lo aout32.lo" ;;
     i386_aout_bsd_vec)          tb="$tb i386bsd.lo aout32.lo" ;;
     i386_aout_lynx_vec)                 tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
+    i386_aout_nbsd_vec)                 tb="$tb i386netbsd.lo aout32.lo" ;;
     i386_coff_vec)              tb="$tb coff-i386.lo $coff" ;;
     i386_coff_go32_vec)                 tb="$tb coff-go32.lo $coff" ;;
     i386_coff_go32stubbed_vec)  tb="$tb coff-stgo32.lo $coff" ;;
diff -r 62fccf412e18 -r 96a0f486877f external/gpl3/binutils/dist/bfd/i386netbsd.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/binutils/dist/bfd/i386netbsd.c      Sat Aug 08 19:26:09 2020 +0000
@@ -0,0 +1,38 @@
+/* BFD back-end for NetBSD/386 a.out-ish binaries.
+   Copyright (C) 1990-2016 Free Software Foundation, Inc.
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA. */
+
+#define        BYTES_IN_WORD   4
+#undef TARGET_IS_BIG_ENDIAN_P
+
+#define        TARGET_PAGE_SIZE        4096
+#define        SEGMENT_SIZE    TARGET_PAGE_SIZE
+
+#define        DEFAULT_ARCH    bfd_arch_i386
+#define        DEFAULT_MID     M_386_NETBSD
+
+/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
+   remove whitespace added here, and thus will fail to concatenate
+   the tokens.  */
+#define MY(OP) CONCAT2 (i386_aout_nbsd_,OP)
+
+/* This needs to start with a.out so GDB knows it is an a.out variant.  */
+#define TARGETNAME "a.out-i386-netbsd"
+
+#include "netbsd.h"
diff -r 62fccf412e18 -r 96a0f486877f external/gpl3/binutils/dist/bfd/targets.c
--- a/external/gpl3/binutils/dist/bfd/targets.c Sat Aug 08 19:13:39 2020 +0000
+++ b/external/gpl3/binutils/dist/bfd/targets.c Sat Aug 08 19:26:09 2020 +0000
@@ -727,6 +727,7 @@
 extern const bfd_target i386_aout_vec;
 extern const bfd_target i386_aout_bsd_vec;
 extern const bfd_target i386_aout_lynx_vec;
+extern const bfd_target i386_aout_nbsd_vec;
 extern const bfd_target i386_coff_vec;
 extern const bfd_target i386_coff_go32_vec;
 extern const bfd_target i386_coff_go32stubbed_vec;



Home | Main Index | Thread Index | Old Index