241524 Commits

Author SHA1 Message Date
christos
533b5973e2 PR/50460: Abhinav Upadhyay: Fix legacy apropos query to match both the name
and the one line description and delete extra args.
2016-03-20 17:31:09 +00:00
christos
34698e074e simplify. 2016-03-20 16:39:36 +00:00
christos
618262a97a use foo - 0 instead of testing for defined(foo); from joerg@ 2016-03-20 16:26:06 +00:00
khorben
88481e0aaa Let PaX ASLR know about the current emulation
This effectively fixes PaX ASLR with 32-bits emulation on 64-bits
platforms. Without this knowledge, the offset applied for 32-bits
programs was really meant for a 64-bits address space - thus
shifting the address up to 12 bits, with a success rate of about
1/4096. This offset is calculated once in the lifetime of the
process, which therefore behaved normally when able to start.

Fixes kern/50469, probably also kern/50986

Tested on NetBSD/amd64 (emul_netbsd32)
2016-03-20 14:58:10 +00:00
skrll
3593a88925 Update {read,write}fpsr to work everywhere 2016-03-20 14:22:46 +00:00
christos
c07b0c6505 PR/50983: David Shao: Protect stddef;
also make the pointer void *.
2016-03-20 14:11:49 +00:00
tsutsui
a2b51fbb55 Pass a correct residual size to wdcbit_bucket() that drains extra bytes.
Seems broken (but almost harmless?) since rev 1.101 committed ~10 years ago:
 http://mail-index.netbsd.org/source-changes/2006/09/07/0043.html
2016-03-20 10:29:12 +00:00
tsutsui
225e5dba8f Remove extra spaces. 2016-03-20 09:47:58 +00:00
dholland
89579fda21 Comment out unused logic. PR 50973 2016-03-20 04:24:46 +00:00
gdt
af798e7b27 Disable uscanner in all kernel configs
As discussed on current-users@, SANE uses ugen via libusb and not
uscanner, so users are not well served by having uscanner.  Consensus
is that addressing how to adjust permissions for scanners should not
block restoring basic functionionality.

(Compile-tested only, but there are multiple reports of this being the
right approach.)
2016-03-19 23:21:02 +00:00
christos
4f0a81a7d2 Save and restore all the registers we need instead of playing tricks and
"knowing" which registers the compiler clobbers. gcc-5.3 clobbers both
rcx and rdx...
2016-03-19 21:27:38 +00:00
mrg
3ae3bff701 remove some dead code. 2016-03-19 20:57:48 +00:00
mrg
0d31cfc9e9 disable -fdelete-null-pointer-checks by default for now. 2016-03-19 20:54:49 +00:00
mrg
4b0e0968c5 note alpha mostly works (sshd problem as well)
add that sparc64 test results are about 60 additional failures
2016-03-19 20:53:46 +00:00
christos
b1ba608e8b Allow enabling and disabling PaX ASLR debug 2016-03-19 18:56:37 +00:00
martin
a706a41168 Default kernel builds to USE_SSP=yes. 2016-03-19 18:50:25 +00:00
christos
3bf2eee003 Add MAP_FMT 2016-03-19 18:44:10 +00:00
dholland
71d3320a40 Sync documentation of struct ktr_header with reality:
- there is a ktr_version field
   - the ordering of ktr_type and ktr_version is byte-order dependent
   - ktr_time is now a timespec, not a timeval
   - there's now a ktr_lid field
   - there is no such thing as a ktr_buf field and it's certainly not
     a caddr_t.

XXX: I would appreciate it if someone who knows how this stuff works
XXX: could review this file in case it's still lying in some more
XXX: subtle way.
2016-03-19 17:15:13 +00:00
dholland
02cda16070 Update documented prerequisite includes. PR 50633 and PR 50634.
Remove sys/uio.h, and swap sys/param.h for sys/types.h as sys/ktrace.h
depends on MAXCOMLEN.

Bump date; first time since 1993.
2016-03-19 17:05:36 +00:00
dholland
c2159a40f8 PR 50633 and PR 50634 from Brad Harder: add missing includes:
sys/signal.h and sys/time.h. Also add sys/uio.h which is needed and
for some probably historical/obsolete reason has been documented as a
prerequisite instead of included directly.

This also requires sys/param.h for MAXCOMLEN (blah) but for now at
least shift that to the documentation instead of including it
directly as it's a sewer.
2016-03-19 17:04:12 +00:00
mrg
fed2b588b4 add missing insn-modes.h files from earlier regen. 2016-03-18 20:40:21 +00:00
christos
f3a6400cd0 sprinkle more volatile (distribution build with gcc-5.3) 2016-03-18 18:42:25 +00:00
christos
7633776511 kill more mudflap for gcc-5.3 2016-03-18 18:24:25 +00:00
christos
fc55d6ef49 sprinkle more volatile (needed for the rescue build with gcc-5.3) 2016-03-18 18:07:28 +00:00
christos
e31ac8976d Add more stack-protector elides 2016-03-18 17:52:30 +00:00
christos
ccd8517e35 write references as pointers XXX: 2016-03-18 17:11:04 +00:00
christos
8db25f0638 treat class line struct and union 2016-03-18 17:08:45 +00:00
christos
dd09ff20c8 Add support for c++ classes. 2016-03-18 17:07:23 +00:00
christos
63ffeeee3f spell restrict 2016-03-18 16:37:09 +00:00
christos
3e0f598a15 fix printf format 2016-03-18 16:32:03 +00:00
christos
714b78ffa0 Add references, comments. 2016-03-18 16:24:26 +00:00
christos
096b9466af add references. 2016-03-18 16:12:46 +00:00
christos
4a929da448 Add references. 2016-03-18 15:26:31 +00:00
christos
0f160f0ea7 match the updated <sys/types.h> definition 2016-03-18 15:05:49 +00:00
christos
6f5d40c1b7 tidy up: parse DW_AT_specification like DW_AT_abstract_origin 2016-03-18 14:58:18 +00:00
christos
22c82d5b7b - Add processing for c++ references.
- Make sure we load the DIE that contains the types of array elements so
  we can resolve them later.
- Print t_id (die offsets) in hex.
2016-03-18 14:55:34 +00:00
christos
f15ed7b01a swap first, then write. 2016-03-18 13:23:00 +00:00
ginsbach
bec9db1ba3 Use the correct upper bounds for the types array. The correct upper
bound is typecnt not timecnt.  Now perpetual 'standard' time zones
will work correctly as they have a typecnt of 1 but a timecnt of 0.
2016-03-18 12:41:25 +00:00
mrg
007d524719 update info for:
hppa: libc build failes in fenv.c
	m68*: libc fails with stack protector issues
	mips*: libgcc fails
	sh*: initial stuff works
	sparc*: sshd is broken for both, perhaps kernels are SMP problematic
	vax: tools/gcc failes
2016-03-18 10:14:39 +00:00
mrg
7bc3291858 move the compiler hack closer to the source of the fail 2016-03-18 10:10:21 +00:00
mrg
66d72dce7d minimal changes necessary to link into an INET6-less kernel. 2016-03-18 10:09:46 +00:00
mrg
fb33ee4218 find all libgcc sources 2016-03-18 10:08:43 +00:00
mrg
243c03d765 disable our local hack to check alloc alignment on arm, as the define
is no longer compile-time constant and CTASSERT() fails.
2016-03-18 10:07:52 +00:00
mrg
fbe3505298 mknative-gcc for GCC 5.3 and sh3*, hppa, m68*, mips*.
none of them are complete yet.
2016-03-18 09:18:04 +00:00
mrg
9a20e32a79 update info for alpha, powerpc, earmv4, i386, and sparc* 2016-03-18 07:30:47 +00:00
mrg
81fd101dad initial mknative-gcc for GCC 5.3 and alpha/powerpc. 2016-03-18 07:29:40 +00:00
mrg
dfa251606d set fixes for GCC 5.3.
(only arm is tested so far, but there's a pattern i can see :-)
2016-03-18 03:08:25 +00:00
mrg
3f845bd035 regen. 2016-03-18 01:03:33 +00:00
mrg
c261683575 delete the GCC 4.8 status, and update the 5.3 one a little. 2016-03-17 23:44:12 +00:00
mrg
1e7ce98d0d set NETBSD_GCC_VERSION for GCC 5.3 separately.
don't collect crtstuff anymore.
2016-03-17 23:41:21 +00:00