Re: lld bug workaround

2017-03-18 Thread Philip Guenther
On Saturday, March 18, 2017, Mark Kettenis wrote: > The way lld applies version scripts is a bit broken for > linker-generated symbols. In particular, even if you explicitly mark > rhose symbols als global, they will end up local if that's the default. > So even with

cwmrc(5) small cleanup

2017-03-18 Thread Michael Reed
The signatures for the functions bind-key and bind-mouse do not match how they are used. diff --git a/app/cwm/cwmrc.5 b/app/cwm/cwmrc.5 index fbecaedb..1da9c08c 100644 --- a/app/cwm/cwmrc.5 +++ b/app/cwm/cwmrc.5 @@ -63,7 +63,7 @@ The name and class values, respectively, for existing windows

faq13.html: clarify cd burning instructions

2017-03-18 Thread Michael Reed
That way you don't do what I did and read through half the "Creating data CD-ROMs" section before realizing you're reading the wrong section. :) diff --git a/faq/faq13.html b/faq/faq13.html index 6f94803..28d04b9 100644 --- a/faq/faq13.html +++ b/faq/faq13.html @@ -615,6 +615,9 @@ copying files

Re: Add a "random" target to bsd.regress.mk

2017-03-18 Thread trondd
On Sat, March 18, 2017 6:42 pm, Scott Cheloha wrote: > In general, a test can put your system into a state that allows a > subsequent test to pass when it would have otherwise failed. > > > Any takers? Thoughts? > If such a bug is revealed, how does someone rerun the tests in the same order

Re: Making it easier to install clang alongside gcc

2017-03-18 Thread Jonathan Gray
On Sat, Mar 18, 2017 at 05:24:30PM +0100, Mark Kettenis wrote: > > Date: Thu, 16 Mar 2017 11:32:07 +1100 > > From: Jonathan Gray > > > > On Wed, Mar 15, 2017 at 09:53:41PM +0100, Mark Kettenis wrote: > > > It's currently a bit of a pain to install clang and ld.lld, but keep > > >

Optimize cerror on arm64

2017-03-18 Thread Mark Kettenis
Just like we did on other architectures. ok? Index: lib/libc/arch/aarch64/sys/cerror.S === RCS file: /cvs/src/lib/libc/arch/aarch64/sys/cerror.S,v retrieving revision 1.2 diff -u -p -r1.2 cerror.S ---

chachatest.c patch

2017-03-18 Thread Steven Roberts
TC3 contained the data for TC4. TC4 contained incorrect data. Moved the data from TC3 into TC4. Generated correct data for TC3. Index: chachatest.c === RCS file: /cvs/src/regress/lib/libcrypto/chacha/chachatest.c,v retrieving

chachatest.c patch

2017-03-18 Thread Steven Roberts
See attached. chachatest.patch Description: Binary data

lld -znodlopen support

2017-03-18 Thread Mark Kettenis
Diff below adds support for -Wl,-znodlopen. This fixes the libexec/ld.so/df_1_noopen regression test. ok? Index: gnu/llvm/tools/lld/ELF/Config.h === RCS file: /cvs/src/gnu/llvm/tools/lld/ELF/Config.h,v retrieving revision 1.2 diff

lld bug workaround

2017-03-18 Thread Mark Kettenis
The way lld applies version scripts is a bit broken for linker-generated symbols. In particular, even if you explicitly mark rhose symbols als global, they will end up local if that's the default. So even with the following version script: { global: _end; local: *; }; The linker-generated

add new em(4) variant for X270

2017-03-18 Thread Claudio Jeker
The X270 seems to have a new I219-LM variant that em(4) doesn't know. Adding it to the driver seems to be enough. OK? -- :wq Claudio OpenBSD 6.1-beta (GENERIC.MP) #1: Sat Mar 18 15:02:14 CET 2017 cje...@kimiko.zyd.ch:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 17054765056

Simplify arm64 vfork

2017-03-18 Thread Mark Kettenis
The return value munging isn't necessary anymore. See for example lib/libc/arch/arm/sys/OVfork.S: revision 1.4 date: 2015/03/31 04:32:01; author: guenther; state: Exp; lines: +1 -10; commitid: 4lHzpIZZxMqyyel4; Simplify fork/vfork logic: the kernel has handled returning zero in the

Re: Optimize cerror on arm64

2017-03-18 Thread Patrick Wildt
On Sat, Mar 18, 2017 at 03:47:18PM +0100, Mark Kettenis wrote: > Just like we did on other architectures. > > ok? guenther@ had the same diff (but he also removed the movn x1), which looked good to me as well. Basically still ok patrick@. ;) > > > Index: lib/libc/arch/aarch64/sys/cerror.S >

Re: Making it easier to install clang alongside gcc

2017-03-18 Thread Mark Kettenis
> Date: Thu, 16 Mar 2017 11:32:07 +1100 > From: Jonathan Gray > > On Wed, Mar 15, 2017 at 09:53:41PM +0100, Mark Kettenis wrote: > > It's currently a bit of a pain to install clang and ld.lld, but keep > > gcc and ld.bfd as the default compiler/linker. You can't rebuild > >

Re: Simplify arm64 vfork

2017-03-18 Thread Philip Guenther
On Sat, 18 Mar 2017, Mark Kettenis wrote: > The return value munging isn't necessary anymore. See for example > lib/libc/arch/arm/sys/OVfork.S: ok guenther@

cdio: don't print message about "file not multiple of block length"

2017-03-18 Thread Michael Reed
It seems as if cdio copes fine regardless of whether the file is a multiple of the block length, so is it really so important that the message is printed unconditionally? This patch makes it so that the "-v" flag must be used at least once for that warning to print. diff --git

Re: lld -znodlopen support

2017-03-18 Thread Patrick Wildt
On Sat, Mar 18, 2017 at 04:17:30PM +0100, Mark Kettenis wrote: > Diff below adds support for -Wl,-znodlopen. This fixes the > libexec/ld.so/df_1_noopen regression test. > > ok? Seems easy enough, looks good to me. > > > Index: gnu/llvm/tools/lld/ELF/Config.h >

Add a "random" target to bsd.regress.mk

2017-03-18 Thread Scott Cheloha
Hi tech@, The patch below adds a target, "random", to bsd.regress.mk, as well as a description of the new target to bsd.regress.mk(5). The "random" target is the same as "regress", except that the ordering of the regression targets is randomized each time. My thinking is that statically ordered

cdio(1): introduce acronym on first use

2017-03-18 Thread Michael Reed
That way the user doesn't have to scroll through the man page to find what it stands for. On a side note, googling for "tao cd" is not helpful, but googling "track at once" is. diff --git a/usr.bin/cdio/cdio.1 b/usr.bin/cdio/cdio.1 index ff350ca8f..900449b0a 100644 --- a/usr.bin/cdio/cdio.1

Re: Optimize cerror on arm64

2017-03-18 Thread Philip Guenther
On Sat, 18 Mar 2017, Mark Kettenis wrote: > > Date: Sat, 18 Mar 2017 17:20:21 +0100 > > From: Patrick Wildt > > > > On Sat, Mar 18, 2017 at 03:47:18PM +0100, Mark Kettenis wrote: > > > Just like we did on other architectures. > > > > > > ok? > > > > guenther@ had the same

Re: Optimize cerror on arm64

2017-03-18 Thread Mark Kettenis
> Date: Sat, 18 Mar 2017 17:20:21 +0100 > From: Patrick Wildt > > On Sat, Mar 18, 2017 at 03:47:18PM +0100, Mark Kettenis wrote: > > Just like we did on other architectures. > > > > ok? > > guenther@ had the same diff (but he also removed the movn x1), which > looked good to

acme-client doc diff

2017-03-18 Thread Nick Holland
I found that the current man pages and example file for acme-client are confusing and leave one with an imperfect certificate setup, with the intermediate certs missing. Doesn't generate an error on OpenBSD, but does on some other OSs. So I propose these changes to the example file and man

Re: Optimize cerror on arm64

2017-03-18 Thread Mark Kettenis
> Date: Sat, 18 Mar 2017 14:58:36 -0700 > From: Philip Guenther > > > Hmm, the arm version still has the equivalent movn r1. I'll let > > guenther@ deal with that. > > Ah, but it's necessary there...for correct error return from lseek(). > 64bit archs never need the second