CVS commit: src/usr.sbin/tprof

2022-12-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Dec 26 03:25:55 UTC 2022

Modified Files:
src/usr.sbin/tprof: tprof.c

Log Message:
Reflect recent new options for top operation, add a and c


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/tprof/tprof.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/tprof

2022-12-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Dec 26 03:25:55 UTC 2022

Modified Files:
src/usr.sbin/tprof: tprof.c

Log Message:
Reflect recent new options for top operation, add a and c


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/tprof/tprof.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/tprof/tprof.c
diff -u src/usr.sbin/tprof/tprof.c:1.18 src/usr.sbin/tprof/tprof.c:1.19
--- src/usr.sbin/tprof/tprof.c:1.18	Fri Dec 16 08:02:04 2022
+++ src/usr.sbin/tprof/tprof.c	Mon Dec 26 03:25:55 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: tprof.c,v 1.18 2022/12/16 08:02:04 ryo Exp $	*/
+/*	$NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $	*/
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: tprof.c,v 1.18 2022/12/16 08:02:04 ryo Exp $");
+__RCSID("$NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $");
 #endif /* not lint */
 
 #include 
@@ -133,7 +133,7 @@ usage(void)
 	" only outputs a counter.\n");
 	fprintf(stderr, "\tanalyze [-CkLPs] [-p pid] file\n");
 	fprintf(stderr, "\t\tAnalyze the samples of the file 'file'.\n");
-	fprintf(stderr, "\ttop [-e name [-e ...]] [-i interval] [-u]\n");
+	fprintf(stderr, "\ttop [-e name [-e ...]] [-i interval] [-acu]\n");
 	fprintf(stderr, "\t\tDisplay profiling results in real-time.\n");
 	exit(EXIT_FAILURE);
 }



CVS commit: src/sys/arch/mac68k/mac68k

2022-12-25 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Mon Dec 26 01:05:36 UTC 2022

Modified Files:
src/sys/arch/mac68k/mac68k: machdep.c

Log Message:
Sanity check and set the framebuffer length if necessary.

Addresses PR 57126.


To generate a diff of this commit:
cvs rdiff -u -r1.363 -r1.364 src/sys/arch/mac68k/mac68k/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/mac68k/machdep.c
diff -u src/sys/arch/mac68k/mac68k/machdep.c:1.363 src/sys/arch/mac68k/mac68k/machdep.c:1.364
--- src/sys/arch/mac68k/mac68k/machdep.c:1.363	Sat Oct  9 20:00:41 2021
+++ src/sys/arch/mac68k/mac68k/machdep.c	Mon Dec 26 01:05:35 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.363 2021/10/09 20:00:41 tsutsui Exp $	*/
+/*	$NetBSD: machdep.c,v 1.364 2022/12/26 01:05:35 nat Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -74,7 +74,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.363 2021/10/09 20:00:41 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.364 2022/12/26 01:05:35 nat Exp $");
 
 #include "opt_adb.h"
 #include "opt_compat_netbsd.h"
@@ -2616,6 +2616,10 @@ get_mapping(void)
 			mac68k_video.mv_len, mac68k_video.mv_len);
 		}
 	}
+	/* mv_len sanity check */
+	int reqsize = mac68k_video.mv_height * mac68k_video.mv_stride;
+	if (mac68k_video.mv_len != 0 && mac68k_video.mv_len < reqsize)
+		mac68k_video.mv_len = reqsize;
 
 	return load_addr;	/* Return physical address of logical 0 */
 }



CVS commit: src/sys/arch/mac68k/mac68k

2022-12-25 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Mon Dec 26 01:05:36 UTC 2022

Modified Files:
src/sys/arch/mac68k/mac68k: machdep.c

Log Message:
Sanity check and set the framebuffer length if necessary.

Addresses PR 57126.


To generate a diff of this commit:
cvs rdiff -u -r1.363 -r1.364 src/sys/arch/mac68k/mac68k/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc/root

2022-12-25 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sun Dec 25 23:58:50 UTC 2022

Modified Files:
src/etc/root: dot.profile

Log Message:
As with normal users, include /usr/games in the default PATH of root


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/etc/root/dot.profile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc/root

2022-12-25 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sun Dec 25 23:58:50 UTC 2022

Modified Files:
src/etc/root: dot.profile

Log Message:
As with normal users, include /usr/games in the default PATH of root


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/etc/root/dot.profile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/root/dot.profile
diff -u src/etc/root/dot.profile:1.34 src/etc/root/dot.profile:1.35
--- src/etc/root/dot.profile:1.34	Thu Jul 21 07:51:12 2022
+++ src/etc/root/dot.profile	Sun Dec 25 23:58:50 2022
@@ -1,9 +1,10 @@
-#	$NetBSD: dot.profile,v 1.34 2022/07/21 07:51:12 kre Exp $
+#	$NetBSD: dot.profile,v 1.35 2022/12/25 23:58:50 nia Exp $
 
 case "${PATH}" in
 /rescue:*)	;; # leave it alone, user can change manually (if required)
 *)	export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
-	export PATH=${PATH}:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin
+	export PATH=${PATH}:/usr/games:/usr/X11R7/bin
+	export PATH=${PATH}:/usr/local/sbin:/usr/local/bin
 	;;
 esac
 



CVS commit: src/external/mit/xorg/bin/xeyes

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 23:05:58 UTC 2022

Modified Files:
src/external/mit/xorg/bin/xeyes: Makefile

Log Message:
Need -lxcb for xcb_create_pixmap


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/bin/xeyes/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/bin/xeyes/Makefile
diff -u src/external/mit/xorg/bin/xeyes/Makefile:1.4 src/external/mit/xorg/bin/xeyes/Makefile:1.5
--- src/external/mit/xorg/bin/xeyes/Makefile:1.4	Mon Aug 23 18:14:31 2021
+++ src/external/mit/xorg/bin/xeyes/Makefile	Sun Dec 25 18:05:58 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2021/08/23 22:14:31 mrg Exp $
+#	$NetBSD: Makefile,v 1.5 2022/12/25 23:05:58 christos Exp $
 
 .include 
 
@@ -8,9 +8,10 @@ PROG=	xeyes
 SRCS=	xeyes.c Eyes.c transform.c
 
 LDADD+=	-lXi -lXmu -lXt -lSM -lICE -lXext -lXrender -lX11 -lm \
-	-lxcb-xfixes -lxcb-damage -lxcb-present -lX11-xcb
+	-lxcb-xfixes -lxcb-damage -lxcb-present -lX11-xcb -lxcb
 DPADD+=	${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBM} \
-	${LIBXCB_XFIXES} ${LIBXCB_DAMAGE} ${LIBXCB_PRESENT} ${LIBX11_XCB} 
+	${LIBXCB_XFIXES} ${LIBXCB_DAMAGE} ${LIBXCB_PRESENT} ${LIBX11_XCB} \
+	${LIBXCB}
 
 .PATH:	${X11SRCDIR.${PROG}}
 .PATH:	${X11SRCDIR.${PROG}}/man



CVS commit: src/external/mit/xorg/bin/xeyes

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 23:05:58 UTC 2022

Modified Files:
src/external/mit/xorg/bin/xeyes: Makefile

Log Message:
Need -lxcb for xcb_create_pixmap


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/bin/xeyes/Makefile

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

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 22:34:45 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/bfd: Makefile.am Makefile.in

Log Message:
Explain our local changes


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/bfd/Makefile.am
cvs rdiff -u -r1.10 -r1.11 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.am
diff -u src/external/gpl3/binutils/dist/bfd/Makefile.am:1.9 src/external/gpl3/binutils/dist/bfd/Makefile.am:1.10
--- src/external/gpl3/binutils/dist/bfd/Makefile.am:1.9	Sat Dec 24 15:17:04 2022
+++ src/external/gpl3/binutils/dist/bfd/Makefile.am	Sun Dec 25 17:34:45 2022
@@ -842,6 +842,8 @@ endif
 	$(AM_V_CC)$(LTCOMPILE) -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
 endif
 
+# change IMPSRC ($<) to ALLSRC ($>) in the following rules so they work with
+# bmake
 elf32-target.h : elfxx-target.h
 	$(AM_V_GEN)$(SED) -e s/NN/32/g < $> > $@
 
@@ -1008,4 +1010,6 @@ coff-tic54x.lo: coff-tic54x.c
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC)$(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
 
+# Comment out the doc snippet because it has pattern rules our make does not
+# understand
 #include doc/local.mk

Index: src/external/gpl3/binutils/dist/bfd/Makefile.in
diff -u src/external/gpl3/binutils/dist/bfd/Makefile.in:1.10 src/external/gpl3/binutils/dist/bfd/Makefile.in:1.11
--- src/external/gpl3/binutils/dist/bfd/Makefile.in:1.10	Sat Dec 24 15:17:04 2022
+++ src/external/gpl3/binutils/dist/bfd/Makefile.in	Sun Dec 25 17:34:45 2022
@@ -2361,6 +2361,8 @@ dwarf2.lo: dwarf2.c Makefile
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC)$(LTCOMPILE) -c -o $@ -DDEBUGDIR=\"$(DEBUGDIR)\" $(srcdir)/dwarf2.c
 
+# change IMPSRC ($<) to ALLSRC ($>) in the following rules so they work with
+# bmake
 elf32-target.h : elfxx-target.h
 	$(AM_V_GEN)$(SED) -e s/NN/32/g < $> > $@
 
@@ -2499,6 +2501,8 @@ doc/chew.stamp: $(srcdir)/doc/chew.c doc
 	  doc/chw$(EXEEXT_FOR_BUILD) $(MKDOC) && \
 	touch $@
 
+# Comment out the doc snippet because it has pattern rules our make does not
+# understand
 #.PRECIOUS: doc/%.stamp
 #doc/%.texi: doc/%.stamp ; @true
 #doc/%.stamp: $(srcdir)/%.h $(srcdir)/doc/doc.str $(MKDOC) doc/$(am__dirstamp)



CVS commit: src/external/gpl3/binutils/dist/bfd

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 22:34:45 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/bfd: Makefile.am Makefile.in

Log Message:
Explain our local changes


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils/dist/bfd/Makefile.am
cvs rdiff -u -r1.10 -r1.11 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/sys/arch/i386/stand/efiboot

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 22:14:05 UTC 2022

Modified Files:
src/sys/arch/i386/stand/efiboot: Makefile.efiboot

Log Message:
Fix broken flag -nocombreloc, 2.34 did not complain for not understanding it,
but 2.39 wants -z nocombreloc. Is it really needed?


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/i386/stand/efiboot/Makefile.efiboot

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/stand/efiboot

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 22:14:05 UTC 2022

Modified Files:
src/sys/arch/i386/stand/efiboot: Makefile.efiboot

Log Message:
Fix broken flag -nocombreloc, 2.34 did not complain for not understanding it,
but 2.39 wants -z nocombreloc. Is it really needed?


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/i386/stand/efiboot/Makefile.efiboot

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/i386/stand/efiboot/Makefile.efiboot
diff -u src/sys/arch/i386/stand/efiboot/Makefile.efiboot:1.19 src/sys/arch/i386/stand/efiboot/Makefile.efiboot:1.20
--- src/sys/arch/i386/stand/efiboot/Makefile.efiboot:1.19	Thu Nov 18 11:17:40 2021
+++ src/sys/arch/i386/stand/efiboot/Makefile.efiboot	Sun Dec 25 17:14:05 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.efiboot,v 1.19 2021/11/18 16:17:40 manu Exp $
+# $NetBSD: Makefile.efiboot,v 1.20 2022/12/25 22:14:05 christos Exp $
 
 S=		${.CURDIR}/../../../../..
 
@@ -41,8 +41,8 @@ BINMODE=444
 .PATH:	${.CURDIR}/../../libsa
 
 LDSCRIPT?= ${.CURDIR}/ldscript
-LDFLAGS+= --no-dynamic-linker --noinhibit-exec
-LDFLAGS+= -nostdlib -T${LDSCRIPT} -Bsymbolic -shared -nocombreloc
+LDFLAGS+= --no-dynamic-linker --noinhibit-exec -z nocombreloc
+LDFLAGS+= -nostdlib -T${LDSCRIPT} -Bsymbolic -shared
 CPPFLAGS+= -I$S -I${.CURDIR} -I${.CURDIR}/.. -I$S/lib/libsa
 CPPFLAGS+= -I${.OBJDIR}
 CPPFLAGS+= -I${.CURDIR}/../../lib



CVS commit: src/external/cddl/osnet/dist/tools/ctf/cvt

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:23:43 UTC 2022

Modified Files:
src/external/cddl/osnet/dist/tools/ctf/cvt: output.c

Log Message:
Don't bail out if the input file does not have a symbol table. This happens
with crtn.o which used to have an empty symbol table with binutils 2.34,
with binutils 2.39 has no symbol table.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/cddl/osnet/dist/tools/ctf/cvt/output.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/cddl/osnet/dist/tools/ctf/cvt/output.c
diff -u src/external/cddl/osnet/dist/tools/ctf/cvt/output.c:1.9 src/external/cddl/osnet/dist/tools/ctf/cvt/output.c:1.10
--- src/external/cddl/osnet/dist/tools/ctf/cvt/output.c:1.9	Mon May 28 17:05:06 2018
+++ src/external/cddl/osnet/dist/tools/ctf/cvt/output.c	Sun Dec 25 15:23:42 2022
@@ -353,15 +353,17 @@ sort_iidescs(Elf *elf, const char *file,
 	match.iim_file = NULL;
 
 	if ((stidx = findelfsecidx(elf, file,
-	dynsym ? ".dynsym" : ".symtab")) < 0)
-		terminate("%s: Can't open symbol table\n", file);
-	scn = elf_getscn(elf, stidx);
-	data = elf_getdata(scn, NULL);
-	gelf_getshdr(scn, );
-	nent = shdr.sh_size / shdr.sh_entsize;
+	dynsym ? ".dynsym" : ".symtab")) < 0) {
+		nent = 0;
+	} else {
+		scn = elf_getscn(elf, stidx);
+		data = elf_getdata(scn, NULL);
+		gelf_getshdr(scn, );
+		nent = shdr.sh_size / shdr.sh_entsize;
 
-	scn = elf_getscn(elf, shdr.sh_link);
-	strdata = elf_getdata(scn, NULL);
+		scn = elf_getscn(elf, shdr.sh_link);
+		strdata = elf_getdata(scn, NULL);
+	}
 
 	iiburst = iiburst_new(td, nent);
 
@@ -665,8 +667,7 @@ write_file(Elf *src, const char *srcname
 	}
 
 	if (symtab_idx == -1) {
-		terminate("%s: Cannot find %s section\n", srcname,
-		dynsym ? "SHT_DYNSYM" : "SHT_SYMTAB");
+		goto out;
 	}
 
 	/* Add the ctf section */
@@ -709,6 +710,7 @@ write_file(Elf *src, const char *srcname
 	/* commit to disk */
 	dehdr.e_shstrndx = secxlate[sehdr.e_shstrndx];
 	gelf_update_ehdr(dst, );
+out:
 	if (elf_update(dst, ELF_C_WRITE) < 0)
 		elfterminate(dstname, "Cannot finalize temp file");
 



CVS commit: src/external/cddl/osnet/dist/tools/ctf/cvt

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:23:43 UTC 2022

Modified Files:
src/external/cddl/osnet/dist/tools/ctf/cvt: output.c

Log Message:
Don't bail out if the input file does not have a symbol table. This happens
with crtn.o which used to have an empty symbol table with binutils 2.34,
with binutils 2.39 has no symbol table.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/cddl/osnet/dist/tools/ctf/cvt/output.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

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:06:01 UTC 2022

Modified Files:
src/external/gpl3/binutils/lib/libbfd/arch/i386: bfd.h bfdver.h
config.h defs.mk
src/external/gpl3/binutils/lib/libgnuctf/arch/i386: config.h defs.mk
src/external/gpl3/binutils/lib/libiberty/arch/i386: defs.mk
src/external/gpl3/binutils/lib/libopcodes/arch/i386: config.h
src/external/gpl3/binutils/usr.bin/common/arch/i386: config.h defs.mk
src/external/gpl3/binutils/usr.bin/gas/arch/i386: config.h defs.mk
src/external/gpl3/binutils/usr.bin/gprof/arch/i386: gconfig.h
src/external/gpl3/binutils/usr.bin/ld/arch/i386: config.h

Log Message:
regen for i386


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h \
src/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/lib/libbfd/arch/i386/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/lib/libgnuctf/arch/i386/config.h \
src/external/gpl3/binutils/lib/libgnuctf/arch/i386/defs.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/binutils/usr.bin/common/arch/i386/config.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/binutils/usr.bin/ld/arch/i386/config.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/lib/libbfd/arch/i386/bfd.h
diff -u src/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h:1.10 src/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h:1.11
--- src/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h:1.10	Fri Apr  3 20:46:53 2020
+++ src/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h	Sun Dec 25 15:06:00 2022
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-binutils,v 1.11 2018/11/08 02:08:35 christos Exp  */
+/* Generated from: NetBSD: mknative-binutils,v 1.14 2022/12/24 20:17:46 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* DO NOT EDIT!  -*- buffer-read-only: t -*-  This file is automatically
@@ -11,7 +11,7 @@
 
 /* Main header file for the bfd library -- portable access to object files.
 
-   Copyright (C) 1990-2020 Free Software Foundation, Inc.
+   Copyright (C) 1990-2022 Free Software Foundation, Inc.
 
Contributed by Cygnus Support.
 
@@ -45,9 +45,11 @@ extern "C" {
 
 #include "ansidecl.h"
 #include "symcat.h"
-#include "bfd_stdint.h"
+#include 
+#include 
 #include "diagnostics.h"
 #include 
+#include 
 #include 
 
 #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
@@ -67,23 +69,6 @@ extern "C" {
comma and then the length of the string.  Doing this by hand
is error prone, so using this macro is safer.  */
 #define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
-/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
-   to create the arguments to another macro, since the preprocessor
-   will mis-count the number of arguments to the outer macro (by not
-   evaluating STRING_COMMA_LEN and so missing the comma).  This is a
-   problem for example when trying to use STRING_COMMA_LEN to build
-   the arguments to the strncmp() macro.  Hence this alternative
-   definition of strncmp is provided here.
-
-   Note - these macros do NOT work if STR2 is not a constant string.  */
-#define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
-  /* strcpy() can have a similar problem, but since we know we are
- copying a constant string, we can use memcpy which will be faster
- since there is no need to check for a NUL byte inside STR.  We
- can also save time if we do not need to copy the terminating NUL.  */
-#define LITMEMCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2) - 1)
-#define LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2))
-
 
 #define BFD_SUPPORTS_PLUGINS 1
 
@@ -95,109 +80,64 @@ extern "C" {
 /* The word size of the default bfd target.  */
 #define BFD_DEFAULT_TARGET_SIZE 32
 
-#define BFD_HOST_64BIT_LONG 0
-#define BFD_HOST_64BIT_LONG_LONG 1
-#if 1
-#define BFD_HOST_64_BIT long long
-#define BFD_HOST_U_64_BIT unsigned long long
-typedef 

CVS commit: src/external/gpl3/binutils

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:06:01 UTC 2022

Modified Files:
src/external/gpl3/binutils/lib/libbfd/arch/i386: bfd.h bfdver.h
config.h defs.mk
src/external/gpl3/binutils/lib/libgnuctf/arch/i386: config.h defs.mk
src/external/gpl3/binutils/lib/libiberty/arch/i386: defs.mk
src/external/gpl3/binutils/lib/libopcodes/arch/i386: config.h
src/external/gpl3/binutils/usr.bin/common/arch/i386: config.h defs.mk
src/external/gpl3/binutils/usr.bin/gas/arch/i386: config.h defs.mk
src/external/gpl3/binutils/usr.bin/gprof/arch/i386: gconfig.h
src/external/gpl3/binutils/usr.bin/ld/arch/i386: config.h

Log Message:
regen for i386


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h \
src/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/lib/libbfd/arch/i386/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/lib/libgnuctf/arch/i386/config.h \
src/external/gpl3/binutils/lib/libgnuctf/arch/i386/defs.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/binutils/usr.bin/common/arch/i386/config.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/binutils/usr.bin/ld/arch/i386/config.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/bfd

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:05:49 UTC 2022

Added Files:
src/external/gpl3/binutils/dist/bfd: i386netbsd.c

Log Message:
Add i386 missing file.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.5 src/external/gpl3/binutils/dist/bfd/i386netbsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/gpl3/binutils/dist/bfd/i386netbsd.c
diff -u /dev/null src/external/gpl3/binutils/dist/bfd/i386netbsd.c:1.5
--- /dev/null	Sun Dec 25 15:05:49 2022
+++ src/external/gpl3/binutils/dist/bfd/i386netbsd.c	Sun Dec 25 15:05:49 2022
@@ -0,0 +1,38 @@
+/* BFD back-end for NetBSD/386 a.out-ish binaries.
+   Copyright (C) 1990-2016 Free Software Foundation, Inc.
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA. */
+
+#define	BYTES_IN_WORD	4
+#undef TARGET_IS_BIG_ENDIAN_P
+
+#define	TARGET_PAGE_SIZE	4096
+#define	SEGMENT_SIZE	TARGET_PAGE_SIZE
+
+#define	DEFAULT_ARCH	bfd_arch_i386
+#define	DEFAULT_MID 	M_386_NETBSD
+
+/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
+   remove whitespace added here, and thus will fail to concatenate
+   the tokens.  */
+#define MY(OP) CONCAT2 (i386_aout_nbsd_,OP)
+
+/* This needs to start with a.out so GDB knows it is an a.out variant.  */
+#define TARGETNAME "a.out-i386-netbsd"
+
+#include "netbsd.h"



CVS commit: src/external/gpl3/binutils/dist/bfd

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:05:49 UTC 2022

Added Files:
src/external/gpl3/binutils/dist/bfd: i386netbsd.c

Log Message:
Add i386 missing file.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.5 src/external/gpl3/binutils/dist/bfd/i386netbsd.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

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:04:03 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/bfd: version.h

Log Message:
Add a space between the version package and the version string because gcc
configure needs it to parse the ld version to detect if support is there
for symbol visibility. Yes we pass '(NetBSD binutils nb1) ' in the Makefiles,
but this is fragile with all the automake massaging, and this is much easier
to enforce.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/version.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/bfd

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 20:04:03 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/bfd: version.h

Log Message:
Add a space between the version package and the version string because gcc
configure needs it to parse the ld version to detect if support is there
for symbol visibility. Yes we pass '(NetBSD binutils nb1) ' in the Makefiles,
but this is fragile with all the automake massaging, and this is much easier
to enforce.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/version.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/bfd/version.h
diff -u src/external/gpl3/binutils/dist/bfd/version.h:1.11 src/external/gpl3/binutils/dist/bfd/version.h:1.12
--- src/external/gpl3/binutils/dist/bfd/version.h:1.11	Sat Dec 24 15:17:04 2022
+++ src/external/gpl3/binutils/dist/bfd/version.h	Sun Dec 25 15:04:03 2022
@@ -18,5 +18,5 @@
sonames.  */
 #define BFD_VERSION_DATE 20220805
 #define BFD_VERSION @bfd_version@
-#define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
+#define BFD_VERSION_STRING  @bfd_version_package@ " " @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@



CVS commit: src/tools/binutils

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 17:25:22 UTC 2022

Modified Files:
src/tools/binutils: Makefile

Log Message:
Handle both places where m68k-parse can be found (for 2.34 and 2.39)


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/tools/binutils/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/binutils/Makefile
diff -u src/tools/binutils/Makefile:1.34 src/tools/binutils/Makefile:1.35
--- src/tools/binutils/Makefile:1.34	Sat Dec 24 15:17:46 2022
+++ src/tools/binutils/Makefile	Sun Dec 25 12:25:22 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.34 2022/12/24 20:17:46 christos Exp $
+#	$NetBSD: Makefile,v 1.35 2022/12/25 17:25:22 christos Exp $
 
 .include 
 
@@ -16,10 +16,18 @@ CONFIGURE_ARGS=	--target=${MACHINE_GNU_P
 		--disable-werror --enable-initfini-array=yes \
 		${BRANDING}
 
-build/gas/m68k-parse.c: ${GNUHOSTDIST}/gas/config/m68k-parse.c
+.if exists(${GNUHOSTDIST}/gas/config/m68k-parse.c)
+M68K_PARSE=${GNUHOSTDIST}/gas/config/m68k-parse.c
+.elif exists(${GNUHOSTDIST}/gas/m68k-parse.c) 
+M68K_PARSE=${GNUHOSTDIST}/gas/m68k-parse.c
+.else
+.error "Can't find m68k-parse.c
+.endif
+
+build/gas/m68k-parse.c: ${M68K_PARSE}
 	@mkdir build 2>/dev/null || true
 	@mkdir build/gas 2>/dev/null || true
-	cat ${GNUHOSTDIST}/gas/config/m68k-parse.c > ${.TARGET}
+	cat ${M68K_PARSE} > ${.TARGET}
 
 .configure_done: build/gas/m68k-parse.c
 



CVS commit: src/tools/binutils

2022-12-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 25 17:25:22 UTC 2022

Modified Files:
src/tools/binutils: Makefile

Log Message:
Handle both places where m68k-parse can be found (for 2.34 and 2.39)


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/tools/binutils/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2022-12-25 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sun Dec 25 15:02:29 UTC 2022

Modified Files:
src/distrib/sets/lists/comp: shl.mi

Log Message:
fix libopcodes.so.11.0 binutils condition


To generate a diff of this commit:
cvs rdiff -u -r1.350 -r1.351 src/distrib/sets/lists/comp/shl.mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/comp/shl.mi
diff -u src/distrib/sets/lists/comp/shl.mi:1.350 src/distrib/sets/lists/comp/shl.mi:1.351
--- src/distrib/sets/lists/comp/shl.mi:1.350	Sat Dec 24 23:01:34 2022
+++ src/distrib/sets/lists/comp/shl.mi	Sun Dec 25 15:02:29 2022
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.350 2022/12/24 23:01:34 christos Exp $
+# $NetBSD: shl.mi,v 1.351 2022/12/25 15:02:29 jakllsch Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -127,7 +127,7 @@
 ./usr/lib/libopcodes.so.10			comp-c-shlib		compatfile,binutils=234
 ./usr/lib/libopcodes.so.10.0			comp-c-shlib		compatfile,binutils=234
 ./usr/lib/libopcodes.so.11			comp-c-shlib		compatfile,binutils=239
-./usr/lib/libopcodes.so.11.0			comp-c-shlib		compatfile,binutils=234
+./usr/lib/libopcodes.so.11.0			comp-c-shlib		compatfile,binutils=239
 ./usr/lib/libopcodes.so.9			comp-c-shlib		compatfile,binutils=231
 ./usr/lib/libopcodes.so.9.0			comp-c-shlib		compatfile,binutils=231
 ./usr/lib/libopenpgpsdk_pic.a			comp-obsolete		obsolete



CVS commit: src/distrib/sets/lists/comp

2022-12-25 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sun Dec 25 15:02:29 UTC 2022

Modified Files:
src/distrib/sets/lists/comp: shl.mi

Log Message:
fix libopcodes.so.11.0 binutils condition


To generate a diff of this commit:
cvs rdiff -u -r1.350 -r1.351 src/distrib/sets/lists/comp/shl.mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.