CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: rin Date: Sat Jul 13 17:13:39 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/gas: Makefile.in Log Message: binutils: gas: Do not regen itbl-parse.c Try to fix host-tool build on read-only mounted src. Same gas binaries are generated before and after this change. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/binutils/dist/gas/Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: rin Date: Sat Jul 13 17:13:39 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/gas: Makefile.in Log Message: binutils: gas: Do not regen itbl-parse.c Try to fix host-tool build on read-only mounted src. Same gas binaries are generated before and after this change. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/binutils/dist/gas/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/binutils/dist/gas/Makefile.in diff -u src/external/gpl3/binutils/dist/gas/Makefile.in:1.12 src/external/gpl3/binutils/dist/gas/Makefile.in:1.13 --- src/external/gpl3/binutils/dist/gas/Makefile.in:1.12 Sun Jun 30 16:10:17 2024 +++ src/external/gpl3/binutils/dist/gas/Makefile.in Sat Jul 13 17:13:39 2024 @@ -2142,6 +2142,8 @@ config/loongarch-lex-wrapper.@OBJEXT@: c itbl-lex-wrapper.@OBJEXT@: itbl-lex.c itbl-parse.h itbl-parse.c: $(srcdir)/itbl-parse.y + @echo "NOT REBUILDING $@" +NetBSD_DISABLED_itbl-parse.c: $(SHELL) $(YLWRAP) $(srcdir)/itbl-parse.y y.tab.c $@ y.tab.h itbl-parse.h -- $(YACCCOMPILE) -d itbl-parse.h: itbl-parse.c
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: skrll Date: Sat Jul 13 09:12:10 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/bfd: Makefile.in Log Message: Fix a merge botch. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/bfd/Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: skrll Date: Sat Jul 13 09:12:10 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/bfd: Makefile.in Log Message: Fix a merge botch. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/bfd/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/binutils/dist/bfd/Makefile.in diff -u src/external/gpl3/binutils/dist/bfd/Makefile.in:1.14 src/external/gpl3/binutils/dist/bfd/Makefile.in:1.15 --- src/external/gpl3/binutils/dist/bfd/Makefile.in:1.14 Sun Jun 30 16:10:15 2024 +++ src/external/gpl3/binutils/dist/bfd/Makefile.in Sat Jul 13 09:12:09 2024 @@ -2436,7 +2436,7 @@ pe-loongarch64igen.c: peXXigen.c pe-riscv64igen.c: peXXigen.c $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@ - $(AM_V_GEN)$(SED) -e s/XX/peAArch64/g < $> >> $@ + $(AM_V_GEN)$(SED) -e s/XX/peRiscV64/g < $> >> $@ host-aout.lo: Makefile
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Thu Jul 11 13:48:47 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in Log Message: disable ldint.1 build, like we did with ld.1 To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/binutils/dist/ld/Makefile.am cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/binutils/dist/ld/Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Thu Jul 11 13:48:47 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in Log Message: disable ldint.1 build, like we did with ld.1 To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/binutils/dist/ld/Makefile.am cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/binutils/dist/ld/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/binutils/dist/ld/Makefile.am diff -u src/external/gpl3/binutils/dist/ld/Makefile.am:1.20 src/external/gpl3/binutils/dist/ld/Makefile.am:1.21 --- src/external/gpl3/binutils/dist/ld/Makefile.am:1.20 Wed Jul 3 21:06:07 2024 +++ src/external/gpl3/binutils/dist/ld/Makefile.am Thu Jul 11 09:48:47 2024 @@ -776,6 +776,8 @@ NetBSD_DISABLED_ld.1: # The sed command removes the no-adjust Nroff command so that # the man output looks standard. ldint.1: $(srcdir)/ldint.texi configdoc.texi + @echo "NOT REBUILDING $@" +NetBSD_DISABLED_ldint.1: $(AM_V_GEN)touch $@ $(AM_V_at)-$(TEXI2POD) $(MANCONF) < $(srcdir)/ldint.texi > ldint.pod $(AM_V_at)-($(POD2MAN) ldint.pod | \ Index: src/external/gpl3/binutils/dist/ld/Makefile.in diff -u src/external/gpl3/binutils/dist/ld/Makefile.in:1.21 src/external/gpl3/binutils/dist/ld/Makefile.in:1.22 --- src/external/gpl3/binutils/dist/ld/Makefile.in:1.21 Wed Jul 3 21:06:07 2024 +++ src/external/gpl3/binutils/dist/ld/Makefile.in Thu Jul 11 09:48:47 2024 @@ -1738,6 +1738,8 @@ ld.html: ld.texi $(ld_TEXINFOS) fi ldint.info: ldint.texi + @echo "NOT REBUILDING $@" +NetBSD_DISABLED_ldint.info: $(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am" && \ rm -rf $$backupdir && mkdir $$backupdir && \ if ($(MAKEINFO) --version) >/dev/null 2>&1; then \ @@ -2473,6 +2475,8 @@ NetBSD_DISABLED_ld.1: # The sed command removes the no-adjust Nroff command so that # the man output looks standard. ldint.1: $(srcdir)/ldint.texi configdoc.texi + @echo "NOT REBUILDING $@" +NetBSD_DISABLED_ldint.1: $(AM_V_GEN)touch $@ $(AM_V_at)-$(TEXI2POD) $(MANCONF) < $(srcdir)/ldint.texi > ldint.pod $(AM_V_at)-($(POD2MAN) ldint.pod | \
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Thu Jul 4 01:06:07 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in Log Message: avoid using pattern rules that our make does not support. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/ld/Makefile.am cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/binutils/dist/ld/Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Thu Jul 4 01:06:07 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in Log Message: avoid using pattern rules that our make does not support. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/ld/Makefile.am cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/binutils/dist/ld/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/binutils/dist/ld/Makefile.am diff -u src/external/gpl3/binutils/dist/ld/Makefile.am:1.19 src/external/gpl3/binutils/dist/ld/Makefile.am:1.20 --- src/external/gpl3/binutils/dist/ld/Makefile.am:1.19 Sun Jun 30 12:10:19 2024 +++ src/external/gpl3/binutils/dist/ld/Makefile.am Wed Jul 3 21:06:07 2024 @@ -643,10 +643,22 @@ GEN_DEPENDS = $(srcdir)/genscripts.sh ld @TDIRS@ -e%.c: - $(AM_V_GEN)${GENSCRIPTS} $* "$(tdir_$*)" +# We can't use pattern rules as we don't want to depend on GNU +# make, or else these rules could have been expressed in one +# two-liner: 'e%.c:' and ' ${GENSCRIPTS} $* "$(tdir_$*)"'. +# (The recursive variable expansion is portable.) + +run-genscripts: + $(AM_V_at)${GENSCRIPTS} $(script_target) "$($(script_tdirname))" + +.PHONY: run-genscripts + +#e%.c: +# $(AM_V_GEN)${GENSCRIPTS} $* "$(tdir_$*)" $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): $(GEN_DEPENDS) + $(AM_V_GEN)base=`echo $@ | sed -e 's,e\(.*\).c,\1,'`; \ + $(MAKE) run-genscripts "script_target=$$base" "script_tdirname=tdir_$$base" #Dummy rule to prevent make considering e%.c as a source for missing #.Pc files (and they are all missing until the e*.c files are generated). Index: src/external/gpl3/binutils/dist/ld/Makefile.in diff -u src/external/gpl3/binutils/dist/ld/Makefile.in:1.20 src/external/gpl3/binutils/dist/ld/Makefile.in:1.21 --- src/external/gpl3/binutils/dist/ld/Makefile.in:1.20 Sun Jun 30 12:10:19 2024 +++ src/external/gpl3/binutils/dist/ld/Makefile.in Wed Jul 3 21:06:07 2024 @@ -2389,10 +2389,22 @@ ldscripts/stamp: @TDIRS@ -e%.c: - $(AM_V_GEN)${GENSCRIPTS} $* "$(tdir_$*)" + +# We can't use pattern rules as we don't want to depend on GNU +# make, or else these rules could have been expressed in one +# two-liner: 'e%.c:' and ' ${GENSCRIPTS} $* "$(tdir_$*)"'. +# (The recursive variable expansion is portable.) +run-genscripts: + $(AM_V_at)${GENSCRIPTS} $(script_target) "$($(script_tdirname))" + +.PHONY: run-genscripts + +#e%.c: +# $(AM_V_GEN)${GENSCRIPTS} $* "$(tdir_$*)" $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): $(GEN_DEPENDS) + $(AM_V_GEN)base=`echo $@ | sed -e 's,e\(.*\).c,\1,'`; \ + $(MAKE) run-genscripts "script_target=$$base" "script_tdirname=tdir_$$base" #Dummy rule to prevent make considering e%.c as a source for missing #.Pc files (and they are all missing until the e*.c files are generated).
CVS commit: src/external/gpl3/binutils/dist
Module Name:src Committed By: rin Date: Mon Jul 1 03:55:30 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/bfd: configure src/external/gpl3/binutils/dist/gold: configure Log Message: binutils: Drop meaningless diff from upstream, NFC To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/binutils/dist/bfd/configure cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gold/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/binutils/dist/bfd/configure diff -u src/external/gpl3/binutils/dist/bfd/configure:1.21 src/external/gpl3/binutils/dist/bfd/configure:1.22 --- src/external/gpl3/binutils/dist/bfd/configure:1.21 Sun Jun 30 16:10:15 2024 +++ src/external/gpl3/binutils/dist/bfd/configure Mon Jul 1 03:55:30 2024 @@ -16241,7 +16241,6 @@ if test "${target}" = "${host}"; then arm*-*-netbsd* | arm-*-openbsd*) COREFILE=netbsd-core.lo ;; - arm*-*-netbsd*) COREFILE=netbsd-core.lo ;; hppa*-*-hpux*) COREFILE=hpux-core.lo ;; hppa*-*-hiux*) COREFILE=hpux-core.lo ;; hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; Index: src/external/gpl3/binutils/dist/gold/configure diff -u src/external/gpl3/binutils/dist/gold/configure:1.3 src/external/gpl3/binutils/dist/gold/configure:1.4 --- src/external/gpl3/binutils/dist/gold/configure:1.3 Sun Jun 30 16:10:18 2024 +++ src/external/gpl3/binutils/dist/gold/configure Mon Jul 1 03:55:30 2024 @@ -8744,6 +8744,7 @@ $as_echo "$LIBINTL" >&6; } fi + $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
CVS commit: src/external/gpl3/binutils/dist
Module Name:src Committed By: rin Date: Mon Jul 1 03:55:30 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/bfd: configure src/external/gpl3/binutils/dist/gold: configure Log Message: binutils: Drop meaningless diff from upstream, NFC To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/binutils/dist/bfd/configure cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gold/configure Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Jul 1 02:33:34 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/bfd: Makefile.am Log Message: binutils: bfd: Makefile.am: Fix copy-paste for previous To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/Makefile.am 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/binutils/dist/bfd/Makefile.am diff -u src/external/gpl3/binutils/dist/bfd/Makefile.am:1.11 src/external/gpl3/binutils/dist/bfd/Makefile.am:1.12 --- src/external/gpl3/binutils/dist/bfd/Makefile.am:1.11 Sun Jun 30 16:10:15 2024 +++ src/external/gpl3/binutils/dist/bfd/Makefile.am Mon Jul 1 02:33:34 2024 @@ -909,7 +909,7 @@ pe-loongarch64igen.c: peXXigen.c pe-riscv64igen.c: peXXigen.c $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@ - $(AM_V_GEN)$(SED) -e s/XX/peAArch64/g < $> >> $@ + $(AM_V_GEN)$(SED) -e s/XX/peRiscV64/g < $> >> $@ host-aout.lo: Makefile
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Jul 1 02:33:34 UTC 2024 Modified Files: src/external/gpl3/binutils/dist/bfd: Makefile.am Log Message: binutils: bfd: Makefile.am: Fix copy-paste for previous To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/Makefile.am Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Sat Nov 25 11:57:55 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/bfd: Require 64-bit integer support for vax Otherwise, e.g., gas cannot assemble 64-bit immediates correctly on ILP32 hosts. Thanks hans@ for analysis: https://mail-index.netbsd.org/port-vax/2023/11/23/msg004546.html To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/binutils/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/binutils/dist/bfd/config.bfd diff -u src/external/gpl3/binutils/dist/bfd/config.bfd:1.42 src/external/gpl3/binutils/dist/bfd/config.bfd:1.43 --- src/external/gpl3/binutils/dist/bfd/config.bfd:1.42 Mon Aug 28 00:35:52 2023 +++ src/external/gpl3/binutils/dist/bfd/config.bfd Sat Nov 25 11:57:55 2023 @@ -1511,6 +1511,13 @@ case "${targ_defvec} ${targ_selvecs}" in ;; esac +# vax natively supports 64-bit integers. +case "${targ_defvec} ${targ_selvecs}" in + *vax*) +want64=true +;; +esac + case "${host64}${want64}" in *true*) targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Sat Nov 25 11:57:55 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/bfd: Require 64-bit integer support for vax Otherwise, e.g., gas cannot assemble 64-bit immediates correctly on ILP32 hosts. Thanks hans@ for analysis: https://mail-index.netbsd.org/port-vax/2023/11/23/msg004546.html To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/binutils/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: tsutsui Date: Fri Nov 17 23:06:05 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-mips.c Log Message: binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly. Fixes PR/57680. Should be pulled up to netbsd-10, netbsd-9, and netbsd-8. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 \ src/external/gpl3/binutils/dist/gas/config/tc-mips.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/binutils/dist/gas/config/tc-mips.c diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.24 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.25 --- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.24 Mon Aug 28 02:07:58 2023 +++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c Fri Nov 17 23:06:05 2023 @@ -6509,8 +6509,8 @@ insns_between (const struct mips_cl_insn /* Itbl support may require additional care here. FIXME! Need to modify this to include knowledge about user specified delays! */ - else if ((!cop_interlocks && (pinfo1 & INSN_COPROC_MOVE)) - || (!cop_mem_interlocks && (pinfo1 & INSN_COPROC_MEMORY_DELAY))) + if ((!cop_interlocks && (pinfo1 & INSN_COPROC_MOVE)) + || (!cop_mem_interlocks && (pinfo1 & INSN_COPROC_MEMORY_DELAY))) { /* Handle cases where INSN1 writes to a known general coprocessor register. There must be a one instruction delay before INSN2
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: tsutsui Date: Fri Nov 17 23:06:05 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-mips.c Log Message: binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly. Fixes PR/57680. Should be pulled up to netbsd-10, netbsd-9, and netbsd-8. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 \ src/external/gpl3/binutils/dist/gas/config/tc-mips.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Sat Oct 7 12:04:09 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c Log Message: binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [11/21] PR toolchain/43314: pc relative relocations are "off by 1*size" on vax Address http://gnats.netbsd.org/43314 To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Sat Oct 7 12:04:09 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c Log Message: binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [11/21] PR toolchain/43314: pc relative relocations are "off by 1*size" on vax Address http://gnats.netbsd.org/43314 To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.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/binutils/dist/gas/config/tc-vax.c diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.17 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.18 --- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.17 Sat Oct 7 12:02:50 2023 +++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Sat Oct 7 12:04:09 2023 @@ -3504,12 +3504,39 @@ void vax_cons_fix_new (fragS *frag, int where, unsigned int nbytes, expressionS *exp, bfd_reloc_code_real_type r) { - if (r == NO_RELOC) + int pcrel; + // fix PC relative frags too ... + switch (r) +{ +case BFD_RELOC_8_PCREL: +case BFD_RELOC_16_PCREL: +case BFD_RELOC_32_PCREL: + pcrel = 1; + /* + * Displacement mode addressing (of which PC relative is one + * type) uses the updated contents of the register as the base + * address. VARM, Leonard 1987, pp34 + */ + switch (exp->X_op) + { + case O_constant: + case O_symbol: + exp->X_add_number += nbytes; + break; + } + break; +case NO_RELOC: r = (nbytes == 1 ? BFD_RELOC_8 : nbytes == 2 ? BFD_RELOC_16 : BFD_RELOC_32); + pcrel = 0; + break; +default: + pcrel = 0; + break; +} - fix_new_exp (frag, where, (int) nbytes, exp, 0, r); + fix_new_exp (frag, where, (int) nbytes, exp, pcrel, r); } const char *
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Sat Oct 7 12:02:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c tc-vax.h Log Message: binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [10/21] Try not to emit relocations in the .eh_frame section To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.c cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/gas/config/tc-vax.h 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/binutils/dist/gas/config/tc-vax.c diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.16 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.17 --- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.16 Sat Oct 7 11:26:09 2023 +++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Sat Oct 7 12:02:50 2023 @@ -282,6 +282,29 @@ md_apply_fix (fixS *fixP, valueT *valueP if (fixP->fx_subsy != (symbolS *) NULL) as_bad_subtract (fixP); + if (fixP->fx_pcrel) +{ + switch (fixP->fx_r_type) + { + case BFD_RELOC_32: + /* change the relocation type to 32 bit PC-relative */ + fixP->fx_r_type = BFD_RELOC_32_PCREL; + if (fixP->fx_addsy != NULL) + { + /* Hack around bfd_install_relocation brain damage. */ + value += fixP->fx_frag->fr_address + fixP->fx_where; + } + if (fixP->fx_addsy == abs_section_sym) + fixP->fx_done = 1; + break; + default: + break; + } +} + + /* + * Common code for pc-relative and non-pc-relative cases + */ if (fixP->fx_addsy == NULL) fixP->fx_done = 1; @@ -3524,6 +3547,11 @@ tc_vax_regname_to_dw2regnum (char *regna void vax_cfi_emit_pcrel_expr (expressionS *expP, unsigned int nbytes) { + expressionS tmp = *expP; + + tmp.X_op = O_subtract; + tmp.X_op_symbol = symbol_temp_new_now (); + expP = expP->X_add_number += nbytes; emit_expr (expP, nbytes); } Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.h diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.h:1.9 src/external/gpl3/binutils/dist/gas/config/tc-vax.h:1.10 --- src/external/gpl3/binutils/dist/gas/config/tc-vax.h:1.9 Sat Dec 24 20:17:06 2022 +++ src/external/gpl3/binutils/dist/gas/config/tc-vax.h Sat Oct 7 12:02:50 2023 @@ -37,6 +37,8 @@ #ifdef OBJ_ELF #define TARGET_FORMAT "elf32-vax" +#define DIFF_EXPR_OK 1 +#define CFI_DIFF_EXPR_OK 0 #endif #define TARGET_ARCH bfd_arch_vax
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Sat Oct 7 12:02:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c tc-vax.h Log Message: binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [10/21] Try not to emit relocations in the .eh_frame section To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.c cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/gas/config/tc-vax.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Sat Oct 7 11:26:09 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c Log Message: binutils/gas: vax: Cherry-pick upstream commits for binutils-gdb/30715 PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton (1/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8c8224dc1637a3e695c17e4c1026247196813c48 commit 8c8224dc163 Author: Kalvis Duckmanton Date: Sat Aug 12 14:27:00 2023 +0930 PR30715, VAX: md_create_long_jump PR 30715 * config/tc-vax.c (md_create_long_jump): Use pc-relative addressing. * testsuite/gas/vax/broken_word.d, * testsuite/gas/vax/broken_word.s: New test. * testsuite/gas/vax/vax.exp: Run it. (2/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=33efa77ecf7b040973657408f92325a4db13b9e5 commit 33efa77ecf7 Author: Alan Modra Date: Mon Aug 14 17:05:01 2023 +0930 Re: PR30715, VAX: md_create_long_jump Tidy comment formatting. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Sat Oct 7 11:26:09 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c Log Message: binutils/gas: vax: Cherry-pick upstream commits for binutils-gdb/30715 PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton (1/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8c8224dc1637a3e695c17e4c1026247196813c48 commit 8c8224dc163 Author: Kalvis Duckmanton Date: Sat Aug 12 14:27:00 2023 +0930 PR30715, VAX: md_create_long_jump PR 30715 * config/tc-vax.c (md_create_long_jump): Use pc-relative addressing. * testsuite/gas/vax/broken_word.d, * testsuite/gas/vax/broken_word.s: New test. * testsuite/gas/vax/vax.exp: Run it. (2/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=33efa77ecf7b040973657408f92325a4db13b9e5 commit 33efa77ecf7 Author: Alan Modra Date: Mon Aug 14 17:05:01 2023 +0930 Re: PR30715, VAX: md_create_long_jump Tidy comment formatting. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.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/binutils/dist/gas/config/tc-vax.c diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.15 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.16 --- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.15 Mon Aug 28 00:39:05 2023 +++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Sat Oct 7 11:26:09 2023 @@ -2257,18 +2257,19 @@ md_create_short_jump (char *ptr, void md_create_long_jump (char *ptr, - addressT from_addr ATTRIBUTE_UNUSED, + addressT from_addr, addressT to_addr, - fragS *frag, - symbolS *to_symbol) + fragS *frag ATTRIBUTE_UNUSED, + symbolS *to_symbol ATTRIBUTE_UNUSED) { valueT offset; - offset = to_addr - S_GET_VALUE (to_symbol); - *ptr++ = VAX_JMP; /* Arbitrary jump. */ - *ptr++ = VAX_ABSOLUTE_MODE; + /* Account for 1 byte instruction, 1 byte of address specifier and + 4 bytes of offset from PC. */ + offset = to_addr - (from_addr + 1 + 1 + 4); + *ptr++ = VAX_JMP; + *ptr++ = VAX_PC_RELATIVE_MODE; md_number_to_chars (ptr, offset, 4); - fix_new (frag, ptr - frag->fr_literal, 4, to_symbol, (long) 0, 0, NO_RELOC); } #ifdef OBJ_VMS
Re: CVS commit: src/external/gpl3/binutils/dist/ld/emultempl
On Mon, Sep 11, 2023 at 12:27:25PM +1000, matthew green wrote: > "Rin Okuyama" writes: > > Module Name:src > > Committed By: rin > > Date: Mon Sep 11 01:54:18 UTC 2023 > > > > Modified Files: > > src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em > > elf.em > > > > Log Message: > > ld: Enable --copy-dt-needed-entries by default again > > thanks for fixing -lcurses. > > can we put this into bsd.*.mk instead? > > ie, if we want this, declare it explicitly, rather than > reply upon patched binutils? (this is eg, unfriendly to > EXTERNAL_TOOLCHAIN etc.) We (TNF) consider this the default a bug. Red Hat etc who've been pushing for this mess don't, for reasons that don't really make sense. Basically, the Linux toolchain folks decided that ELF should no longer be recursive except it still is for every use case were performance matters. Joerg
Re: CVS commit: src/external/gpl3/binutils/dist/ld/emultempl
On 2023/09/11 11:27, matthew green wrote: "Rin Okuyama" writes: Module Name:src Committed By: rin Date: Mon Sep 11 01:54:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em elf.em Log Message: ld: Enable --copy-dt-needed-entries by default again thanks for fixing -lcurses. can we put this into bsd.*.mk instead? ie, if we want this, declare it explicitly, rather than reply upon patched binutils? (this is eg, unfriendly to EXTERNAL_TOOLCHAIN etc.) if it works, of course Thanks for your comment. Yeah, I feel this fix is too much also... I've found that FreeBSD uses ldscript to handle curses vs terminfo problem. I think we can resolve the problem in a similar manner. I've sent PR lib/57615 for this: http://gnats.netbsd.org/57615 Thanks, rin
re: CVS commit: src/external/gpl3/binutils/dist/ld/emultempl
"Rin Okuyama" writes: > Module Name: src > Committed By: rin > Date: Mon Sep 11 01:54:18 UTC 2023 > > Modified Files: > src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em > elf.em > > Log Message: > ld: Enable --copy-dt-needed-entries by default again thanks for fixing -lcurses. can we put this into bsd.*.mk instead? ie, if we want this, declare it explicitly, rather than reply upon patched binutils? (this is eg, unfriendly to EXTERNAL_TOOLCHAIN etc.) if it works, of course .mrg.
CVS commit: src/external/gpl3/binutils/dist/ld/emultempl
Module Name:src Committed By: rin Date: Mon Sep 11 01:54:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em elf.em Log Message: ld: Enable --copy-dt-needed-entries by default again Otherwise, terminfo(3) symbols referenced from curses(3)-based applications are not resolved, unless -lterminfo is explicitly specified. See, e.g., PR lib/57592 We had locally enabled this by default: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/ld/emultempl/elf.em#rev1.2 But this was lost during 2.39 merge. Thanks uwe@ for hints! To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em \ src/external/gpl3/binutils/dist/ld/emultempl/armelf.em cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/ld/emultempl/elf.em 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/binutils/dist/ld/emultempl/aarch64elf.em diff -u src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em:1.8 src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em:1.9 --- src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em:1.8 Sat Dec 24 20:17:07 2022 +++ src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em Mon Sep 11 01:54:18 2023 @@ -44,6 +44,8 @@ gld${EMULATION_NAME}_before_parse (void) ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown); #endif /* not TARGET_ */ input_flags.dynamic = ${DYNAMIC_LINK-true}; + /* XXX For NetBSD, copy-dt-needed-entries by default. */ + input_flags.add_DT_NEEDED_for_dynamic = true; config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo true ; else echo false ; fi`; config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo true ; else echo false ; fi`; link_info.check_relocs_after_open_input = true; Index: src/external/gpl3/binutils/dist/ld/emultempl/armelf.em diff -u src/external/gpl3/binutils/dist/ld/emultempl/armelf.em:1.8 src/external/gpl3/binutils/dist/ld/emultempl/armelf.em:1.9 --- src/external/gpl3/binutils/dist/ld/emultempl/armelf.em:1.8 Sat Dec 24 20:17:07 2022 +++ src/external/gpl3/binutils/dist/ld/emultempl/armelf.em Mon Sep 11 01:54:18 2023 @@ -57,6 +57,8 @@ gld${EMULATION_NAME}_before_parse (void) ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown); #endif /* not TARGET_ */ input_flags.dynamic = ${DYNAMIC_LINK-true}; + /* XXX For NetBSD, copy-dt-needed-entries by default. */ + input_flags.add_DT_NEEDED_for_dynamic = true; config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo true ; else echo false ; fi`; config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo true ; else echo false ; fi`; link_info.check_relocs_after_open_input = true; Index: src/external/gpl3/binutils/dist/ld/emultempl/elf.em diff -u src/external/gpl3/binutils/dist/ld/emultempl/elf.em:1.3 src/external/gpl3/binutils/dist/ld/emultempl/elf.em:1.4 --- src/external/gpl3/binutils/dist/ld/emultempl/elf.em:1.3 Sat Dec 24 20:17:07 2022 +++ src/external/gpl3/binutils/dist/ld/emultempl/elf.em Mon Sep 11 01:54:18 2023 @@ -81,6 +81,8 @@ gld${EMULATION_NAME}_before_parse (void) { ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`); input_flags.dynamic = ${DYNAMIC_LINK-true}; + /* XXX For NetBSD, copy-dt-needed-entries by default. */ + input_flags.add_DT_NEEDED_for_dynamic = true; config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo true ; else echo false ; fi`; config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo true ; else echo false ; fi`; link_info.check_relocs_after_open_input = true;
CVS commit: src/external/gpl3/binutils/dist/ld/emultempl
Module Name:src Committed By: rin Date: Mon Sep 11 01:54:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em elf.em Log Message: ld: Enable --copy-dt-needed-entries by default again Otherwise, terminfo(3) symbols referenced from curses(3)-based applications are not resolved, unless -lterminfo is explicitly specified. See, e.g., PR lib/57592 We had locally enabled this by default: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/ld/emultempl/elf.em#rev1.2 But this was lost during 2.39 merge. Thanks uwe@ for hints! To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em \ src/external/gpl3/binutils/dist/ld/emultempl/armelf.em cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/ld/emultempl/elf.em Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: src/external/gpl3/binutils/dist/bfd
On Tue, Sep 5, 2023 at 4:46 AM matthew green wrote: > > > I did similar verification for gdb/dist/bfd also. I'd like to > > sync {binutils,gdb}/dist/bfd, but there are huge diffs between > > them. Most of them seem like binutils or gdb specific fixes, > > but I may overlook something... > > > > It must be nice if we could unify two libbfd's. The upstream > > uses the same repository for binutils and gdb. However, the > > release branches for them are quite different, unfortunately. > > we used to do this a long time and and it's really difficult > to not break one toolchain component while updating another > and we ditched the merged 'src' tree like upstream had. > > (long ago, GCC was in the same 'src' as well, but i think > it's no longer the same. our merged tree had GCC too...) > > this is a nice idea, but practically we already stopped > using it.. Ah, thanks for kind explanation. And, > IFF we switched to importing gdb/binutils from the non > release branch at the same point, we could probaly do this > as long as we understand we're getting devel code, not > release code, which is probably a bad idea...would like to > have at least one of them as a release ;) well, it should be painful ether way ;) OK, I wil eventually send PRs to upstream to merge our local changes eventually, at least until kamil@ gets some time for NetBSD again :) Thanks, rin
re: CVS commit: src/external/gpl3/binutils/dist/bfd
> I did similar verification for gdb/dist/bfd also. I'd like to > sync {binutils,gdb}/dist/bfd, but there are huge diffs between > them. Most of them seem like binutils or gdb specific fixes, > but I may overlook something... > > It must be nice if we could unify two libbfd's. The upstream > uses the same repository for binutils and gdb. However, the > release branches for them are quite different, unfortunately. we used to do this a long time and and it's really difficult to not break one toolchain component while updating another and we ditched the merged 'src' tree like upstream had. (long ago, GCC was in the same 'src' as well, but i think it's no longer the same. our merged tree had GCC too...) this is a nice idea, but practically we already stopped using it.. IFF we switched to importing gdb/binutils from the non release branch at the same point, we could probaly do this as long as we understand we're getting devel code, not release code, which is probably a bad idea...would like to have at least one of them as a release ;) .mrg.
Re: CVS commit: src/external/gpl3/binutils/dist/bfd
On 2023/08/28 19:55, Valery Ushakov wrote: On Mon, Aug 28, 2023 at 00:02:50 +, Rin Okuyama wrote: Log Message: binutils/bfd: Adjust blank line to reduce diff from upstream Thanks a lot for these cleanups! Do we need to apply similar cleanups to the bfd version in gdb? (external/gpl3/gdb/dist/bfd) Thanks! I did similar verification for gdb/dist/bfd also. I'd like to sync {binutils,gdb}/dist/bfd, but there are huge diffs between them. Most of them seem like binutils or gdb specific fixes, but I may overlook something... It must be nice if we could unify two libbfd's. The upstream uses the same repository for binutils and gdb. However, the release branches for them are quite different, unfortunately. For example, gdb 12 seems to be branched somewhere between binutils 2.34 and 2.39, and they does not seem to merge non- critical changes from development branch. So, it is painful to unify both bfd's by our side. The best choice we can make, should be to upstream our fixes, IMO... Thanks, rin
Re: CVS commit: src/external/gpl3/binutils/dist/bfd
On Mon, Aug 28, 2023 at 00:02:50 +, Rin Okuyama wrote: > Log Message: > binutils/bfd: Adjust blank line to reduce diff from upstream Thanks a lot for these cleanups! Do we need to apply similar cleanups to the bfd version in gdb? (external/gpl3/gdb/dist/bfd) -uwe
CVS commit: src/external/gpl3/binutils/dist/opcodes
Module Name:src Committed By: rin Date: Mon Aug 28 02:34:00 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/opcodes: configure Log Message: binutils: Drop now-unnecessary NetBSD/sh3 workaround v.s. sh5 This was intended to avoid misconfiguration as sh5, but sh5 support itself was already gone. No functional changes. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/opcodes/configure Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/opcodes
Module Name:src Committed By: rin Date: Mon Aug 28 02:34:00 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/opcodes: configure Log Message: binutils: Drop now-unnecessary NetBSD/sh3 workaround v.s. sh5 This was intended to avoid misconfiguration as sh5, but sh5 support itself was already gone. No functional changes. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/opcodes/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/binutils/dist/opcodes/configure diff -u src/external/gpl3/binutils/dist/opcodes/configure:1.14 src/external/gpl3/binutils/dist/opcodes/configure:1.15 --- src/external/gpl3/binutils/dist/opcodes/configure:1.14 Sun Jan 15 23:10:53 2023 +++ src/external/gpl3/binutils/dist/opcodes/configure Mon Aug 28 02:34:00 2023 @@ -12559,29 +12559,7 @@ if test x${all_targets} = xfalse ; then bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; - bfd_sh_arch) - # We can't decide what we want just from the CPU family. - # We want SH5 support unless a specific version of sh is - # specified, as in sh3-elf, sh3b-linux-gnu, etc. - # Include it just for ELF targets, since the SH5 bfd:s are ELF only. - for t in $target $canon_targets; do - # For NetBSD we do NOT want SH5 support unless sh5 or sh64 - # is specified - case $t in - sh5*-* | sh64*-*) # let the case below handle it -;; - sh*-*-netbsd* | sh*l*-*-netbsd*) -continue ;; - esac - case $t in - all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \ - sh-*-linux* | shl-*-linux*) -ta="$ta sh64-dis.lo sh64-opc.lo" -archdefs="$archdefs -DINCLUDE_SHMEDIA" -break;; - esac; - done -ta="$ta sh-dis.lo cgen-bitset.lo" ;; + bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;; bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
CVS commit: src/external/gpl3/binutils/dist/libiberty
Module Name:src Committed By: rin Date: Mon Aug 28 02:30:14 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/libiberty: make-temp-file.c Log Message: binutils/libiberty: Restore order of tmp dirs, corrupted during merge Our preference was/should be /tmp --> /var/tmp --> /usr/tmp: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/libiberty/make-temp-file.c#rev1.2 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/binutils/dist/libiberty/make-temp-file.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/binutils/dist/libiberty/make-temp-file.c diff -u src/external/gpl3/binutils/dist/libiberty/make-temp-file.c:1.6 src/external/gpl3/binutils/dist/libiberty/make-temp-file.c:1.7 --- src/external/gpl3/binutils/dist/libiberty/make-temp-file.c:1.6 Sat Dec 24 20:17:08 2022 +++ src/external/gpl3/binutils/dist/libiberty/make-temp-file.c Mon Aug 28 02:30:13 2023 @@ -143,10 +143,10 @@ choose_tmpdir (void) base = try_dir (P_tmpdir, base); #endif - /* Try /var/tmp, then /usr/tmp, then /tmp. */ + /* Try /tmp, /var/tmp, then /usr/tmp. */ + base = try_dir (tmp, base); base = try_dir (vartmp, base); base = try_dir (usrtmp, base); - base = try_dir (tmp, base); /* If all else fails, use the current directory! */ if (base == 0)
CVS commit: src/external/gpl3/binutils/dist/libiberty
Module Name:src Committed By: rin Date: Mon Aug 28 02:30:14 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/libiberty: make-temp-file.c Log Message: binutils/libiberty: Restore order of tmp dirs, corrupted during merge Our preference was/should be /tmp --> /var/tmp --> /usr/tmp: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/libiberty/make-temp-file.c#rev1.2 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/binutils/dist/libiberty/make-temp-file.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: rin Date: Mon Aug 28 02:26:36 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: binutils/ld: Misc cleanup. NFC - Drop a.out support for NetBSD/sparc. - Reduce diff with upstream for irrelevant parts. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/external/gpl3/binutils/dist/ld/configure.tgt 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/binutils/dist/ld/configure.tgt diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.45 src/external/gpl3/binutils/dist/ld/configure.tgt:1.46 --- src/external/gpl3/binutils/dist/ld/configure.tgt:1.45 Mon Aug 28 02:18:16 2023 +++ src/external/gpl3/binutils/dist/ld/configure.tgt Mon Aug 28 02:26:35 2023 @@ -544,7 +544,8 @@ mips*-sgi-irix5*) targ_emul=elf32bsmip ;; mips*-sgi-irix6*) targ_emul=elf32bmipn32 targ_extra_emuls="elf32bsmip elf64bmip" - targ_extra_libpath=$targ_extra_emuls ;; + targ_extra_libpath=$targ_extra_emuls + ;; mips*el-*-haiku*) targ_emul=elf_mipsel_haiku targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" ;; @@ -991,12 +992,7 @@ sparc*-*-linux-*) targ_emul=elf32_sparc sparc64-*-netbsd*) targ_emul=elf64_sparc targ_extra_emuls="elf32_sparc" ;; -sparc64-*-openbsd*) targ_emul=elf64_sparc - targ_extra_emuls="elf32_sparc" - ;; -sparc*-*-netbsd*elf*) targ_emul=elf32_sparc - ;; -sparc*-*-netbsd*) targ_emul=sparcnbsd +sparc*-*-netbsd*) targ_emul=elf32_sparc ;; sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) targ_emul=elf32_sparc_sol2
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: rin Date: Mon Aug 28 02:26:36 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: binutils/ld: Misc cleanup. NFC - Drop a.out support for NetBSD/sparc. - Reduce diff with upstream for irrelevant parts. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/external/gpl3/binutils/dist/ld/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: rin Date: Mon Aug 28 02:18:16 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: binutils/ld: Clean up targets for arm - Consistently use netbsd* instead of netbsdelf*. - Consistently use arm*- and arm*eb- for OABI. - Style sync with upstream codes. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/external/gpl3/binutils/dist/ld/configure.tgt 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/binutils/dist/ld/configure.tgt diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.44 src/external/gpl3/binutils/dist/ld/configure.tgt:1.45 --- src/external/gpl3/binutils/dist/ld/configure.tgt:1.44 Tue Feb 7 20:39:01 2023 +++ src/external/gpl3/binutils/dist/ld/configure.tgt Mon Aug 28 02:18:16 2023 @@ -181,22 +181,26 @@ arm*-*-freebsd* | arm-*-kfreebsd*-gnu) targ_emul=armelf_fbsd targ_extra_emuls="armelfb_fbsd armelf" ;; - -arm*eb-*-netbsdelf*-*eabihf*) - targ_emul=armelfb_nbsd_eabihf; - targ_extra_emuls="armelf_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf" ;; -arm*eb-*-netbsdelf*-*eabi*) - targ_emul=armelfb_nbsd_eabi; - targ_extra_emuls="armelf_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf" ;; -arm*-*-netbsdelf*-*eabihf*) - targ_emul=armelf_nbsd_eabihf; - targ_extra_emuls="armelfb_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf" ;; -arm*-*-netbsdelf*-*eabi*) - targ_emul=armelf_nbsd_eabi; - targ_extra_emuls="armelfb_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf" ;; -arm*eb-*-netbsdelf*) targ_emul=armelfb_nbsd; - targ_extra_emuls="armelf_nbsd armelf" ;; -arm-*-netbsdelf*) targ_emul=armelf_nbsd; +arm*eb-*-netbsd*-*eabihf*) + targ_emul=armelfb_nbsd_eabihf + targ_extra_emuls="armelf_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf" + ;; +arm*eb-*-netbsd*-*eabi*) + targ_emul=armelfb_nbsd_eabi + targ_extra_emuls="armelf_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf" + ;; +arm*-*-netbsd*-*eabihf*) + targ_emul=armelf_nbsd_eabihf + targ_extra_emuls="armelfb_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf" + ;; +arm*-*-netbsd*-*eabi*) + targ_emul=armelf_nbsd_eabi + targ_extra_emuls="armelfb_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf" + ;; +arm*eb-*-netbsd*) targ_emul=armelfb_nbsd + targ_extra_emuls="armelf_nbsd armelf" + ;; +arm*-*-netbsd*) targ_emul=armelf_nbsd targ_extra_emuls="armelfb_nbsd armelf" ;; arm-*-nto*) targ_emul=armnto
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: rin Date: Mon Aug 28 02:18:16 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: binutils/ld: Clean up targets for arm - Consistently use netbsd* instead of netbsdelf*. - Consistently use arm*- and arm*eb- for OABI. - Style sync with upstream codes. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/external/gpl3/binutils/dist/ld/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: rin Date: Mon Aug 28 02:13:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in Log Message: binutils/ld: Clean up emulations - Drop armnbsd.c for a.out support to NetBSD/arm. - Drop locally added ILP32 mips and riscv from ALL_EMULATION_SOURCES; they require 64-bit integer supports, and already registered in ALL_64_EMULATION_SOURCES. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/ld/Makefile.am cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/ld/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/binutils/dist/ld/Makefile.am diff -u src/external/gpl3/binutils/dist/ld/Makefile.am:1.17 src/external/gpl3/binutils/dist/ld/Makefile.am:1.18 --- src/external/gpl3/binutils/dist/ld/Makefile.am:1.17 Sat Dec 24 20:17:07 2022 +++ src/external/gpl3/binutils/dist/ld/Makefile.am Mon Aug 28 02:13:18 2023 @@ -187,7 +187,6 @@ ALL_EMULATION_SOURCES = \ earmelfb_nbsd.c \ earmelfb_nbsd_eabi.c \ earmelfb_nbsd_eabihf.c \ - earmnbsd.c \ earmnto.c \ earmpe.c \ eavr1.c \ @@ -248,12 +247,6 @@ ALL_EMULATION_SOURCES = \ eelf32lppclinux.c \ eelf32lppcnto.c \ eelf32lppcsim.c \ - eelf32lriscv.c \ - eelf32lsmip.c \ - eelf32ltsmip.c \ - eelf32ltsmip_fbsd.c \ - eelf32ltsmipn32.c \ - eelf32ltsmipn32_fbsd.c \ eelf32m32c.c \ eelf32mb_linux.c \ eelf32mbel_linux.c \ Index: src/external/gpl3/binutils/dist/ld/Makefile.in diff -u src/external/gpl3/binutils/dist/ld/Makefile.in:1.18 src/external/gpl3/binutils/dist/ld/Makefile.in:1.19 --- src/external/gpl3/binutils/dist/ld/Makefile.in:1.18 Mon Jan 2 00:55:46 2023 +++ src/external/gpl3/binutils/dist/ld/Makefile.in Mon Aug 28 02:13:18 2023 @@ -684,7 +684,6 @@ ALL_EMULATION_SOURCES = \ earmelfb_nbsd.c \ earmelfb_nbsd_eabi.c \ earmelfb_nbsd_eabihf.c \ - earmnbsd.c \ earmnto.c \ earmpe.c \ eavr1.c \ @@ -745,12 +744,6 @@ ALL_EMULATION_SOURCES = \ eelf32lppclinux.c \ eelf32lppcnto.c \ eelf32lppcsim.c \ - eelf32lriscv.c \ - eelf32lsmip.c \ - eelf32ltsmip.c \ - eelf32ltsmip_fbsd.c \ - eelf32ltsmipn32.c \ - eelf32ltsmipn32_fbsd.c \ eelf32m32c.c \ eelf32mb_linux.c \ eelf32mbel_linux.c \
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: rin Date: Mon Aug 28 02:13:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in Log Message: binutils/ld: Clean up emulations - Drop armnbsd.c for a.out support to NetBSD/arm. - Drop locally added ILP32 mips and riscv from ALL_EMULATION_SOURCES; they require 64-bit integer supports, and already registered in ALL_64_EMULATION_SOURCES. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/ld/Makefile.am cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/ld/Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Mon Aug 28 02:07:58 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-mips.c Log Message: binutils/gas: mips: Dedup merge botch This code segment got duplicated during binutils 2.26 merge. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 \ src/external/gpl3/binutils/dist/gas/config/tc-mips.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/binutils/dist/gas/config/tc-mips.c diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.23 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.24 --- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.23 Sat Dec 24 20:17:06 2022 +++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c Mon Aug 28 02:07:58 2023 @@ -5871,13 +5871,6 @@ match_save_restore_list_operand (struct } frame_size /= 8; - /* If the branch is itself the target of a branch, we can not swap. - We cheat on this; all we check for is whether there is a label on - this instruction. If there are any branches to anything other than - a label, users must use .set noreorder. */ - if (seg_info (now_seg)->label_list) -return FALSE; - /* Finally build the instruction. */ if (mips_opts.mips16) opcode |= mips16_encode_save_restore (arg_mask, num_sregs, ra, s0, s1,
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Mon Aug 28 02:07:58 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-mips.c Log Message: binutils/gas: mips: Dedup merge botch This code segment got duplicated during binutils 2.26 merge. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 \ src/external/gpl3/binutils/dist/gas/config/tc-mips.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 01:59:26 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf64-ppc.c Log Message: binutils/bfd/elf64-ppc.c: Fix merge botch Extra NULL check for irrelevant variable has been accidentally introduced during binutils 2.26 merge. Probably confused with similar if block nearby... To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 01:59:26 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf64-ppc.c Log Message: binutils/bfd/elf64-ppc.c: Fix merge botch Extra NULL check for irrelevant variable has been accidentally introduced during binutils 2.26 merge. Probably confused with similar if block nearby... To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/bfd/elf64-ppc.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/binutils/dist/bfd/elf64-ppc.c diff -u src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.18 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.19 --- src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.18 Mon Jan 16 00:11:50 2023 +++ src/external/gpl3/binutils/dist/bfd/elf64-ppc.c Mon Aug 28 01:59:26 2023 @@ -16491,7 +16491,7 @@ ppc64_elf_relocate_section (bfd *output_ } } - if (!can_plt_call && h != NULL) + if (!can_plt_call) { /* g++ as of 20130507 emits self-calls without a following nop. This is arguably wrong since we
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 01:52:30 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf.c Log Message: binutils/bfd/elf.c: Dedup merge botch This code segment had been moved from original location in the upstream source, as a part of: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/bfd/elf.c#rev1.12 It accidentally became duplicated during binutils 2.39 merge. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/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/binutils/dist/bfd/elf.c diff -u src/external/gpl3/binutils/dist/bfd/elf.c:1.18 src/external/gpl3/binutils/dist/bfd/elf.c:1.19 --- src/external/gpl3/binutils/dist/bfd/elf.c:1.18 Thu Aug 17 06:49:27 2023 +++ src/external/gpl3/binutils/dist/bfd/elf.c Mon Aug 28 01:52:30 2023 @@ -4796,10 +4796,6 @@ _bfd_elf_map_sections_to_segments (bfd * hdr_index = 0; writable = false; executable = false; - dynsec = bfd_get_section_by_name (abfd, ".dynamic"); - if (dynsec != NULL - && (dynsec->flags & SEC_LOAD) == 0) - dynsec = NULL; if ((abfd->flags & D_PAGED) == 0) phdr_in_segment = false;
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 01:52:30 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf.c Log Message: binutils/bfd/elf.c: Dedup merge botch This code segment had been moved from original location in the upstream source, as a part of: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/bfd/elf.c#rev1.12 It accidentally became duplicated during binutils 2.39 merge. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: rin Date: Mon Aug 28 00:44:58 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: remap.c Log Message: binutils/gas: Drop our local fix for SSP Introduced by: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/gas/remap.c#rev1.2 Upstream has already stopped using alloca(3). To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/gas/remap.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/binutils/dist/gas/remap.c diff -u src/external/gpl3/binutils/dist/gas/remap.c:1.9 src/external/gpl3/binutils/dist/gas/remap.c:1.10 --- src/external/gpl3/binutils/dist/gas/remap.c:1.9 Sat Dec 24 20:17:05 2022 +++ src/external/gpl3/binutils/dist/gas/remap.c Mon Aug 28 00:44:58 2023 @@ -76,13 +76,10 @@ remap_debug_filename (const char *filena for (map = debug_prefix_maps; map; map = map->next) if (filename_ncmp (filename, map->old_prefix, map->old_len) == 0) - break; - if (!map) -return xstrdup (filename); - const char *name = filename + map->old_len; - size_t name_len = strlen (name) + 1; - char *s = (char *) xmalloc (name_len + map->new_len); - memcpy (s, map->new_prefix, map->new_len); - memcpy (s + map->new_len, name, name_len); - return s; + { + const char *name = filename + map->old_len; + return concat (map->new_prefix, name, NULL); + } + + return xstrdup (filename); }
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: rin Date: Mon Aug 28 00:44:58 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: remap.c Log Message: binutils/gas: Drop our local fix for SSP Introduced by: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/gas/remap.c#rev1.2 Upstream has already stopped using alloca(3). To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/gas/remap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/binutils
Module Name:src Committed By: rin Date: Mon Aug 28 00:41:57 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/binutils: readelf.c Log Message: binutils/readelf: Restore --special-files (same as -f), lost during merge To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/binutils/dist/binutils/readelf.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/binutils/dist/binutils/readelf.c diff -u src/external/gpl3/binutils/dist/binutils/readelf.c:1.23 src/external/gpl3/binutils/dist/binutils/readelf.c:1.24 --- src/external/gpl3/binutils/dist/binutils/readelf.c:1.23 Sat Dec 24 20:17:05 2022 +++ src/external/gpl3/binutils/dist/binutils/readelf.c Mon Aug 28 00:41:57 2023 @@ -5132,6 +5132,7 @@ static struct option options[] = {"use-dynamic", no_argument, 0, 'D'}, {"dynamic", no_argument, 0, 'd'}, {"headers", no_argument, 0, 'e'}, + {"special-files",no_argument, 0, 'f'}, {"section-groups", no_argument, 0, 'g'}, {"help", no_argument, 0, 'H'}, {"file-header", no_argument, 0, 'h'}, @@ -5329,6 +5330,8 @@ usage (FILE * stream) fprintf (stream, _("\ -T --silent-truncation If a symbol name is truncated, do not add [...] suffix\n")); fprintf (stream, _("\ + -f --special-files Process non-plain files too\n")); + fprintf (stream, _("\ @Read options from \n")); fprintf (stream, _("\ -H --help Display this information\n"));
CVS commit: src/external/gpl3/binutils/dist/binutils
Module Name:src Committed By: rin Date: Mon Aug 28 00:41:57 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/binutils: readelf.c Log Message: binutils/readelf: Restore --special-files (same as -f), lost during merge To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/binutils/dist/binutils/readelf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/binutils
Module Name:src Committed By: rin Date: Mon Aug 28 00:41:00 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/binutils: Makefile.in Log Message: binutils/Makefile.in: Merge botch; lt_ECHO was gone. NFC To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 \ src/external/gpl3/binutils/dist/binutils/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/binutils/dist/binutils/Makefile.in diff -u src/external/gpl3/binutils/dist/binutils/Makefile.in:1.12 src/external/gpl3/binutils/dist/binutils/Makefile.in:1.13 --- src/external/gpl3/binutils/dist/binutils/Makefile.in:1.12 Fri Dec 30 15:41:35 2022 +++ src/external/gpl3/binutils/dist/binutils/Makefile.in Mon Aug 28 00:40:59 2023 @@ -611,7 +611,6 @@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@
CVS commit: src/external/gpl3/binutils/dist/binutils
Module Name:src Committed By: rin Date: Mon Aug 28 00:41:00 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/binutils: Makefile.in Log Message: binutils/Makefile.in: Merge botch; lt_ECHO was gone. NFC To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 \ src/external/gpl3/binutils/dist/binutils/Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Mon Aug 28 00:39:05 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c Log Message: binutils/gas: vax: Reduce diff from upstream. NFC - Drop #if-0'ed code (disabled more than 14 years). - Dedup comments. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.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/binutils/dist/gas/config/tc-vax.c diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.14 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.15 --- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.14 Sat Dec 24 20:17:06 2022 +++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Mon Aug 28 00:39:05 2023 @@ -1110,14 +1110,6 @@ tc_aout_fix_to_chars (where, fixP, segme | (!S_IS_DEFINED (fixP->fx_addsy) ? 8 : 0) /* extern */ | ((nbytes_r_length[fixP->fx_size] & 3) << 1); -#if 0 - r_flags |= ((!S_IS_DEFINED(fixP->fx_addsy) - && fixP->fx_pcrel - && fixP->fx_addsy != GOT_symbol - && fixP->fx_addsy != PLT_symbol - && flags_want_pic) ? 0x10 : 0); -#endif - switch (fixP->fx_r_type) { case NO_RELOC: break; @@ -1163,71 +1155,6 @@ tc_aout_fix_to_chars (where, fixP, segme #endif /* !BFD_ASSEMBLER */ #endif /* OBJ_AOUT */ -/* - * BUGS, GRIPES, APOLOGIA, etc. - * - * The opcode table 'votstrs' needs to be sorted on opcode frequency. - * That is, AFTER we hash it with hash_...(), we want most-used opcodes - * to come out of the hash table faster. - * - * I am sorry to inflict yet another VAX assembler on the world, but - * RMS says we must do everything from scratch, to prevent pin-heads - * restricting this software. - */ - -/* - * This is a vaguely modular set of routines in C to parse VAX - * assembly code using DEC mnemonics. It is NOT un*x specific. - * - * The idea here is that the assembler has taken care of all: - * labels - * macros - * listing - * pseudo-ops - * line continuation - * comments - * condensing any whitespace down to exactly one space - * and all we have to do is parse 1 line into a vax instruction - * partially formed. We will accept a line, and deliver: - * an error message (hopefully empty) - * a skeleton VAX instruction (tree structure) - * textual pointers to all the operand expressions - * a warning message that notes a silly operand (hopefully empty) - */ - -/* - * E D I T H I S T O R Y - * - * 17may86 Dean Elsner. Bug if line ends immediately after opcode. - * 30apr86 Dean Elsner. New vip_op() uses arg block so change call. - * 6jan86 Dean Elsner. Crock vip_begin() to call vip_op_defaults(). - * 2jan86 Dean Elsner. Invent synthetic opcodes. - * Widen vax_opcodeT to 32 bits. Use a bit for VIT_OPCODE_SYNTHETIC, - * which means this is not a real opcode, it is like a macro; it will - * be relax()ed into 1 or more instructions. - * Use another bit for VIT_OPCODE_SPECIAL if the op-code is not optimised - * like a regular branch instruction. Option added to vip_begin(): - * exclude synthetic opcodes. Invent synthetic_votstrs[]. - * 31dec85 Dean Elsner. Invent vit_opcode_nbytes. - * Also make vit_opcode into a char[]. We now have n-byte vax opcodes, - * so caller's don't have to know the difference between a 1-byte & a - * 2-byte op-code. Still need vax_opcodeT concept, so we know how - * big an object must be to hold an op.code. - * 30dec85 Dean Elsner. Widen typedef vax_opcodeT in "vax-inst.h" - * because vax opcodes may be 16 bits. Our crufty C compiler was - * happily initialising 8-bit vot_codes with 16-bit numbers! - * (Wouldn't the 'phone company like to compress data so easily!) - * 29dec85 Dean Elsner. New static table vax_operand_width_size[]. - * Invented so we know hw many bytes a "I^#42" needs in its immediate - * operand. Revised struct vop in "vax-inst.h": explicitly include - * byte length of each operand, and it's letter-code datum type. - * 17nov85 Dean Elsner. Name Change. - * Due to ar(1) truncating names, we learned the hard way that - * "vax-inst-parse.c" -> "vax-inst-parse." dropping the "o" off - * the archived object name. SO... we shortened the name of this - * source file, and changed the makefile. - */ - /* Parse a vax operand in DEC assembler notation. For speed, expect a string of whitespace to be reduced to a single ' '. This is the case for GNU AS, and is easy for other DEC-compatible
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: rin Date: Mon Aug 28 00:39:05 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: tc-vax.c Log Message: binutils/gas: vax: Reduce diff from upstream. NFC - Drop #if-0'ed code (disabled more than 14 years). - Dedup comments. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 \ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:35:52 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/config.bfd: Add mipsn64e? and misc clean up for mips* - Introduce mipsn64e[bl]. - Sort targets consistently; o32 --> n32 --> n64 --> ecoff, eb --> el. - Reduce diff from gdb/config.bfd (will commit soon). To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/binutils/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:35:52 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/config.bfd: Add mipsn64e? and misc clean up for mips* - Introduce mipsn64e[bl]. - Sort targets consistently; o32 --> n32 --> n64 --> ecoff, eb --> el. - Reduce diff from gdb/config.bfd (will commit soon). To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/binutils/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/binutils/dist/bfd/config.bfd diff -u src/external/gpl3/binutils/dist/bfd/config.bfd:1.41 src/external/gpl3/binutils/dist/bfd/config.bfd:1.42 --- src/external/gpl3/binutils/dist/bfd/config.bfd:1.41 Mon Aug 28 00:31:36 2023 +++ src/external/gpl3/binutils/dist/bfd/config.bfd Mon Aug 28 00:35:52 2023 @@ -863,6 +863,30 @@ case "${targ}" in ;; #ifdef BFD64 + mipsn64*el-*-netbsd*) +targ_defvec=mips_elf64_trad_le_vec +targ_selvecs="mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_ecoff_be_vec mips_ecoff_le_vec" +;; + mipsn64*-*-netbsd*) +targ_defvec=mips_elf64_trad_be_vec +targ_selvecs="mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +;; + mips64*el-*-netbsd*) +targ_defvec=mips_elf32_ntrad_le_vec +targ_selvecs="mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +;; + mips64*-*-netbsd*) +targ_defvec=mips_elf32_ntrad_be_vec +targ_selvecs="mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +;; + mips*el-*-netbsd*) +targ_defvec=mips_elf32_trad_le_vec +targ_selvecs="mips_elf32_trad_be_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +;; + mips*-*-netbsd*) +targ_defvec=mips_elf32_trad_be_vec +targ_selvecs="mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" +;; mips*el-*-haiku*) targ_defvec=mips_elf32_le_vec targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" @@ -907,22 +931,6 @@ 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 mips_ecoff_le_vec mips_ecoff_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_ecoff_be_vec mips_ecoff_le_vec" -;; - mips*el-*-netbsd*) -targ_defvec=mips_elf32_trad_le_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_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 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/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:31:36 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/config.bfd: Clean up sh5 residue. NFC Drop 64-bit integer support to sh3 target. Already removed for little-endian target, whereas remained for big-endian somehow. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/binutils/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:31:36 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/config.bfd: Clean up sh5 residue. NFC Drop 64-bit integer support to sh3 target. Already removed for little-endian target, whereas remained for big-endian somehow. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/binutils/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/binutils/dist/bfd/config.bfd diff -u src/external/gpl3/binutils/dist/bfd/config.bfd:1.40 src/external/gpl3/binutils/dist/bfd/config.bfd:1.41 --- src/external/gpl3/binutils/dist/bfd/config.bfd:1.40 Mon Aug 28 00:27:50 2023 +++ src/external/gpl3/binutils/dist/bfd/config.bfd Mon Aug 28 00:31:36 2023 @@ -1285,7 +1285,6 @@ case "${targ}" in sh*-*-netbsd*) targ_defvec=sh_elf32_nbsd_vec targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec" -want64=true ;; shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:27:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/config.bfd: Consistently use netbsd* instead of netbsdelf* NFC as a.out support was gone... To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/binutils/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/binutils/dist/bfd/config.bfd diff -u src/external/gpl3/binutils/dist/bfd/config.bfd:1.39 src/external/gpl3/binutils/dist/bfd/config.bfd:1.40 --- src/external/gpl3/binutils/dist/bfd/config.bfd:1.39 Thu Aug 17 07:33:21 2023 +++ src/external/gpl3/binutils/dist/bfd/config.bfd Mon Aug 28 00:27:50 2023 @@ -1329,7 +1329,7 @@ case "${targ}" in targ_underscore=yes ;; - sparc-*-netbsdelf*) + sparc-*-netbsd*) targ_defvec=sparc_elf32_vec want64=true ;;
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:27:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/config.bfd: Consistently use netbsd* instead of netbsdelf* NFC as a.out support was gone... To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/binutils/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:25:44 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: configure configure.ac Log Message: binutils/bfd: Make ILP32 (instead of LP64) default target for mips n32 Make sure native tools working on n32 userland for 3rd party softwares. ABI for our source tree (kernels, modules, compat libraries, etc.) are explicitly set by our framework. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/bfd/configure cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/configure.ac 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/binutils/dist/bfd/configure diff -u src/external/gpl3/binutils/dist/bfd/configure:1.19 src/external/gpl3/binutils/dist/bfd/configure:1.20 --- src/external/gpl3/binutils/dist/bfd/configure:1.19 Sun Jan 15 23:10:52 2023 +++ src/external/gpl3/binutils/dist/bfd/configure Mon Aug 28 00:25:44 2023 @@ -13480,8 +13480,8 @@ do mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; -mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; -mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; +mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; +mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; Index: src/external/gpl3/binutils/dist/bfd/configure.ac diff -u src/external/gpl3/binutils/dist/bfd/configure.ac:1.11 src/external/gpl3/binutils/dist/bfd/configure.ac:1.12 --- src/external/gpl3/binutils/dist/bfd/configure.ac:1.11 Fri Jan 6 15:47:38 2023 +++ src/external/gpl3/binutils/dist/bfd/configure.ac Mon Aug 28 00:25:44 2023 @@ -537,8 +537,8 @@ do mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; -mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; -mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; +mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; +mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:25:44 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: configure configure.ac Log Message: binutils/bfd: Make ILP32 (instead of LP64) default target for mips n32 Make sure native tools working on n32 userland for 3rd party softwares. ABI for our source tree (kernels, modules, compat libraries, etc.) are explicitly set by our framework. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/bfd/configure cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/configure.ac Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:13:17 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf32-ppc.c Log Message: binutils/bfd/elf32-ppc.c: Drop now-unnecessary local fix Drop one of "cast enum into int" workarounds: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/bfd/elf32-ppc.c#rev1.3 http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/bfd/elf32-ppc.c#rev1.4 One of them had already been dropped, and this one accidentally remained. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/bfd/elf32-ppc.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/binutils/dist/bfd/elf32-ppc.c diff -u src/external/gpl3/binutils/dist/bfd/elf32-ppc.c:1.17 src/external/gpl3/binutils/dist/bfd/elf32-ppc.c:1.18 --- src/external/gpl3/binutils/dist/bfd/elf32-ppc.c:1.17 Sat Dec 24 20:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf32-ppc.c Mon Aug 28 00:13:17 2023 @@ -3027,7 +3027,7 @@ ppc_elf_check_relocs (bfd *abfd, sec->nomark_tls_get_addr = 1; } - switch ((int)r_type) + switch (r_type) { case R_PPC_TLSGD: case R_PPC_TLSLD:
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:13:17 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf32-ppc.c Log Message: binutils/bfd/elf32-ppc.c: Drop now-unnecessary local fix Drop one of "cast enum into int" workarounds: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/bfd/elf32-ppc.c#rev1.3 http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/bfd/elf32-ppc.c#rev1.4 One of them had already been dropped, and this one accidentally remained. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/bfd/elf32-ppc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:09:17 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elflink.c Log Message: binutils/bfd/elflink.c: Clean up our local fix. NFC Now, ELF64_R_INFO() macro casts indx argument appropriately. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/bfd/elflink.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/binutils/dist/bfd/elflink.c diff -u src/external/gpl3/binutils/dist/bfd/elflink.c:1.19 src/external/gpl3/binutils/dist/bfd/elflink.c:1.20 --- src/external/gpl3/binutils/dist/bfd/elflink.c:1.19 Sat Dec 24 20:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elflink.c Mon Aug 28 00:09:17 2023 @@ -12075,12 +12075,9 @@ elf_reloc_link_order (bfd *output_bfd, irel[0].r_info = ELF32_R_INFO (indx, howto->type); else #ifdef BFD64 - { -uint64_t indx64 = indx; -irel[0].r_info = ELF64_R_INFO (indx64, howto->type); - } +irel[0].r_info = ELF64_R_INFO (indx, howto->type); #else - BFD_FAIL(); +BFD_FAIL(); #endif rel_hdr = reldata->hdr;
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:09:17 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elflink.c Log Message: binutils/bfd/elflink.c: Clean up our local fix. NFC Now, ELF64_R_INFO() macro casts indx argument appropriately. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/bfd/elflink.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:02:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf32-i386.c Log Message: binutils/bfd: Adjust blank line to reduce diff from upstream To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/binutils/dist/bfd/elf32-i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:02:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf32-i386.c Log Message: binutils/bfd: Adjust blank line to reduce diff from upstream To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/binutils/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/binutils/dist/bfd/elf32-i386.c diff -u src/external/gpl3/binutils/dist/bfd/elf32-i386.c:1.13 src/external/gpl3/binutils/dist/bfd/elf32-i386.c:1.14 --- src/external/gpl3/binutils/dist/bfd/elf32-i386.c:1.13 Sat Dec 24 20:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf32-i386.c Mon Aug 28 00:02:50 2023 @@ -527,6 +527,7 @@ elf_i386_grok_psinfo (bfd *abfd, Elf_Int one of the last functions. */ /* The size in bytes of an entry in the lazy procedure linkage table. */ + #define LAZY_PLT_ENTRY_SIZE 16 /* The name of the dynamic interpreter. This is put in the .interp
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:01:37 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: archive.c Log Message: binutils/bfd/archive.c: Reduce diff from upstream. NFC - Drop #if-0'ed code (more than 7 years disabled). - Make variable assignment similar to upstream. - Drop local style fix. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/archive.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/binutils/dist/bfd/archive.c diff -u src/external/gpl3/binutils/dist/bfd/archive.c:1.11 src/external/gpl3/binutils/dist/bfd/archive.c:1.12 --- src/external/gpl3/binutils/dist/bfd/archive.c:1.11 Sat Dec 24 20:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/archive.c Mon Aug 28 00:01:37 2023 @@ -847,16 +847,6 @@ bfd_generic_openr_next_archived_file (bf { filestart = last_file->proxy_origin; if (! bfd_is_thin_archive (archive)) -#if 0 -/* OLD CODE */ - filestart += size; - /* Pad to an even boundary... - Note that last_file->origin can be odd in the case of - BSD-4.4-style element with a long odd size. */ - if (!strncmp(arch_hdr (last_file)->ar_name, "#1/", 3)) - size += strlen(normalize(last_file, last_file->filename)); - filestart += size % 2; -#endif { bfd_size_type size = arelt_size (last_file); @@ -2227,13 +2217,13 @@ _bfd_write_archive_contents (bfd *arch) current = current->archive_next) { char buffer[DEFAULT_BUFFERSIZE]; - bfd_size_type saved_size = arelt_size (current); - bfd_size_type remaining = saved_size; + bfd_size_type remaining = arelt_size (current); + bfd_size_type saved_size = remaining; struct ar_hdr *hdr = arch_hdr (current); /* Write ar header. */ if (!_bfd_write_ar_hdr (arch, current)) -return false; + return false; /* Write filename if it is a 4.4BSD extended file, and add to size. */ if (!strncmp (hdr->ar_name, "#1/", 3)) {
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Mon Aug 28 00:01:37 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: archive.c Log Message: binutils/bfd/archive.c: Reduce diff from upstream. NFC - Drop #if-0'ed code (more than 7 years disabled). - Make variable assignment similar to upstream. - Drop local style fix. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/archive.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Thu Aug 17 07:33:21 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/bfd: Fix target triplets of NetBSD/arm from binutils.old XXX mknative later To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/external/gpl3/binutils/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/binutils/dist/bfd/config.bfd diff -u src/external/gpl3/binutils/dist/bfd/config.bfd:1.38 src/external/gpl3/binutils/dist/bfd/config.bfd:1.39 --- src/external/gpl3/binutils/dist/bfd/config.bfd:1.38 Wed Feb 8 01:53:12 2023 +++ src/external/gpl3/binutils/dist/bfd/config.bfd Thu Aug 17 07:33:21 2023 @@ -374,11 +374,11 @@ case "${targ}" in targ_defvec=arm_elf32_nacl_be_vec targ_selvecs="arm_elf32_nacl_le_vec" ;; - armeb-*-netbsd*) + arm*eb-*-netbsd*) targ_defvec=arm_elf32_be_vec targ_selvecs="arm_elf32_le_vec" ;; - arm-*-netbsd*) + arm*-*-netbsd*) targ_defvec=arm_elf32_le_vec targ_selvecs="arm_elf32_be_vec" ;;
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Thu Aug 17 07:33:21 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: binutils/bfd: Fix target triplets of NetBSD/arm from binutils.old XXX mknative later To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/external/gpl3/binutils/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Thu Aug 17 06:49:28 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf.c Log Message: binutils/bfd: Correct auxv offset for NetBSD, from gdb/bfd Fallout not observed yet as far as I can see although... To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/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/binutils/dist/bfd/elf.c diff -u src/external/gpl3/binutils/dist/bfd/elf.c:1.17 src/external/gpl3/binutils/dist/bfd/elf.c:1.18 --- src/external/gpl3/binutils/dist/bfd/elf.c:1.17 Sat Dec 24 20:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf.c Thu Aug 17 06:49:27 2023 @@ -11145,7 +11145,7 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf return elfcore_grok_netbsd_procinfo (abfd, note); 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); case NT_NETBSDCORE_LWPSTATUS: return elfcore_make_note_pseudosection (abfd, ".note.netbsdcore.lwpstatus",
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Thu Aug 17 06:49:28 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf.c Log Message: binutils/bfd: Correct auxv offset for NetBSD, from gdb/bfd Fallout not observed yet as far as I can see although... To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Fri Jul 7 08:33:25 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf64-alpha.c Log Message: PR port-alpha/57511 Temporally disable secure PLT for alpha until support is added to ld.elf_so(1). To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/binutils/dist/bfd/elf64-alpha.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/binutils/dist/bfd/elf64-alpha.c diff -u src/external/gpl3/binutils/dist/bfd/elf64-alpha.c:1.10 src/external/gpl3/binutils/dist/bfd/elf64-alpha.c:1.11 --- src/external/gpl3/binutils/dist/bfd/elf64-alpha.c:1.10 Sat Dec 24 20:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf64-alpha.c Fri Jul 7 08:33:25 2023 @@ -83,7 +83,7 @@ /* Set by ld emulation. Putting this into the link_info or hash structure is simply working too hard. */ -#ifdef USE_SECUREPLT +#if defined(USE_SECUREPLT) && 0 /* XXX port-alpha/57511 */ bool elf64_alpha_use_secureplt = true; #else bool elf64_alpha_use_secureplt = false;
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: rin Date: Fri Jul 7 08:33:25 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf64-alpha.c Log Message: PR port-alpha/57511 Temporally disable secure PLT for alpha until support is added to ld.elf_so(1). To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/binutils/dist/bfd/elf64-alpha.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: christos Date: Mon Feb 27 17:38:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: obj-elf.c Log Message: Disable completely mips ifunc test to make cross-compilation on other OSs work. (Jan-Benedict Glaw) To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 \ src/external/gpl3/binutils/dist/gas/config/obj-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/binutils/dist/gas/config/obj-elf.c diff -u src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.10 src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.11 --- src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.10 Wed Jan 25 14:08:41 2023 +++ src/external/gpl3/binutils/dist/gas/config/obj-elf.c Mon Feb 27 12:38:18 2023 @@ -2395,7 +2395,7 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSE && bed->elf_osabi != ELFOSABI_FREEBSD) as_bad (_("symbol type \"%s\" is supported only by GNU " "and FreeBSD targets"), type_name); -#ifndef __NetBSD__ +#if 0 /* MIPS targets do not support IFUNCS. */ else if (bed->target_id == MIPS_ELF_DATA) as_bad (_("symbol type \"%s\" is not supported by "
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: christos Date: Mon Feb 27 17:38:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: obj-elf.c Log Message: Disable completely mips ifunc test to make cross-compilation on other OSs work. (Jan-Benedict Glaw) To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 \ src/external/gpl3/binutils/dist/gas/config/obj-elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: christos Date: Wed Feb 8 01:53:12 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: delete dup targets (pointed by mrg@) To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/external/gpl3/binutils/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/binutils/dist/bfd/config.bfd diff -u src/external/gpl3/binutils/dist/bfd/config.bfd:1.37 src/external/gpl3/binutils/dist/bfd/config.bfd:1.38 --- src/external/gpl3/binutils/dist/bfd/config.bfd:1.37 Tue Feb 7 15:39:01 2023 +++ src/external/gpl3/binutils/dist/bfd/config.bfd Tue Feb 7 20:53:12 2023 @@ -863,22 +863,6 @@ case "${targ}" in ;; #ifdef BFD64 - 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 mips_ecoff_le_vec mips_ecoff_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_ecoff_be_vec mips_ecoff_le_vec" -;; - mips*el-*-netbsd*) -targ_defvec=mips_elf32_trad_le_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_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" -;; mips*el-*-haiku*) targ_defvec=mips_elf32_le_vec targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: christos Date: Wed Feb 8 01:53:12 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: config.bfd Log Message: delete dup targets (pointed by mrg@) To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/external/gpl3/binutils/dist/bfd/config.bfd Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: christos Date: Sun Jan 29 23:39:12 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: app.c as.h input-scrub.c macro.c sb.c Log Message: Apply https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=4d74aab7aa562fe79d4669cdad0c32610531cbc0#patch1 to fix the vax issue (thanks @tsutsu for finding the patch) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/app.c cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/binutils/dist/gas/as.h cvs rdiff -u -r1.1.1.8 -r1.2 \ src/external/gpl3/binutils/dist/gas/input-scrub.c \ src/external/gpl3/binutils/dist/gas/macro.c \ src/external/gpl3/binutils/dist/gas/sb.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/binutils/dist/gas/app.c diff -u src/external/gpl3/binutils/dist/gas/app.c:1.3 src/external/gpl3/binutils/dist/gas/app.c:1.4 --- src/external/gpl3/binutils/dist/gas/app.c:1.3 Sat Jan 28 09:54:43 2023 +++ src/external/gpl3/binutils/dist/gas/app.c Sun Jan 29 18:39:12 2023 @@ -1537,3 +1537,16 @@ do_scrub_chars (size_t (*get) (char *, s last_char = to[-1]; return to - tostart; } + +/* Return amount of pending input. */ + +size_t +do_scrub_pending (void) +{ + size_t len = 0; + if (saved_input) +len += saved_input_len; + if (state == -1) +len += strlen (out_string); + return len; +} Index: src/external/gpl3/binutils/dist/gas/as.h diff -u src/external/gpl3/binutils/dist/gas/as.h:1.1.1.9 src/external/gpl3/binutils/dist/gas/as.h:1.2 --- src/external/gpl3/binutils/dist/gas/as.h:1.1.1.9 Fri Dec 23 14:01:15 2022 +++ src/external/gpl3/binutils/dist/gas/as.h Sun Jan 29 18:39:12 2023 @@ -460,6 +460,7 @@ void input_scrub_insert_file (char *); char * input_scrub_new_file (const char *); char * input_scrub_next_buffer (char **bufp); size_t do_scrub_chars (size_t (*get) (char *, size_t), char *, size_t); +size_t do_scrub_pending (void); bool scan_for_multibyte_characters (const unsigned char *, const unsigned char *, bool); intgen_to_words (LITTLENUM_TYPE *, int, long); inthad_err (void); Index: src/external/gpl3/binutils/dist/gas/input-scrub.c diff -u src/external/gpl3/binutils/dist/gas/input-scrub.c:1.1.1.8 src/external/gpl3/binutils/dist/gas/input-scrub.c:1.2 --- src/external/gpl3/binutils/dist/gas/input-scrub.c:1.1.1.8 Fri Dec 23 14:01:16 2022 +++ src/external/gpl3/binutils/dist/gas/input-scrub.c Sun Jan 29 18:39:12 2023 @@ -278,9 +278,11 @@ input_scrub_include_sb (sb *from, char * next_saved_file = input_scrub_push (position); - /* Allocate sufficient space: from->len + optional newline. */ + /* Allocate sufficient space: from->len plus optional newline + plus two ".linefile " directives, plus a little more for other + expansion. */ newline = from->len >= 1 && from->ptr[0] != '\n'; - sb_build (_sb, from->len + newline); + sb_build (_sb, from->len + newline + 2 * sizeof (".linefile") + 30); if (expansion == expanding_repeat && from_sb_expansion >= expanding_macro) expansion = expanding_nested; from_sb_expansion = expansion; Index: src/external/gpl3/binutils/dist/gas/macro.c diff -u src/external/gpl3/binutils/dist/gas/macro.c:1.1.1.8 src/external/gpl3/binutils/dist/gas/macro.c:1.2 --- src/external/gpl3/binutils/dist/gas/macro.c:1.1.1.8 Fri Dec 23 14:01:16 2022 +++ src/external/gpl3/binutils/dist/gas/macro.c Sun Jan 29 18:39:12 2023 @@ -1056,6 +1056,8 @@ macro_expand_body (sb *in, sb *out, form loclist = f; } + if (!err && (out->len == 0 || out->ptr[out->len - 1] != '\n')) +sb_add_char (out, '\n'); return err; } Index: src/external/gpl3/binutils/dist/gas/sb.c diff -u src/external/gpl3/binutils/dist/gas/sb.c:1.1.1.8 src/external/gpl3/binutils/dist/gas/sb.c:1.2 --- src/external/gpl3/binutils/dist/gas/sb.c:1.1.1.8 Fri Dec 23 14:01:17 2022 +++ src/external/gpl3/binutils/dist/gas/sb.c Sun Jan 29 18:39:12 2023 @@ -119,11 +119,12 @@ sb_scrub_and_add_sb (sb *ptr, sb *s) So we loop until the input S is consumed. */ while (1) { - size_t copy = s->len - (scrub_position - s->ptr); + size_t copy = s->len - (scrub_position - s->ptr) + do_scrub_pending (); if (copy == 0) break; sb_check (ptr, copy); - ptr->len += do_scrub_chars (scrub_from_sb, ptr->ptr + ptr->len, copy); + ptr->len += do_scrub_chars (scrub_from_sb, ptr->ptr + ptr->len, + ptr->max - ptr->len); } sb_to_scrub = 0;
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: christos Date: Sun Jan 29 23:39:12 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: app.c as.h input-scrub.c macro.c sb.c Log Message: Apply https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=4d74aab7aa562fe79d4669cdad0c32610531cbc0#patch1 to fix the vax issue (thanks @tsutsu for finding the patch) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/app.c cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/binutils/dist/gas/as.h cvs rdiff -u -r1.1.1.8 -r1.2 \ src/external/gpl3/binutils/dist/gas/input-scrub.c \ src/external/gpl3/binutils/dist/gas/macro.c \ src/external/gpl3/binutils/dist/gas/sb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: christos Date: Sat Jan 28 14:54:43 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: app.c Log Message: revert previous, seems to lose data. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/gas/app.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: christos Date: Sat Jan 28 14:54:43 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: app.c Log Message: revert previous, seems to lose data. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/gas/app.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/binutils/dist/gas/app.c diff -u src/external/gpl3/binutils/dist/gas/app.c:1.2 src/external/gpl3/binutils/dist/gas/app.c:1.3 --- src/external/gpl3/binutils/dist/gas/app.c:1.2 Fri Jan 27 18:36:04 2023 +++ src/external/gpl3/binutils/dist/gas/app.c Sat Jan 28 09:54:43 2023 @@ -410,7 +410,7 @@ do_scrub_chars (size_t (*get) (char *, s { char *to = tostart; char *toend = tostart + tolen; - char *from, *savefrom; + char *from; char *fromend; size_t fromlen; int ch, ch2 = 0; @@ -1234,7 +1234,6 @@ do_scrub_chars (size_t (*get) (char *, s thought out. On i386, we want '/' as line comment start AND we want C style comments. hence this hack. The whole lexical process should be reworked. xoxorich. */ - savefrom = from; if (ch == '/') { ch2 = GET (); @@ -1295,11 +1294,6 @@ do_scrub_chars (size_t (*get) (char *, s out_string = "\tlinefile "; else out_string = "\t.linefile "; - if (toend - to < strlen(out_string) + strlen(from) + 1) - { - from = savefrom - 1; - goto tofull; - } PUT (*out_string++); break; }
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: christos Date: Fri Jan 27 23:36:04 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: app.c Log Message: When trying to scrub characters in a macro to convert: # 123 "foo.c" 1 -> .linefile 123"foo.c"1 check if there is space first. Otherwise give up. On the vax it was trying to scrub: # 2672 "foo.c" 1 emul %r2,%r0,$0,%r4 # 0 "" 2 and ended up with an incomplete string: .linefile 2672"foo.c"1 emul %r2,%r0,$0,%r4 . And then when the assembler tried to parse the next line after the emul barfed with unknown pseudo-op . To generate a diff of this commit: cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/binutils/dist/gas/app.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/binutils/dist/gas/app.c diff -u src/external/gpl3/binutils/dist/gas/app.c:1.1.1.9 src/external/gpl3/binutils/dist/gas/app.c:1.2 --- src/external/gpl3/binutils/dist/gas/app.c:1.1.1.9 Fri Dec 23 14:01:17 2022 +++ src/external/gpl3/binutils/dist/gas/app.c Fri Jan 27 18:36:04 2023 @@ -410,7 +410,7 @@ do_scrub_chars (size_t (*get) (char *, s { char *to = tostart; char *toend = tostart + tolen; - char *from; + char *from, *savefrom; char *fromend; size_t fromlen; int ch, ch2 = 0; @@ -1234,6 +1234,7 @@ do_scrub_chars (size_t (*get) (char *, s thought out. On i386, we want '/' as line comment start AND we want C style comments. hence this hack. The whole lexical process should be reworked. xoxorich. */ + savefrom = from; if (ch == '/') { ch2 = GET (); @@ -1294,6 +1295,11 @@ do_scrub_chars (size_t (*get) (char *, s out_string = "\tlinefile "; else out_string = "\t.linefile "; + if (toend - to < strlen(out_string) + strlen(from) + 1) + { + from = savefrom - 1; + goto tofull; + } PUT (*out_string++); break; }
CVS commit: src/external/gpl3/binutils/dist/gas
Module Name:src Committed By: christos Date: Fri Jan 27 23:36:04 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas: app.c Log Message: When trying to scrub characters in a macro to convert: # 123 "foo.c" 1 -> .linefile 123"foo.c"1 check if there is space first. Otherwise give up. On the vax it was trying to scrub: # 2672 "foo.c" 1 emul %r2,%r0,$0,%r4 # 0 "" 2 and ended up with an incomplete string: .linefile 2672"foo.c"1 emul %r2,%r0,$0,%r4 . And then when the assembler tried to parse the next line after the emul barfed with unknown pseudo-op . To generate a diff of this commit: cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/binutils/dist/gas/app.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: christos Date: Wed Jan 25 19:08:41 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: obj-elf.c Log Message: disable no ifuncs no mips error for now. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/binutils/dist/gas/config/obj-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/binutils/dist/gas/config/obj-elf.c diff -u src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.9 src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.10 --- src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.9 Sat Dec 24 15:17:06 2022 +++ src/external/gpl3/binutils/dist/gas/config/obj-elf.c Wed Jan 25 14:08:41 2023 @@ -2395,10 +2395,12 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSE && bed->elf_osabi != ELFOSABI_FREEBSD) as_bad (_("symbol type \"%s\" is supported only by GNU " "and FreeBSD targets"), type_name); +#ifndef __NetBSD__ /* MIPS targets do not support IFUNCS. */ else if (bed->target_id == MIPS_ELF_DATA) as_bad (_("symbol type \"%s\" is not supported by " "MIPS targets"), type_name); +#endif elf_tdata (stdoutput)->has_gnu_osabi |= elf_gnu_osabi_ifunc; type = BSF_FUNCTION | BSF_GNU_INDIRECT_FUNCTION; }
CVS commit: src/external/gpl3/binutils/dist/gas/config
Module Name:src Committed By: christos Date: Wed Jan 25 19:08:41 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/gas/config: obj-elf.c Log Message: disable no ifuncs no mips error for now. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/binutils/dist/gas/config/obj-elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Mon Jan 16 15:52:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: put back or1k To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/binutils/dist/ld/configure.tgt 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/binutils/dist/ld/configure.tgt diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.42 src/external/gpl3/binutils/dist/ld/configure.tgt:1.43 --- src/external/gpl3/binutils/dist/ld/configure.tgt:1.42 Mon Jan 16 03:31:49 2023 +++ src/external/gpl3/binutils/dist/ld/configure.tgt Mon Jan 16 10:52:18 2023 @@ -690,6 +690,8 @@ ns32k-*-*bsd* | ns32k-pc532-lites*) targ or1k-*-elf | or1knd-*-elf | or1k-*-rtems* | or1knd-*-rtems*) targ_emul=elf32or1k ;; +or1k-*-netbsd* | or1knd-*-netbsd*) targ_emul=elf32or1k_nbsd + ;; or1k-*-linux* | or1knd-*-linux*) targ_emul=elf32or1k_linux ;; powerpc-*-netbsd*)
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Mon Jan 16 15:52:18 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: put back or1k To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/binutils/dist/ld/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: skrll Date: Mon Jan 16 08:31:49 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: Remove the trailing whitespace I added. oops. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/binutils/dist/ld/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: skrll Date: Mon Jan 16 08:31:49 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: Remove the trailing whitespace I added. oops. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/binutils/dist/ld/configure.tgt 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/binutils/dist/ld/configure.tgt diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.41 src/external/gpl3/binutils/dist/ld/configure.tgt:1.42 --- src/external/gpl3/binutils/dist/ld/configure.tgt:1.41 Mon Jan 16 08:27:22 2023 +++ src/external/gpl3/binutils/dist/ld/configure.tgt Mon Jan 16 08:31:49 2023 @@ -858,7 +858,7 @@ riscv64be*-*-linux* | riscv64be*-*-netbs targ_extra_emuls="elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32" targ_extra_libpath=$targ_extra_emuls ;; -riscv64*-*-linux* | riscv64*-*-netbsd*) +riscv64*-*-linux* | riscv64*-*-netbsd*) targ_emul=elf64lriscv targ_extra_emuls="elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32" targ_extra_libpath=$targ_extra_emuls
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: skrll Date: Mon Jan 16 08:27:22 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: Restore netbsd riscv targets To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/binutils/dist/ld/configure.tgt 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/binutils/dist/ld/configure.tgt diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.40 src/external/gpl3/binutils/dist/ld/configure.tgt:1.41 --- src/external/gpl3/binutils/dist/ld/configure.tgt:1.40 Sun Jan 15 23:31:51 2023 +++ src/external/gpl3/binutils/dist/ld/configure.tgt Mon Jan 16 08:27:22 2023 @@ -833,11 +833,13 @@ powerpc-*-windiss*) targ_emul=elf32ppcwi ;; pru*-*-*) targ_emul=pruelf ;; -riscv32be*-*-linux*) targ_emul=elf32briscv +riscv32be*-*-linux* | riscv32be*-*-netbsd*) + targ_emul=elf32briscv targ_extra_emuls="elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64" targ_extra_libpath=$targ_extra_emuls ;; -riscv32*-*-linux*) targ_emul=elf32lriscv +riscv32*-*-linux* | riscv-*-netbsd* | riscv32*-*-netbsd*) + targ_emul=elf32lriscv targ_extra_emuls="elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64" targ_extra_libpath=$targ_extra_emuls ;; @@ -851,11 +853,13 @@ riscv-*-* | riscv32*-*-*) targ_extra_emuls="elf64lriscv elf32briscv elf64briscv" targ_extra_libpath=$targ_extra_emuls ;; -riscv64be*-*-linux*) targ_emul=elf64briscv +riscv64be*-*-linux* | riscv64be*-*-netbsd*) + targ_emul=elf64briscv targ_extra_emuls="elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32" targ_extra_libpath=$targ_extra_emuls ;; -riscv64*-*-linux*) targ_emul=elf64lriscv +riscv64*-*-linux* | riscv64*-*-netbsd*) + targ_emul=elf64lriscv targ_extra_emuls="elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32" targ_extra_libpath=$targ_extra_emuls ;;
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: skrll Date: Mon Jan 16 08:27:22 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: Restore netbsd riscv targets To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/binutils/dist/ld/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: christos Date: Mon Jan 16 00:11:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf32-m68k.c elf32-vax.c elf64-mips.c elf64-ppc.c Log Message: fix compilation issues. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/bfd/elf32-m68k.c cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/bfd/elf32-vax.c cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/elf64-mips.c cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/bfd/elf64-ppc.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/binutils/dist/bfd/elf32-m68k.c diff -u src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.14 src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.15 --- src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.14 Sat Dec 24 15:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf32-m68k.c Sun Jan 15 19:11:50 2023 @@ -2804,7 +2804,7 @@ elf_m68k_check_relocs (bfd *abfd, || ELF32_R_TYPE (rel->r_info) == R_68K_PC16 || ELF32_R_TYPE (rel->r_info) == R_68K_PC32)) { - if (info->warn_shared_textrel) + if (bfd_link_textrel_check(info)) (*_bfd_error_handler) (_("warning: dynamic relocation to `%s' in readonly section `%s'"), h->root.root.string, sec->name); @@ -3258,7 +3258,7 @@ elf_m68k_discard_copies (struct elf_link s = s->next) if ((s->section->flags & SEC_READONLY) != 0) { - if (info->warn_shared_textrel) + if (bfd_link_textrel_check(info)) (*_bfd_error_handler) (_("warning: dynamic relocation to `%s' in readonly section `%s'"), h->root.root.string, s->section->name); Index: src/external/gpl3/binutils/dist/bfd/elf32-vax.c diff -u src/external/gpl3/binutils/dist/bfd/elf32-vax.c:1.19 src/external/gpl3/binutils/dist/bfd/elf32-vax.c:1.20 --- src/external/gpl3/binutils/dist/bfd/elf32-vax.c:1.19 Sat Dec 24 15:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf32-vax.c Sun Jan 15 19:11:50 2023 @@ -497,21 +497,21 @@ elf32_vax_set_private_flags (bfd *abfd, } /* Copy vax-specific data from one module to another */ -static bfd_boolean +static bool elf32_vax_copy_private_bfd_data (bfd *ibfd, bfd *obfd) { flagword in_flags; if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour || bfd_get_flavour (obfd) != bfd_target_elf_flavour) -return TRUE; +return true; in_flags = elf_elfheader (ibfd)->e_flags; elf_elfheader (obfd)->e_flags = in_flags; - elf_flags_init (obfd) = TRUE; + elf_flags_init (obfd) = true; - return TRUE; + return true; } /* Merge backend specific data from an object file to the output @@ -752,7 +752,7 @@ elf_vax_check_relocs (bfd *abfd, struct if (sec->flags & SEC_READONLY) { - if (info->warn_shared_textrel) + if (bfd_link_textrel_check(info)) (*_bfd_error_handler) (_("warning: dynamic relocation to `%s' in readonly section `%s'"), h ? h->root.root.string : "?", sec->name); Index: src/external/gpl3/binutils/dist/bfd/elf64-mips.c diff -u src/external/gpl3/binutils/dist/bfd/elf64-mips.c:1.11 src/external/gpl3/binutils/dist/bfd/elf64-mips.c:1.12 --- src/external/gpl3/binutils/dist/bfd/elf64-mips.c:1.11 Sat Dec 24 15:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf64-mips.c Sun Jan 15 19:11:50 2023 @@ -111,7 +111,7 @@ static bfd_reloc_status_type mips_elf64_ (bfd *, asymbol *, bool, char **, bfd_vma *); static bool mips_elf64_object_p (bfd *); -static bfd_boolean mips_elf64_is_local_label_name +static bool mips_elf64_is_local_label_name (bfd *, const char *); static irix_compat_t elf64_mips_irix_compat (bfd *); @@ -3370,7 +3370,7 @@ mips_elf64_be_swap_reloca_out (bfd *abfd (Elf64_Mips_External_Rela *) dst); } -/* Set the GP value for OUTPUT_BFD. Returns FALSE if this is a +/* Set the GP value for OUTPUT_BFD. Returns false if this is a dangerous relocation. */ static bool @@ -4520,11 +4520,11 @@ mips_elf64_object_p (bfd *abfd) } /* MIPS ELF local labels start with "$L". */ -static bfd_boolean +static bool mips_elf64_is_local_label_name (bfd *abfd, const char *name) { if (name[0] == '$' && name[1] == 'L') -return TRUE; +return true; /* We accept the generic ELF local label syntax as well. */ return _bfd_elf_is_local_label_name (abfd, name); Index: src/external/gpl3/binutils/dist/bfd/elf64-ppc.c diff -u src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.17 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.18 --- src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.17 Sat Dec 24 15:17:04 2022 +++ src/external/gpl3/binutils/dist/bfd/elf64-ppc.c Sun Jan 15 19:11:50 2023 @@ -8099,7 +8099,7 @@ ppc64_elf_tls_setup (struct bfd_link_inf return true; } -/* Return TRUE iff REL is a branch reloc with a global symbol matching +/* Return
CVS commit: src/external/gpl3/binutils/dist/bfd
Module Name:src Committed By: christos Date: Mon Jan 16 00:11:50 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: elf32-m68k.c elf32-vax.c elf64-mips.c elf64-ppc.c Log Message: fix compilation issues. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/bfd/elf32-m68k.c cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/bfd/elf32-vax.c cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/elf64-mips.c cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Sun Jan 15 23:31:51 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: put back all our mips stuff. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/binutils/dist/ld/configure.tgt 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/binutils/dist/ld/configure.tgt diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.39 src/external/gpl3/binutils/dist/ld/configure.tgt:1.40 --- src/external/gpl3/binutils/dist/ld/configure.tgt:1.39 Fri Jan 6 10:47:38 2023 +++ src/external/gpl3/binutils/dist/ld/configure.tgt Sun Jan 15 18:31:51 2023 @@ -541,10 +541,6 @@ mips*-sgi-irix5*) targ_emul=elf32bsmip mips*-sgi-irix6*) targ_emul=elf32bmipn32 targ_extra_emuls="elf32bsmip elf64bmip" targ_extra_libpath=$targ_extra_emuls ;; -mips64*el-*-netbsd*) targ_emul=elf32ltsmipn32 - targ_extra_emuls="elf64btsmip elf64ltsmip elf32ltsmip elf32btsmipn32 elf32btsmip" - targ_extra_libpath=$targ_extra_emuls - ;; mips*el-*-haiku*) targ_emul=elf_mipsel_haiku targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" ;; @@ -556,16 +552,22 @@ mips64*-*-netbsd*) targ_emul=elf32btsmip targ_extra_emuls="elf64ltsmip elf64btsmip elf32btsmip elf32ltsmipn32 elf32ltsmip" targ_extra_libpath=$targ_extra_emuls ;; +mipsn64*-*-netbsd*) targ_emul=elf64btsmip + targ_extra_emuls="elf64ltsmip elf64btsmip elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32" + targ_extra_libpath=$targ_extra_emuls + ;; +mips*el-*-netbsd*) targ_emul=elf32ltsmip + targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip" + ;; +mips*-*-netbsd*) targ_emul=elf32btsmip + targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip" + ;; mips64el-*-openbsd*) targ_emul=elf64ltsmip targ_extra_emuls=elf64btsmip ;; mips64-*-openbsd*) targ_emul=elf64btsmip targ_extra_emuls=elf64ltsmip ;; -mipsn64*-*-netbsd*) targ_emul=elf64btsmip - targ_extra_emuls="elf64ltsmip elf64btsmip elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32" - targ_extra_libpath=$targ_extra_emuls - ;; mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;; mips*vr4300-*-elf*) targ_emul=elf32b4300
CVS commit: src/external/gpl3/binutils/dist/ld
Module Name:src Committed By: christos Date: Sun Jan 15 23:31:51 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/ld: configure.tgt Log Message: put back all our mips stuff. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/binutils/dist/ld/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/binutils/dist
Module Name:src Committed By: christos Date: Sun Jan 15 23:10:53 UTC 2023 Modified Files: src/external/gpl3/binutils/dist/bfd: configure warning.m4 src/external/gpl3/binutils/dist/binutils: configure src/external/gpl3/binutils/dist/gas: configure src/external/gpl3/binutils/dist/gold: configure src/external/gpl3/binutils/dist/gprof: configure src/external/gpl3/binutils/dist/ld: configure src/external/gpl3/binutils/dist/opcodes: configure Log Message: disable -Wstack-check since vax does not have it. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/bfd/configure cvs rdiff -u -r1.1.1.7 -r1.2 src/external/gpl3/binutils/dist/bfd/warning.m4 cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/binutils/configure cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/gas/configure cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/binutils/dist/gold/configure cvs rdiff -u -r1.1.1.10 -r1.2 src/external/gpl3/binutils/dist/gprof/configure cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/ld/configure cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/binutils/dist/opcodes/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/binutils/dist/bfd/configure diff -u src/external/gpl3/binutils/dist/bfd/configure:1.18 src/external/gpl3/binutils/dist/bfd/configure:1.19 --- src/external/gpl3/binutils/dist/bfd/configure:1.18 Fri Jan 6 10:47:38 2023 +++ src/external/gpl3/binutils/dist/bfd/configure Sun Jan 15 18:10:52 2023 @@ -12086,17 +12086,17 @@ rm -f conftest* # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -__GNUC__ -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : - -else - GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" -fi -rm -f conftest* +#cat confdefs.h - <<_ACEOF >conftest.$ac_ext +#/* end confdefs.h. */ +#__GNUC__ +#_ACEOF +#if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +# $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : +# +#else +# GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" +#fi +#rm -f conftest* # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. @@ -12131,17 +12131,17 @@ rm -f conftest* # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -__GNUC__ -_ACEOF -if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | - $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : - -else - GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" -fi -rm -f conftest* +#cat confdefs.h - <<_ACEOF >conftest.$ac_ext +#/* end confdefs.h. */ +#__GNUC__ +#_ACEOF +#if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | +# $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : +# +#else +# GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" +#fi +#rm -f conftest* # Check whether --enable-werror was given. Index: src/external/gpl3/binutils/dist/bfd/warning.m4 diff -u src/external/gpl3/binutils/dist/bfd/warning.m4:1.1.1.7 src/external/gpl3/binutils/dist/bfd/warning.m4:1.2 --- src/external/gpl3/binutils/dist/bfd/warning.m4:1.1.1.7 Fri Dec 23 14:01:34 2022 +++ src/external/gpl3/binutils/dist/bfd/warning.m4 Sun Jan 15 18:10:52 2023 @@ -50,7 +50,7 @@ GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wst AC_EGREP_CPP([(^[0-3]$|^__GNUC__$)],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow") # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. -AC_EGREP_CPP([(^[0-4]$|^__GNUC__$)],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144") +#AC_EGREP_CPP([(^[0-4]$|^__GNUC__$)],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144") # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. WARN_WRITE_STRINGS="" Index: src/external/gpl3/binutils/dist/binutils/configure diff -u src/external/gpl3/binutils/dist/binutils/configure:1.11 src/external/gpl3/binutils/dist/binutils/configure:1.12 --- src/external/gpl3/binutils/dist/binutils/configure:1.11 Sat Dec 24 15:17:05 2022 +++ src/external/gpl3/binutils/dist/binutils/configure Sun Jan 15 18:10:52 2023 @@ -12107,17 +12107,17 @@ rm -f conftest* # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -__GNUC__ -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : - -else - GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" -fi -rm -f conftest* +#cat confdefs.h - <<_ACEOF >conftest.$ac_ext +#/* end confdefs.h. */ +#__GNUC__ +#_ACEOF +#if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +# $EGREP