CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: kamil Date: Tue Oct 6 23:28:13 UTC 2020 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: Replace local patches adding NetBSD/aarch64 support with the upstream one Cherry-pick: >From c0b313441717b65569edb01bf9984d2066d899de Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 5 Oct 2020 14:56:42 +0100 Subject: [PATCH] Add NetBSD AArch64 Little Endian and Big Endian BFD support. bfd * config.bfd (aarch64-*-netbsd*, aarch64_be-*-netbsd*): Add target. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.22 src/external/gpl3/gdb/dist/bfd/config.bfd:1.23 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.22 Tue Sep 15 02:05:16 2020 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Tue Oct 6 23:28:13 2020 @@ -247,11 +247,6 @@ case "${targ}" in targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec" want64=true ;; - aarch64-*-netbsd*) -targ_defvec=aarch64_elf64_le_vec -targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec" -want64=true -;; aarch64-*-fuchsia*) targ_defvec=aarch64_elf64_le_vec targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec" @@ -262,22 +257,12 @@ case "${targ}" in targ_selvecs=aarch64_elf64_be_cloudabi_vec want64=true ;; - aarch64-*-linux*) -targ_defvec=aarch64_elf64_le_vec -targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec" -want64=true -;; - aarch64_be-*-linux*) -targ_defvec=aarch64_elf64_be_vec -targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec" -want64=true -;; - aarch64-*-netbsd*) + aarch64-*-linux* | aarch64-*-netbsd*) targ_defvec=aarch64_elf64_le_vec targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec" want64=true ;; - aarch64_be-*-netbsd*) + aarch64_be-*-linux* | aarch64_be-*-netbsd*) targ_defvec=aarch64_elf64_be_vec targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec" want64=true
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: kamil Date: Tue Oct 6 21:39:53 UTC 2020 Modified Files: src/external/gpl3/gdb/dist/bfd: netbsd-core.c Log Message: Undo local NFC patch To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/bfd/netbsd-core.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/netbsd-core.c diff -u src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.8 src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.9 --- src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.8 Tue Sep 15 02:05:16 2020 +++ src/external/gpl3/gdb/dist/bfd/netbsd-core.c Tue Oct 6 21:39:53 2020 @@ -275,7 +275,7 @@ const bfd_target core_netbsd_vec = 0,/* Symbol prefix. */ ' ', /* ar_pad_char. */ 16,/* ar_max_namelen. */ -0,/* match priority. */ +0,/* Match priority. */ NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit data. */ NO_GET, NO_GETS, NO_PUT, /* 32 bit data. */ NO_GET, NO_GETS, NO_PUT, /* 16 bit data. */
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Sat Sep 19 21:47:03 UTC 2020 Modified Files: src/external/gpl3/gdb/dist/bfd: elf.c Log Message: remove mis-merged code and make the auxv core offset 0. Now loading auxv from core files works. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/elf.c diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.12 src/external/gpl3/gdb/dist/bfd/elf.c:1.13 --- src/external/gpl3/gdb/dist/bfd/elf.c:1.12 Mon Sep 14 22:05:16 2020 +++ src/external/gpl3/gdb/dist/bfd/elf.c Sat Sep 19 17:47:03 2020 @@ -10893,7 +10893,7 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf #ifdef NT_NETBSDCORE_AUXV case NT_NETBSDCORE_AUXV: /* NetBSD-specific Elf Auxiliary Vector data. */ - return elfcore_make_auxv_note_section (abfd, note, 4); + return elfcore_make_auxv_note_section (abfd, note, 0); #endif #ifdef NT_NETBSDCORE_LWPSTATUS case NT_NETBSDCORE_LWPSTATUS: @@ -11023,20 +11023,6 @@ elfcore_grok_openbsd_note (bfd *abfd, El if (note->type == NT_OPENBSD_AUXV) return elfcore_make_auxv_note_section (abfd, note, 0); - if (note->type == NT_OPENBSD_WCOOKIE) -{ - asection *sect = bfd_make_section_anyway_with_flags (abfd, ".wcookie", - SEC_HAS_CONTENTS); - - if (sect == NULL) - return FALSE; - sect->size = note->descsz; - sect->filepos = note->descpos; - sect->alignment_power = 1 + bfd_get_arch_size (abfd) / 32; - - return TRUE; -} - return TRUE; }
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Thu Jul 12 23:18:28 UTC 2018 Modified Files: src/external/gpl3/gdb/dist/bfd: elf.c Log Message: aarch64 does not have PT_STEP so we start from 0. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/elf.c diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.9 src/external/gpl3/gdb/dist/bfd/elf.c:1.10 --- src/external/gpl3/gdb/dist/bfd/elf.c:1.9 Tue Nov 28 17:04:52 2017 +++ src/external/gpl3/gdb/dist/bfd/elf.c Thu Jul 12 19:18:28 2018 @@ -10041,6 +10041,7 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf /* On the Alpha, SPARC (32-bit and 64-bit), PT_GETREGS == mach+0 and PT_GETFPREGS == mach+2. */ +case bfd_arch_aarch64: case bfd_arch_alpha: case bfd_arch_sparc: switch (note->type)
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Wed Nov 29 22:39:26 UTC 2017 Modified Files: src/external/gpl3/gdb/dist/bfd: elf32-arm.c Log Message: we need popcount again To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/bfd/elf32-arm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/elf32-arm.c diff -u src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.3 src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.4 --- src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.3 Tue Nov 28 17:04:52 2017 +++ src/external/gpl3/gdb/dist/bfd/elf32-arm.c Wed Nov 29 17:39:26 2017 @@ -3240,7 +3240,6 @@ ctz (unsigned int mask) #endif } -#ifndef __NetBSD__ static inline int elf32_arm_popcount (unsigned int mask) { @@ -3259,7 +3258,6 @@ elf32_arm_popcount (unsigned int mask) return sum; #endif } -#endif /* Create an entry in an ARM ELF linker hash table. */
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: skrll Date: Sat Nov 19 07:54:19 UTC 2016 Modified Files: src/external/gpl3/gdb/dist/bfd: configure Log Message: Mark the alpha options use_secureplt as false... we don't do secure plt on alpha (yet) To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/bfd/configure Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/configure diff -u src/external/gpl3/gdb/dist/bfd/configure:1.8 src/external/gpl3/gdb/dist/bfd/configure:1.9 --- src/external/gpl3/gdb/dist/bfd/configure:1.8 Sat Nov 19 07:52:49 2016 +++ src/external/gpl3/gdb/dist/bfd/configure Sat Nov 19 07:54:19 2016 @@ -12163,7 +12163,7 @@ if test "${enable_secureplt+set}" = set; *)as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;; esac else - use_secureplt=true + use_secureplt=false fi if test $use_secureplt = true; then
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: skrll Date: Sat Nov 19 07:52:49 UTC 2016 Modified Files: src/external/gpl3/gdb/dist/bfd: configure Log Message: Add in netbsd-core.lo for all arm/mips To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/bfd/configure Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/configure diff -u src/external/gpl3/gdb/dist/bfd/configure:1.7 src/external/gpl3/gdb/dist/bfd/configure:1.8 --- src/external/gpl3/gdb/dist/bfd/configure:1.7 Wed Oct 12 20:20:33 2016 +++ src/external/gpl3/gdb/dist/bfd/configure Sat Nov 19 07:52:49 2016 @@ -14706,7 +14706,7 @@ if test "${target}" = "${host}"; then ;; arm-*-freebsd* | arm-*-kfreebsd*-gnu) COREFILE='' ;; - arm-*-netbsd* | arm-*-openbsd*) + arm*-*-netbsd* | arm-*-openbsd*) COREFILE=netbsd-core.lo ;; arm-*-riscix) COREFILE=trad-core.lo ;; @@ -14776,7 +14776,7 @@ if test "${target}" = "${host}"; then COREFILE=trad-core.lo TRAD_HEADER='"hosts/i860mach3.h"' ;; - mips-*-netbsd* | mips*-*-openbsd*) + mips*-*-netbsd* | mips*-*-openbsd*) COREFILE=netbsd-core.lo ;; mips-dec-*)
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: skrll Date: Sun Oct 23 12:46:57 UTC 2016 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: Sync with external/gpl3/binutils/dist/bfd/config.bfd for mips so we build in the right vector set To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.15 src/external/gpl3/gdb/dist/bfd/config.bfd:1.16 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.15 Sun Oct 23 12:43:01 2016 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Sun Oct 23 12:46:57 2016 @@ -1105,11 +1105,11 @@ case "${targ}" in ;; mips*el-*-netbsd*) targ_defvec=mips_elf32_trad_le_vec -targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" +targ_selvecs="mips_elf32_trad_be_vec mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" ;; mips*-*-netbsd*) targ_defvec=mips_elf32_trad_be_vec -targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +targ_selvecs="mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec mips_ecoff_be_vec mips_ecoff_le_vec" ;; mips64*-*-openbsd*) targ_defvec=mips_elf64_trad_be_vec
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: skrll Date: Sun Oct 23 12:43:02 UTC 2016 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: Sync with external/gpl3/binutils/dist/bfd/config.bfd for arm so we build in the right vector set To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.14 src/external/gpl3/gdb/dist/bfd/config.bfd:1.15 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.14 Fri Oct 14 14:41:32 2016 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Sun Oct 23 12:43:01 2016 @@ -314,11 +314,11 @@ case "${targ}" in targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec" targ_archs="$targ_archs bfd_i386_arch" ;; - armeb-*-netbsdelf*) + arm*eb-*-netbsdelf*) targ_defvec=arm_elf32_be_vec targ_selvecs="arm_elf32_le_vec arm_aout_nbsd_vec" ;; - arm-*-netbsdelf*) + arm*-*-netbsdelf*) targ_defvec=arm_elf32_le_vec targ_selvecs="arm_elf32_be_vec arm_aout_nbsd_vec" ;;
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: skrll Date: Fri Oct 14 14:14:58 UTC 2016 Modified Files: src/external/gpl3/gdb/dist/bfd: elf32-arm.c Log Message: We have our own popcount To generate a diff of this commit: cvs rdiff -u -r1.1.1.6 -r1.2 src/external/gpl3/gdb/dist/bfd/elf32-arm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/elf32-arm.c diff -u src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.1.1.6 src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.2 --- src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.1.1.6 Wed Oct 12 16:48:31 2016 +++ src/external/gpl3/gdb/dist/bfd/elf32-arm.c Fri Oct 14 14:14:58 2016 @@ -3219,6 +3219,7 @@ ctz (unsigned int mask) #endif } +#ifndef __NetBSD__ static inline int popcount (unsigned int mask) { @@ -3236,6 +3237,7 @@ popcount (unsigned int mask) return sum; #endif } +#endif /* Create an entry in an ARM ELF linker hash table. */
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: skrll Date: Fri Mar 25 09:29:01 UTC 2016 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: Match with binutils To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.11 src/external/gpl3/gdb/dist/bfd/config.bfd:1.12 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.11 Wed Feb 3 03:23:27 2016 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Fri Mar 25 09:29:01 2016 @@ -996,16 +996,7 @@ case "${targ}" in targ_defvec=mips_ecoff_be_vec targ_selvecs=mips_ecoff_le_vec ;; -#ifdef BFD64 - mips*el-*-netbsd*) -targ_defvec=mips_elf32_trad_le_vec -targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" -;; - mips*-*-netbsd*) -targ_defvec=mips_elf32_trad_be_vec -targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" -;; -#endif + mips*-dec-* | mips*el-*-ecoff*) targ_defvec=mips_ecoff_le_vec targ_selvecs=mips_ecoff_be_vec @@ -1079,6 +1070,22 @@ case "${targ}" in targ_defvec=mips_elf32_be_vec targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec" ;; + mips64*el-*-netbsd*) +targ_defvec=mips_elf32_ntrad_le_vec +targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec" +;; + mips64*-*-netbsd*) +targ_defvec=mips_elf32_ntrad_be_vec +targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" +;; + mips*el-*-netbsd*) +targ_defvec=mips_elf32_trad_le_vec +targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" +;; + mips*-*-netbsd*) +targ_defvec=mips_elf32_trad_be_vec +targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +;; mips64*-*-openbsd*) targ_defvec=mips_elf64_trad_be_vec targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec"
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Fri Feb 26 16:28:14 UTC 2016 Modified Files: src/external/gpl3/gdb/dist/bfd: merge.c Log Message: CID 420802: Avoid NULL deref. To generate a diff of this commit: cvs rdiff -u -r1.1.1.4 -r1.2 src/external/gpl3/gdb/dist/bfd/merge.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/merge.c diff -u src/external/gpl3/gdb/dist/bfd/merge.c:1.1.1.4 src/external/gpl3/gdb/dist/bfd/merge.c:1.2 --- src/external/gpl3/gdb/dist/bfd/merge.c:1.1.1.4 Tue Feb 2 22:00:11 2016 +++ src/external/gpl3/gdb/dist/bfd/merge.c Fri Feb 26 11:28:14 2016 @@ -334,7 +334,7 @@ sec_merge_emit (bfd *abfd, struct sec_me /* Trailing alignment needed? */ off = sec->size - off; - if (off != 0) + if (pad != NULL && off != 0) { if (contents) memcpy (contents + offset, pad, off);
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Mon Aug 17 12:45:06 UTC 2015 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: fix mips To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.9 src/external/gpl3/gdb/dist/bfd/config.bfd:1.10 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.9 Mon Aug 17 05:06:29 2015 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Mon Aug 17 08:45:06 2015 @@ -980,16 +980,12 @@ case "${targ}" in ;; #ifdef BFD64 mips*el-*-netbsd*) -targ_defvec=bfd_elf32_tradlittlemips_vec -targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec" -#targ_defvec=mips_elf32_trad_le_vec -#targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" +targ_defvec=mips_elf32_trad_le_vec +targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" ;; mips*-*-netbsd*) -targ_defvec=bfd_elf32_tradbigmips_vec -targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" -#targ_defvec=mips_elf32_trad_be_vec -#targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +targ_defvec=mips_elf32_trad_be_vec +targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" ;; #endif mips*-dec-* | mips*el-*-ecoff*)
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Mon Aug 17 09:06:29 UTC 2015 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: fix m68k To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.8 src/external/gpl3/gdb/dist/bfd/config.bfd:1.9 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.8 Sun Aug 16 05:52:55 2015 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Mon Aug 17 05:06:29 2015 @@ -895,12 +895,8 @@ case "${targ}" in targ_underscore=yes ;; m68*-*-netbsdelf* | m5407-*-netbsdelf*) -targ_defvec=bfd_elf32_m68k_vec -targ_selvecs="m68knetbsd_vec m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" -# XXX! WTF -# m68*-*-netbsdelf*) -#targ_defvec=m68k_elf32_vec -#targ_selvecs="m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec" +targ_defvec=m68k_elf32_vec +targ_selvecs="m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec" ;; m68*-*-netbsdaout* | m68*-*-netbsd*) targ_defvec=m68k_aout_nbsd_vec
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: matt Date: Sat May 23 01:41:02 UTC 2015 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: Add the mips n32 target vectors. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.6 src/external/gpl3/gdb/dist/bfd/config.bfd:1.7 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.6 Sun Aug 10 05:57:30 2014 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Sat May 23 01:41:02 2015 @@ -972,11 +972,11 @@ case "${targ}" in #ifdef BFD64 mips*el-*-netbsd*) targ_defvec=bfd_elf32_tradlittlemips_vec -targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec" +targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec" ;; mips*-*-netbsd*) targ_defvec=bfd_elf32_tradbigmips_vec -targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" +targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" ;; #endif mips*-dec-* | mips*el-*-ecoff*)
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Thu May 7 14:43:22 UTC 2015 Modified Files: src/external/gpl3/gdb/dist/bfd: configure configure.in Log Message: generalize the mips test to match mips64. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/bfd/configure cvs rdiff -u -r1.1.1.3 -r1.2 src/external/gpl3/gdb/dist/bfd/configure.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/configure diff -u src/external/gpl3/gdb/dist/bfd/configure:1.3 src/external/gpl3/gdb/dist/bfd/configure:1.4 --- src/external/gpl3/gdb/dist/bfd/configure:1.3 Sun Jun 22 19:52:57 2014 +++ src/external/gpl3/gdb/dist/bfd/configure Thu May 7 10:43:22 2015 @@ -13947,7 +13947,7 @@ if test "${target}" = "${host}"; then COREFILE=trad-core.lo TRAD_HEADER='"hosts/i860mach3.h"' ;; - mips-*-netbsd* | mips*-*-openbsd*) + mips*-*-netbsd* | mips*-*-openbsd*) COREFILE=netbsd-core.lo ;; mips-dec-*) Index: src/external/gpl3/gdb/dist/bfd/configure.in diff -u src/external/gpl3/gdb/dist/bfd/configure.in:1.1.1.3 src/external/gpl3/gdb/dist/bfd/configure.in:1.2 --- src/external/gpl3/gdb/dist/bfd/configure.in:1.1.1.3 Sun Jun 22 19:39:53 2014 +++ src/external/gpl3/gdb/dist/bfd/configure.in Thu May 7 10:43:22 2015 @@ -360,7 +360,7 @@ changequote([,])dnl COREFILE=trad-core.lo TRAD_HEADER='"hosts/i860mach3.h"' ;; - mips-*-netbsd* | mips*-*-openbsd*) + mips*-*-netbsd* | mips*-*-openbsd*) COREFILE=netbsd-core.lo ;; mips-dec-*)
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: apb Date: Tue Oct 15 07:14:59 UTC 2013 Modified Files: src/external/gpl3/gdb/dist/bfd: configure Log Message: If the shell does not support the $LINENO variable, then use "bfd_configure.lineno" instead of "configure.lineno" as the name of the a version of the script that has had all uses of $LINENO converted to literal line numbers. Now building tools via "MKCROSSGDB=yes build.sh tools" works again, even if the shell does not support $LINENO. The previous problem was caused by an interaction between the way .../gdb/dist/opcodes/configure executes "${srcdir}/../bfd/configure --version", and the way both configure scripts tried to create and then execute configure.lineno scripts. Both configure.lineno scripts were created in the same OBJDIR, with the configure.lineno from .../bfd/configure overwriting the configure.lineno from .../opcodes/configure, while the latter was still running. To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r1.2 src/external/gpl3/gdb/dist/bfd/configure Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/configure diff -u src/external/gpl3/gdb/dist/bfd/configure:1.1.1.2 src/external/gpl3/gdb/dist/bfd/configure:1.2 --- src/external/gpl3/gdb/dist/bfd/configure:1.1.1.2 Thu Oct 3 15:48:17 2013 +++ src/external/gpl3/gdb/dist/bfd/configure Tue Oct 15 07:14:59 2013 @@ -428,6 +428,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + as_me=bfd_$as_me # XXX don't overwrite our caller's configure.lineno # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p
CVS commit: src/external/gpl3/gdb/dist/bfd/doc
Module Name:src Committed By: mrg Date: Sat Feb 18 06:17:40 UTC 2012 Modified Files: src/external/gpl3/gdb/dist/bfd/doc: Makefile.in Log Message: avoid bfd.info rebuilds and r/o source lossage. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/doc/Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/doc/Makefile.in diff -u src/external/gpl3/gdb/dist/bfd/doc/Makefile.in:1.1.1.1 src/external/gpl3/gdb/dist/bfd/doc/Makefile.in:1.2 --- src/external/gpl3/gdb/dist/bfd/doc/Makefile.in:1.1.1.1 Sat Sep 24 19:47:33 2011 +++ src/external/gpl3/gdb/dist/bfd/doc/Makefile.in Sat Feb 18 06:17:39 2012 @@ -418,6 +418,8 @@ clean-libtool: -rm -rf .libs _libs bfd.info: bfd.texinfo $(bfd_TEXINFOS) + @echo "NOT REBUILDING $@" +NetBSD_DISABLED_bfd.info: restore=: && backupdir="$(am__leading_dot)am" && \ rm -rf $$backupdir && mkdir $$backupdir && \ if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: matt Date: Wed Nov 23 19:41:51 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/bfd: config.bfd Log Message: Add mips64*-netbsd* clauses To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/config.bfd diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.1.1.1 src/external/gpl3/gdb/dist/bfd/config.bfd:1.2 --- src/external/gpl3/gdb/dist/bfd/config.bfd:1.1.1.1 Sat Sep 24 19:43:57 2011 +++ src/external/gpl3/gdb/dist/bfd/config.bfd Wed Nov 23 19:41:50 2011 @@ -910,6 +910,16 @@ case "${targ}" in targ_defvec=ecoff_big_vec targ_selvecs=ecoff_little_vec ;; +#ifdef BFD64 + mips64*el-*-netbsd*) +targ_defvec=bfd_elf32_ntradlittlemips_vec +targ_selvecs="bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec" +;; + mips64*-*-netbsd*) +targ_defvec=bfd_elf32_ntradbigmips_vec +targ_selvecs="bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec" +;; +#endif mips*el-*-netbsd*) targ_defvec=bfd_elf32_tradlittlemips_vec targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec"
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: uwe Date: Tue Nov 1 00:31:39 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/bfd: elf.c Log Message: elfcore_grok_netbsd_note: sync SuperH PT_GETREGS value with reality. Recognize PT_GETFPREGS that we don't yet actually have, but for which the number is now reserved. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/elf.c diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.1.1.1 src/external/gpl3/gdb/dist/bfd/elf.c:1.2 --- src/external/gpl3/gdb/dist/bfd/elf.c:1.1.1.1 Sat Sep 24 19:44:29 2011 +++ src/external/gpl3/gdb/dist/bfd/elf.c Tue Nov 1 00:31:38 2011 @@ -8495,6 +8495,23 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf return TRUE; } + /* On SuperH, PT_GETREGS == mach+3 and PT_GETFPREGS == mach+5. + There's also old PT___GETREGS40 == mach + 1 for old reg + structure which lacks GBR. */ + +case bfd_arch_sh: + switch (note->type) + { + case NT_NETBSDCORE_FIRSTMACH+3: + return elfcore_make_note_pseudosection (abfd, ".reg", note); + + case NT_NETBSDCORE_FIRSTMACH+5: + return elfcore_make_note_pseudosection (abfd, ".reg2", note); + + default: + return TRUE; + } + /* On all other arch's, PT_GETREGS == mach+1 and PT_GETFPREGS == mach+3. */
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: joerg Date: Tue Oct 11 15:13:08 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/bfd: bfdio.c Log Message: Fix memset usage. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/bfdio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/bfdio.c diff -u src/external/gpl3/gdb/dist/bfd/bfdio.c:1.1.1.1 src/external/gpl3/gdb/dist/bfd/bfdio.c:1.2 --- src/external/gpl3/gdb/dist/bfd/bfdio.c:1.1.1.1 Sat Sep 24 19:43:29 2011 +++ src/external/gpl3/gdb/dist/bfd/bfdio.c Tue Oct 11 15:13:08 2011 @@ -577,7 +577,7 @@ memory_bstat (bfd *abfd, struct stat *st { struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream; - memset (statbuf, 0, sizeof (statbuf)); + memset (statbuf, 0, sizeof (*statbuf)); statbuf->st_size = bim->size; return 0;
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Tue Oct 11 15:12:00 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/bfd: elf32-i386.c Log Message: don't forget to subtract the offset; found by clang -Warray-bounds To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/elf32-i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/elf32-i386.c diff -u src/external/gpl3/gdb/dist/bfd/elf32-i386.c:1.1.1.1 src/external/gpl3/gdb/dist/bfd/elf32-i386.c:1.2 --- src/external/gpl3/gdb/dist/bfd/elf32-i386.c:1.1.1.1 Sat Sep 24 15:44:59 2011 +++ src/external/gpl3/gdb/dist/bfd/elf32-i386.c Tue Oct 11 11:11:59 2011 @@ -323,7 +323,7 @@ elf_i386_reloc_type_lookup (bfd *abfd AT case BFD_RELOC_386_IRELATIVE: TRACE ("BFD_RELOC_386_IRELATIVE"); - return &elf_howto_table[R_386_IRELATIVE]; + return &elf_howto_table[R_386_IRELATIVE - R_386_tls_offset]; case BFD_RELOC_VTABLE_INHERIT: TRACE ("BFD_RELOC_VTABLE_INHERIT");
CVS commit: src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: christos Date: Sat Sep 24 20:51:05 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/bfd: netbsd-core.c Log Message: make this compile. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/netbsd-core.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/netbsd-core.c diff -u src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.1.1.1 src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.2 --- src/external/gpl3/gdb/dist/bfd/netbsd-core.c:1.1.1.1 Sat Sep 24 15:46:45 2011 +++ src/external/gpl3/gdb/dist/bfd/netbsd-core.c Sat Sep 24 16:51:04 2011 @@ -281,7 +281,6 @@ const bfd_target netbsd_core_vec = 0,/* Symbol prefix. */ ' ', /* ar_pad_char. */ 16,/* ar_max_namelen. */ -0,/* Match priority. */ NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit data. */ NO_GET, NO_GETS, NO_PUT, /* 32 bit data. */ NO_GET, NO_GETS, NO_PUT, /* 16 bit data. */