Re: elf.h: define SHT_SYMTAB_SHNDX

2018-01-21 Thread Karel Gardas
My original diff contained just SHT_SYMTAB_SHNDX addition. Martin comes with more opulent version which I just commented. Sure, I take the mistake of not mentioning that SHT_SYMTAB_SHNDX missing in OpenBSD affects GHC HEAD compilation on myself. On Sun, 21 Jan 2018 12:52:58 -0700 "Theo de

Re: bsd.port.mk.5: Remove mention of OLD_WRKDIR_NAME

2018-01-21 Thread Marc Espie
On Sun, Jan 21, 2018 at 08:44:24PM +0100, Klemens Nanni wrote: > espie@ removed OLD_* stuff from bsd.port.mk with revision 1.1337, this > diff takes care of left overs in the manpage. > > Any takers? > > diff --git a/share/man/man5/bsd.port.mk.5 b/share/man/man5/bsd.port.mk.5 > index

Re: elf.h: define SHT_SYMTAB_SHNDX

2018-01-21 Thread Theo de Raadt
Then you should propose that, instead of adding 10 other unrelated things to the diff. > ping. The addition of SHT_SYMTAB_SHNDX is not just estetic improvement but > fixes GHC HEAD build failure on OpenBSD 6.2-current. Hence pinging. > > Thanks! > Karel > > On Tue, 16 Jan 2018 11:51:53 +0100 >

Re: elf.h: define SHT_SYMTAB_SHNDX

2018-01-21 Thread Karel Gardas
ping. The addition of SHT_SYMTAB_SHNDX is not just estetic improvement but fixes GHC HEAD build failure on OpenBSD 6.2-current. Hence pinging. Thanks! Karel On Tue, 16 Jan 2018 11:51:53 +0100 Martin Pieuchot wrote: > On 15/01/18(Mon) 23:11, Karel Gardas wrote: > > patch

bsd.port.mk.5: Remove mention of OLD_WRKDIR_NAME

2018-01-21 Thread Klemens Nanni
espie@ removed OLD_* stuff from bsd.port.mk with revision 1.1337, this diff takes care of left overs in the manpage. Any takers? diff --git a/share/man/man5/bsd.port.mk.5 b/share/man/man5/bsd.port.mk.5 index 2e139c0f782..ff557f789d8 100644 --- a/share/man/man5/bsd.port.mk.5 +++

optimize armv7 ffs(3)

2018-01-21 Thread Mark Kettenis
We should really just use the CLZ instruction since we only care about armv7 these days. This is what Bionic used before they removed the assembly implementation completely. Also adops the "bx lr" from the Bionic code instead of "mov pc, lr" since it is faster on some processors. ok? Index:

armv7 struct fpreg

2018-01-21 Thread Mark Kettenis
Now that clang is the default compiler on armv7 we can actually add FPU/SIMD support to this architecture. In preparation this diff changes "struct fpreg" to something a bit more sensible. Nether FreeBSD nor NetBSD provides something sane (the ARM FPU history is quite convoluted) so I went for

More libcrypto unaligned access on armv7

2018-01-21 Thread Mark Kettenis
So I have revived a diff from drahn@/patrick@ to add kernel support for the FPU/SIMD unit on armv7. With that diff, it is possible to use the "NEON" SIMD instructions, even though we're still using the softfloat ABI. And it turns out libcrypto has code to detect this and starts using the SIMD

malloc optimizations wrt junking and freezero

2018-01-21 Thread Otto Moerbeek
Hi, chunk pages do not need to be junked, all allocated chunks are already junked on free. Same hold for a few error paths. Also, for freezero(), only clear the size as reqeusted instead of the whole allocation. Please review/test, -Otto Index: malloc.c