Commit Graph

6442 Commits

Author SHA1 Message Date
christos
fae93e9b6d fix compilation and getdents. 2016-06-11 20:45:07 +00:00
christos
9cc7345716 More fixed from Rin Okuyama
fix waitpid, getdents, explain ptrace, cleanup redefinitions
2016-06-11 13:39:26 +00:00
wiz
2c1d82f175 Bump date for -r.
XXX: this file has no license.
2016-06-10 08:03:46 +00:00
wiz
eb70e3540c Sort option descriptions. Use Mt. 2016-06-10 08:03:26 +00:00
agc
3ac25dcbc1 Add some patches which were in an older tree, from January 29 2015:
+ add a -r argument to agrep(1) and document it. This has the same
effect as the -r flag to grep(1) - perform a recursive search
through sub-directories.

+ if a match is found in a "binary" file, then do the same as grep(1)
and just print the message that a match was found in the file, without
attempting to print the match in full.
2016-06-10 05:11:17 +00:00
mrg
a24efa7dea import the xorg-server 1.10 reach over tree as xorg-server.old. 2016-06-10 03:42:13 +00:00
mrg
e0debda5d5 minor clean ups and use ${XORG_SERVER_SUBDIR} where necessary 2016-06-10 03:37:34 +00:00
mrg
4218af5e5e for the eabi targetted compiler, if not compiling libgcc for eabi ensure
that libgcc doesn't try to define __[CD]TOR_LIST__[].
2016-06-10 01:14:00 +00:00
mrg
36b9a4317d add missed file for ppc64 gcc5.4 mknative. 2016-06-10 01:13:05 +00:00
mrg
121c341c36 update powerpc64 info 2016-06-09 23:36:53 +00:00
mrg
2059bccd1a mknative-gcc for powerpc64 and GCC 5.4. 2016-06-09 23:30:18 +00:00
mrg
2303aa3bf1 enable checks for no dot syms on netbsd ppc64, fixes build issues
in libutil where the opd() function conflicts with the .opd section.

remove a couple of tainted defines that are handled differently now.

this, with mknative-gcc as well, enables ppc64 world to build again.
2016-06-09 23:28:22 +00:00
christos
ab85c28026 improve on ipfilter rules by Cy Schubert 2016-06-09 20:02:52 +00:00
christos
9f35ea3fd2 Support ipfw and ipf from FreeBSD 2016-06-09 18:59:31 +00:00
christos
32f250035b Fix syscall argument passing from Ryn Okuyama (with minor changes; hope I did
not make it worse :-)
2016-06-09 14:37:06 +00:00
christos
b95d940b2e Disable glibc workaround for non linux. Rin Okuyama 2016-06-09 14:30:57 +00:00
abhinav
f7b948b9bc Fix typo: processess -> processes 2016-06-09 09:01:21 +00:00
mrg
a884da9efe add netbsd padding to 'struct addrinfo' copy.
eeew, this is really horrible
2016-06-09 07:38:45 +00:00
mrg
64bc63915b mknative-gcc for sparc64 and GCC 5.4 (and a bit of missed vax, too) 2016-06-09 07:37:49 +00:00
mrg
ed02bbe8b6 mknative-gcc for vax and GCC 5.4. 2016-06-09 07:13:10 +00:00
mrg
4eeb3be5f4 apply -O1 more liberally for vax. fixes build. 2016-06-09 07:11:08 +00:00
mrg
daaf4abadd regen (minor version updates) 2016-06-09 04:42:50 +00:00
christos
2964f15a7a Grr, gcc-5.4 creates DW_AT_typedef without DW_AT_type for HARD_REG_SET!
<1><c26b>: Abbrev Number: 4 (DW_TAG_typedef)
    <c26c>   DW_AT_name        : (indirect string, offset: 0x16e30): HARD_REG_ELT_TYPE
    <c270>   DW_AT_decl_file   : 57
    <c271>   DW_AT_decl_line   : 43
    <c272>   DW_AT_type        : <0x70>
 <1><c276>: Abbrev Number: 102 (DW_TAG_typedef)
    <c277>   DW_AT_name        : (indirect string, offset: 0x2f954): HARD_REG_SET
    <c27b>   DW_AT_decl_file   : 57
    <c27c>   DW_AT_decl_line   : 54
2016-06-08 21:32:27 +00:00
wiz
37d2826276 .Fx should only have version numbers as argument. 2016-06-08 12:48:37 +00:00
christos
968036b8b9 more -Wno-stack-protector 2016-06-08 02:27:31 +00:00
christos
aa2f2c4cdd stack protector 2016-06-08 01:41:43 +00:00
christos
b011f946a6 fix variable length stack allocation from upstream 2016-06-08 01:33:08 +00:00
christos
47f89c9b68 elide stack protector warning 2016-06-07 23:33:45 +00:00
christos
0668cef32e sprinke -Wno-stack-protector 2016-06-07 23:21:58 +00:00
mrg
bc64ec48e6 mknative-gcc for all but sparc64, vax and sun2 and GCC 5.4. 2016-06-07 18:53:01 +00:00
christos
84692faf12 Add FreeBSD release notes (Kurt Lidl) 2016-06-07 17:31:02 +00:00
mrg
bf2dc96f03 merge GCC 5.4.0. (needs mknative, may not build yet.) 2016-06-07 06:14:16 +00:00
mrg
f30ff5883e import GCC 5.4.0 release. there's not a lot of new info though at
least these 135 (!) GCC PRs have been fixed by the update:

68730 69714 67550 70209 71254 70839 69737 70067 67355 67172 69239
65779 69546 70272 70421 65985 67339 67411 68309 68585 68679 68890
68949 69009 70139 70494 68162 69135 70306 68965 70297 70635 66786
69098 70347 69719 70526 70941 69400 69577 69447 65689 65886 65932
66655 68269 68789 69614 69648 69666 69764 69794 70044 70052 65726
68910 64289 68671 68835 69669 70329 71204 69355 67364 68049 68998
69323 69743 69995 69146 68651 67755 67484 68790 68907 69099 69496
69509 69516 70393 69222 69703 69939 70609 71004 71005 71036 71037
71038 68636 69013 69606 70115 70333 70430 60290 70356 69305 70024
67781 69414 69140 70510 60164 66635 67896 68106 68298 68449 68779
68921 68986 69037 69147 69194 69366 69399 69705 69917 69969 70613
71317 69268 70269 69032 65702 69219 69484 65996 66680 68283 69603
70350 67451 61397
2016-06-07 05:57:41 +00:00
martin
5de48bab33 Build fix for big endian arm, from Rin Okuyama.
Still not working, but other details still under discussion.
2016-06-06 21:06:33 +00:00
abhinav
179ece970c Fix .Xr references to troff(1), ok from wiz@ 2016-06-06 16:09:47 +00:00
abhinav
c6072f2021 Fix reference to mtree(8) from mtree(1).
While there fix the .Dt, make the document title all caps.
Also, remove .Pp before .Bl.
Ok from wiz@
2016-06-06 14:45:15 +00:00
wiz
7ec21f98ea Whitespace and punctuation nits. 2016-06-06 08:22:52 +00:00
christos
5cbcac72ef Don't re-define standard types! 2016-06-05 20:09:00 +00:00
christos
86941a45f0 add glue for unimplemented platforms 2016-06-05 20:08:26 +00:00
christos
e6053aea0a comment out the ones we don't have 2016-06-05 19:17:23 +00:00
christos
543c8f279f Don't play type games with size_t for NetBSD. It is either 32 bits for ILP32
or 64 bits for LP64.
2016-06-05 16:43:10 +00:00
christos
21e1e8aa49 Sync mdoc page with the one provided from upstream. 2016-06-05 16:24:34 +00:00
christos
d10a0033d8 add ubsan to the build 2016-06-05 01:17:57 +00:00
christos
8511b0d02a PR/50773: Rin Okuyama: Fix single stepping on dynamically linked binaries
by skipping dynamic linker calls (from OpenBSD)
2016-06-04 16:14:29 +00:00
christos
717847f56d resolve conflicts 2016-06-03 20:39:02 +00:00
christos
42c2944020 Import ntp 4.2.8p8 2016-06-03 20:19:08 +00:00
christos
08cb3c9559 Fix compilation on non-x86 2016-06-03 15:53:18 +00:00
mrg
dc051efc2d fix PR 48928: build the static libX11 properly. pull in the
ximcp, xlcDef, xlcUTF8Load, xlibi18n, and xomGeneric modules
directly.

also, don't include bsd.lib.mk in the fragment parts for these
modules, but in the module build itself.  otherwise, bsd.lib.mk
is included before SRCS is complete and the build strangely
seems to miss parts listed.

tested using the example in the PR.
2016-06-02 22:41:26 +00:00
christos
bd2adf4ebf Fix ILP32 build. 2016-06-02 19:54:38 +00:00
christos
eb54ca3cf7 Use NULL instead of 0 (Pedro Giffuni) 2016-06-01 22:57:51 +00:00
christos
63a24122d2 Add ubsan (not enabled, not tested, compiling)
Update tsan (not enable, not tested, not compiling)
Merge common infrastructure.
XXX: Perhaps the common code should be made into a separate library?
Or always require asan?
2016-06-01 22:48:55 +00:00
christos
d94aad05fc Put the sanitizer libraries before everything else, since it needs to be
the first shared object.
2016-06-01 22:27:49 +00:00
christos
214e23d4e1 Put back asan now it works. 2016-06-01 17:07:13 +00:00
christos
860d3f06d6 deal with rename lossage 2016-06-01 17:03:26 +00:00
christos
8c05e0f285 Don't intercept things we don't have. 2016-06-01 17:02:54 +00:00
christos
3711470d09 Handle wrapping the same way as FreeBSD does. 2016-06-01 17:02:19 +00:00
christos
294de9a807 missing space 2016-06-01 04:20:20 +00:00
christos
78fc04143a use the default offsets since gcc hardcodes them (TARGET_ASAN_SHADOW_OFFSET ->
ix86_asan_shadow_offset)
2016-06-01 04:07:51 +00:00
christos
997b5166e9 use the correct array size. 2016-06-01 04:06:15 +00:00
christos
c4250a9276 zero pad syscall. 2016-06-01 01:54:06 +00:00
christos
725f9292f8 more flags. 2016-06-01 00:54:20 +00:00
christos
97989743a7 Ignore the first dlpi entry which is ourselves on NetBSD instead of having
a NULL name as on linux.
2016-06-01 00:53:35 +00:00
agc
eb3f7d2486 Import tzdata2016d from ftp://ftp.iana.org/tz/releases/tzdata2016d.tar.gz
Summary of changes in tzdata2016d (2016-04-17 22:50:29 -0700):
  * America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
  * Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
  * New zone Asia/Tomsk, split off from Asia/Novosibirsk.
  * New zone Europe/Kirov, split off from Europe/Volgograd.
  * Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.
  * Many corrections to historical time in Kazakhstan from 1991
    through 2005.
  * Mention Internet RFCs 7808 (TZDIST) and 7809 (CalDAV time zone references).

Summary of changes in tzdata2016c (2016-03-23 00:51:27 -0700):
  * Azerbaijan no longer observes DST.
  * Chile reverts from permanent to seasonal DST.
  * Europe/Kaliningrad and Europe/Vilnius changed from +03/+04 to
    +02/+03 on 1989-03-26, not 1991-03-31.
  * Several updates and URLs for historical and proposed Russian changes.
2016-06-01 00:03:14 +00:00
agc
2a93c63445 Add an extra set in the instructions (to make sure that you have the
public key the data was signed with)

Take the EDITOR variable from the environment and use that, defaulting to vi,
rather than just hardcoding vi.
2016-06-01 00:02:12 +00:00
christos
33b321f304 - hack BlockingMutex
- add NetBSD procmaps
- remove old unused source
2016-05-31 21:35:11 +00:00
christos
2a35c413e0 Add procmaps for NetBSD 2016-05-31 21:34:13 +00:00
christos
0fda9a31a2 Update sources and flags (compiles but missing stuff) 2016-05-31 20:47:52 +00:00
christos
0761ebe8d9 First steps to port this to NetBSD (compiles now but missing stuff) 2016-05-31 20:47:25 +00:00
abhinav
ad8c33366b Add the missing parameter "const char *pattern" to the fetchList* functions.
From Julian Fagir in PR lib/45579
2016-05-31 16:26:47 +00:00
pgoyette
a47b5fd6a6 Install man-link from fonts-conf.5 --> fonts.conf.5 to deal with an
erroneous cross-ref in xclock's man-page.  suggested by wiz@.

Fixes PR xsrc/49777
2016-05-31 02:35:49 +00:00
christos
e9a9a47d86 Make sure that all messages end in '\n' in make_message_rcsvalid() and
compensate for it in add_rcs_file().
2016-05-30 17:49:51 +00:00
christos
1563e28766 merge conflicts 2016-05-26 16:49:55 +00:00
christos
4f2aea9f2c Import bind 9.10.4-P1 2016-05-26 15:45:39 +00:00
prlw1
854e85e5bd Handle truncated DHCP messages, provided only the BOOTP vendor area
is truncated.  [3fd740f3ed]
OK from roy@
2016-05-26 09:09:47 +00:00
kamil
13f6226486 Fix building GCC-5.3 with GCC-6.1
Cherry-pick upstream patch:

From 1e5f1089dec3af328fd03125d6778f666d0bd4e4 Mon Sep 17 00:00:00 2001
From: edlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu, 25 Feb 2016 15:33:50 +0000
Subject: [PATCH] 2016-02-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Backported from mainline
        2016-02-19  Jakub Jelinek  <jakub@redhat.com>
                    Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * Make-lang.in: Invoke gperf with -L C++.
        * cfns.gperf: Remove prototypes for hash and libc_name_p
        inlines.
        * cfns.h: Regenerated.
        * except.c (nothrow_libfn_p): Adjust.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@233720 138bc75d-0d04-0410-961f-82ee72b054a4


Verified to work with GCC 5.3 and 6.1.
2016-05-25 20:57:34 +00:00
skrll
60330fb799 Sync and allow arm to natively build 2016-05-24 21:25:25 +00:00
christos
63ea08216d Fix armv3 segv compiling mDNS.c, from:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62254
    https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01095.html
2016-05-24 15:42:17 +00:00
skrll
fa15d5d3a4 More mknative re-runs 2016-05-24 13:00:00 +00:00
skrll
1afd582e81 More mknative re-run. 2016-05-24 10:46:13 +00:00
skrll
6e3cf83f8e Re-tun mknative for earm gdb 2016-05-24 09:16:56 +00:00
christos
2a2068fd64 Read and load the aux vector from a core file 2016-05-24 00:50:53 +00:00
christos
06c5bf7f1c PIE in the face! 2016-05-21 16:23:10 +00:00
christos
da360e79eb Fix infinite recursion when building i386 -fPIE in
src/external/mit/xorg/lib/libxcb/xkb.

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=231599

PR debug/67355
* var-tracking.c (reverse_op): Don't add dummy zero to reverse
  ops that simplify back to the original value.
* alias.c (refs_newer_value_p): Cut off recursion for
  expressions containing the original value.
2016-05-19 20:27:36 +00:00
spz
54b54045cc Fixes for CVE-2016-0718 from upstream. 2016-05-17 23:53:02 +00:00
christos
5a6c14c844 Add RCSID's 2016-05-17 14:00:09 +00:00
christos
5b57c7ffa3 Adjust to 2.6.3. 2016-05-16 22:19:10 +00:00
chs
760a7ed1e9 apply the ustack() parts of freebsd r211608:
r211608 | rpaulo | 2010-08-22 03:53:32 -0700 (Sun, 22 Aug 2010) | 8 lines

	Kernel DTrace support for:
	o uregs  (sson@)
	o ustack (sson@)
	o /dev/dtrace/helper device (needed for USDT probes)

	The work done by me was:
	Sponsored by:   The FreeBSD Foundation

plus a few netbsd-specific tweaks from me.
fixes PR 50790.
2016-05-14 21:19:05 +00:00
spz
67c3041c33 merge conflicts, bump shlib version, add expat.pc 2016-05-14 14:39:39 +00:00
spz
8a91d82a35 Import of a new expat version. Upstream Changes:
Release 2.1.1 Sat March 12 2016
        Security fixes:
            #582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer

        Bug fixes:
            #502: Fix potential null pointer dereference
            #520: Symbol XML_SetHashSalt was not exported
            Output of "xmlwf -h" was incomplete

        Other changes
            #503: Document behavior of calling XML_SetHashSalt with salt 0
            Minor improvements to man page xmlwf(1)
            Improvements to the experimental CMake build system
            libtool now invoked with --verbose
2016-05-14 14:30:18 +00:00
skrll
11d5fda1b2 Preserve the arm architecture version (if present) 2016-05-12 15:27:54 +00:00
skrll
c384c5b3fa For earm use the compiler to determine sf vs hf 2016-05-12 12:51:53 +00:00
skrll
74f1f7b042 Doh... don't add the ABI to 'os'. Hopefully arm is really fixed now. 2016-05-12 10:55:03 +00:00
skrll
8a8024b50c Sync config.guess with upstream, but maintain earm* stuff.
Fixes tools build on arm platform.
2016-05-12 08:43:49 +00:00
martin
6f47729145 Avoid a "conversion to '__uint16_t' from 'int' may alter its value"
error on some architectures (like m68k).
2016-05-09 20:28:08 +00:00
roy
ea7c879358 Define _OPENBSD_SOURCE so dhcpcd can access reallocarray(3). 2016-05-09 10:19:26 +00:00
roy
bc693cba55 Sync 2016-05-09 10:15:59 +00:00
christos
2805fbf632 adjust to new acpica 2016-05-04 19:28:15 +00:00
christos
01a3dc11b3 limit to gcc, requested by joerg. 2016-05-04 17:17:00 +00:00
christos
d6db3d67c9 prevent gcc from combining memset+malloc -> calloc inside calloc so that
we end up calling ourselves recursively.
2016-05-04 14:39:49 +00:00
mrg
729e5a7e04 use AC_USE_SYSTEM_EXTENSIONS in libiberty autoconf, which arranges for
_GNU_SOURCE to be defined for systems that need it (like glibc ones.)

be sure to find the right config.h for host programs.

these fixes combined make builds on debian 7 complete for me.
2016-05-04 00:28:23 +00:00
christos
02ec25e568 http://w1.fi/security/2016-1/0004-Reject-SET_CRED-commands-with-newline-characters-in-.patch
Many of the global configuration parameters are written as strings
without filtering and if there is an embedded newline character in the
value, unexpected configuration file data might be written.

This fixes an issue where wpa_supplicant could have updated the
configuration file global parameter with arbitrary data from the control
interface or D-Bus interface. While those interfaces are supposed to be
accessible only for trusted users/applications, it may be possible that
an untrusted user has access to a management software component that
does not validate the value of a parameter before passing it to
wpa_supplicant.

This could allow such an untrusted user to inject almost arbitrary data
into the configuration file. Such configuration file could result in
wpa_supplicant trying to load a library (e.g., opensc_engine_path,
pkcs11_engine_path, pkcs11_module_path, load_dynamic_eap) from user
controlled location when starting again. This would allow code from that
library to be executed under the wpa_supplicant process privileges.
2016-05-03 18:22:28 +00:00
christos
32a650932f http://w1.fi/security/2016-1/0004-Reject-SET_CRED-commands-with-newline-characters-in-.patch
Most of the cred block parameters are written as strings without
filtering and if there is an embedded newline character in the value,
unexpected configuration file data might be written.

This fixes an issue where wpa_supplicant could have updated the
configuration file cred parameter with arbitrary data from the control
interface or D-Bus interface. While those interfaces are supposed to be
accessible only for trusted users/applications, it may be possible that
an untrusted user has access to a management software component that
does not validate the credential value before passing it to
wpa_supplicant.

This could allow such an untrusted user to inject almost arbitrary data
into the configuration file. Such configuration file could result in
wpa_supplicant trying to load a library (e.g., opensc_engine_path,
pkcs11_engine_path, pkcs11_module_path, load_dynamic_eap) from user
controlled location when starting again. This would allow code from that
library to be executed under the wpa_supplicant process privileges.
2016-05-03 18:21:54 +00:00
christos
9f37edd889 http://w1.fi/security/2016-1/0003-Remove-newlines-from-wpa_supplicant-config-network-o.patch
Spurious newlines output while writing the config file can corrupt the
wpa_supplicant configuration. Avoid writing these for the network block
parameters. This is a generic filter that cover cases that may not have
been explicitly addressed with a more specific commit to avoid control
characters in the psk parameter.
2016-05-03 18:21:14 +00:00
christos
bc93796efb http://w1.fi/security/2016-1/0002-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
WPA/WPA2-Personal passphrase is not allowed to include control
characters. Reject a passphrase configuration attempt if that passphrase
includes an invalid passphrase.

This fixes an issue where wpa_supplicant could have updated the
configuration file psk parameter with arbitrary data from the control
interface or D-Bus interface. While those interfaces are supposed to be
accessible only for trusted users/applications, it may be possible that
an untrusted user has access to a management software component that
does not validate the passphrase value before passing it to
wpa_supplicant.

This could allow such an untrusted user to inject up to 63 characters of
almost arbitrary data into the configuration file. Such configuration
file could result in wpa_supplicant trying to load a library (e.g.,
opensc_engine_path, pkcs11_engine_path, pkcs11_module_path,
load_dynamic_eap) from user controlled location when starting again.
This would allow code from that library to be executed under the
wpa_supplicant process privileges.
2016-05-03 18:20:30 +00:00
christos
7d146f42f6 http://w1.fi/security/2016-1/0001-WPS-Reject-a-Credential-with-invalid-passphrase.patch
WPA/WPA2-Personal passphrase is not allowed to include control
characters. Reject a Credential received from a WPS Registrar both as
STA (Credential) and AP (AP Settings) if the credential is for WPAPSK or
WPA2PSK authentication type and includes an invalid passphrase.

This fixes an issue where hostapd or wpa_supplicant could have updated
the configuration file PSK/passphrase parameter with arbitrary data from
an external device (Registrar) that may not be fully trusted. Should
such data include a newline character, the resulting configuration file
could become invalid and fail to be parsed.
2016-05-03 18:19:44 +00:00
christos
9da9a79f42 search for the proper variable in the sysroot case. 2016-05-02 23:22:39 +00:00
christos
68dbbb44ff merge conflicts 2016-05-01 23:32:00 +00:00
joerg
1bf1694ac2 Drop stray ^ from output. Found by Abhinav. 2016-05-01 20:25:37 +00:00
christos
ae49d4a49c ---
(4.2.8p7) 2016/04/26 Released by Harlan Stenn <stenn@ntp.org>

* [Sec 2901] KoD packets must have non-zero transmit timestamps.  HStenn.
* [Sec 2936] Skeleton Key: Any system knowing the trusted key can serve
  time. Include passive servers in this check. HStenn.
* [Sec 2945] Additional KoD packet checks.  HStenn.
* [Sec 2978] Interleave can be partially triggered.  HStenn.
* [Sec 3007] Validate crypto-NAKs.  Danny Mayer.
* [Sec 3008] Always check the return value of ctl_getitem().
  - initial work by HStenn
  - Additional cleanup of ctl_getitem by perlinger@ntp.org
* [Sec 3009] Crafted addpeer with hmode > 7 causes OOB error. perlinger@ntp.org
   - added more stringent checks on packet content
* [Sec 3010] remote configuration trustedkey/requestkey values
  are not properly validated. perlinger@ntp.org
  - sidekick: Ignore keys that have an unsupported MAC algorithm
    but are otherwise well-formed
* [Sec 3011] Duplicate IPs on unconfig directives will cause an assertion botch
  - graciously accept the same IP multiple times. perlinger@ntp.org
* [Sec 3020] Refclock impersonation.  HStenn.
* [Bug 2831]  Segmentation Fault in DNS lookup during startup. perlinger@ntp.org
  - fixed yet another race condition in the threaded resolver code.
* [Bug 2858] bool support.  Use stdbool.h when available.  HStenn.
* [Bug 2879] Improve NTP security against timing attacks. perlinger@ntp.org
  - integrated patches by Loganaden Velvidron <logan@ntp.org>
    with some modifications & unit tests
* [Bug 2952] Symmetric active/passive mode is broken.  HStenn.
* [Bug 2960] async name resolution fixes for chroot() environments.
  Reinhard Max.
* [Bug 2994] Systems with HAVE_SIGNALED_IO fail to compile. perlinger@ntp.org
* [Bug 2995] Fixes to compile on Windows
* [Bug 2999] out-of-bounds access in 'is_safe_filename()'. perlinger@ntp.org
* [Bug 3013] Fix for ssl_init.c SHA1 test. perlinger@ntp.org
  - Patch provided by Ch. Weisgerber
* [Bug 3015] ntpq: config-from-file: "request contains an unprintable character"
  - A change related to [Bug 2853] forbids trailing white space in
    remote config commands. perlinger@ntp.org
* [Bug 3019] NTPD stops processing packets after ERROR_HOST_UNREACHABLE
  - report and patch from Aleksandr Kostikov.
  - Overhaul of Windows IO completion port handling. perlinger@ntp.org
* [Bug 3022] authkeys.c should be refactored. perlinger@ntp.org
  - fixed memory leak in access list (auth[read]keys.c)
  - refactored handling of key access lists (auth[read]keys.c)
  - reduced number of error branches (authreadkeys.c)
* [Bug 3023] ntpdate cannot correct dates in the future. perlinger@ntp.org
* [Bug 3030] ntpq needs a general way to specify refid output format.  HStenn.
* [Bug 3031] ntp broadcastclient unable to synchronize to an server
             when the time of server changed. perlinger@ntp.org
  - Check the initial delay calculation and reject/unpeer the broadcast
    server if the delay exceeds 50ms. Retry again after the next
    broadcast packet.
* [Bug 3036] autokey trips an INSIST in authistrustedip().  Harlan Stenn.
* Document ntp.key's optional IP list in authenetic.html.  Harlan Stenn.
* Update html/xleave.html documentation.  Harlan Stenn.
* Update ntp.conf documentation.  Harlan Stenn.
* Fix some Credit: attributions in the NEWS file.  Harlan Stenn.
* Fix typo in html/monopt.html.  Harlan Stenn.
* Add README.pullrequests.  Harlan Stenn.
* Cleanup to include/ntp.h.  Harlan Stenn.

---
(4.2.8p6) 2016/01/20 Released by Harlan Stenn <stenn@ntp.org>

* [Sec 2935] Deja Vu: Replay attack on authenticated broadcast mode. HStenn.
* [Sec 2936] Skeleton Key: Any trusted key system can serve time. HStenn.
* [Sec 2937] ntpq: nextvar() missing length check. perlinger@ntp.org
* [Sec 2938] ntpq saveconfig command allows dangerous characters
  in filenames. perlinger@ntp.org
* [Sec 2939] reslist NULL pointer dereference.  perlinger@ntp.org
* [Sec 2940] Stack exhaustion in recursive traversal of restriction
  list. perlinger@ntp.org
* [Sec 2942]: Off-path DoS attack on auth broadcast mode.  HStenn.
* [Sec 2945] Zero Origin Timestamp Bypass. perlinger@ntp.org
* [Sec 2948] Potential Infinite Loop in ntpq ( and ntpdc) perlinger@ntp.org
* [Bug 2772] adj_systime overflows tv_usec. perlinger@ntp.org
* [Bug 2814] msyslog deadlock when signaled. perlinger@ntp.org
  - applied patch by shenpeng11@huawei.com with minor adjustments
* [Bug 2882] Look at ntp_request.c:list_peers_sum(). perlinger@ntp.org
* [Bug 2891] Deadlock in deferred DNS lookup framework. perlinger@ntp.org
* [Bug 2892] Several test cases assume IPv6 capabilities even when
             IPv6 is disabled in the build. perlinger@ntp.org
  - Found this already fixed, but validation led to cleanup actions.
* [Bug 2905] DNS lookups broken. perlinger@ntp.org
  - added limits to stack consumption, fixed some return code handling
* [Bug 2971] ntpq bails on ^C: select fails: Interrupted system call
  - changed stacked/nested handling of CTRL-C. perlinger@ntp.org
  - make CTRL-C work for retrieval and printing od MRU list. perlinger@ntp.org
* [Bug 2980] reduce number of warnings. perlinger@ntp.org
  - integrated several patches from Havard Eidnes (he@uninett.no)
* [Bug 2985] bogus calculation in authkeys.c perlinger@ntp.org
  - implement 'auth_log2()' using integer bithack instead of float calculation
* Make leapsec_query debug messages less verbose.  Harlan Stenn.
* Disable incomplete t-ntp_signd.c test.  Harlan Stenn.

---
2016-05-01 15:57:23 +00:00
joerg
a114fff726 Revert. For whatever reasons, the ELF visibility attributes are not
meant to be a useful indicator of what an object expects, so for linking
against a protected symbol, it must be declared as normal.
2016-04-29 16:25:55 +00:00
christos
d7245a7577 include stdio.h for NULL 2016-04-28 11:45:02 +00:00
christos
f107a05fec remove incorrect comment 2016-04-28 11:38:41 +00:00
wiz
b3e27845a3 Sort SEE ALSO. New sentence, new line. 2016-04-28 08:17:04 +00:00
wiz
307c12e07c Fix xrefs. Sort sections. Remove trailing whitespace. 2016-04-28 08:16:09 +00:00
wiz
e09a2cef0e Replace Xr to itself with Nm. 2016-04-28 07:06:11 +00:00
christos
4187cd60b2 Introduce dt_bootfile() and use it to avoid hard-coded kernel values. Fixes
dtrace hang for kernels not named netbsd.
2016-04-28 00:02:40 +00:00
chs
cba709e375 the netbsd version of PT_LWPINFO is different from the freebsd version
in that we use lp_lwpid as an input to say which lwp to operate on.
freebsd passes the lwpid as the pid, which works fine there
since freebsd has globally unique LWP IDs which are also distinct
from process IDs.  the libproc interface that uses this ptrace() call
is only supposed to return info for the process's representative LWP,
so just initialize pl_lwpid to 1 before using it.
2016-04-26 14:29:58 +00:00
chs
d22d83420c use the netbsd path for separate debuginfo files.
only attempt to look up symbols in the dynsym table if the object
actually has one, which a separate debuginfo file does not.
2016-04-26 14:28:39 +00:00
chs
c8860c9bc8 fix the lookup of the rtld postinit hook to use the netbsd names
for the object and symbol rather than the freebsd names.
remove the lookups of the preinit and dlactivity hooks
(which do not currently exist separately in rtld on netbsd) for now
since this rtld_db implementation does not report those events anyway.
2016-04-26 14:26:49 +00:00
christos
f8e7276e29 CID 1358677: (Negative returns) tuck in poll_fd assignment in eloop_open() 2016-04-24 18:20:40 +00:00
christos
5ca807aba7 CID 1358676: Forward NULL. 2016-04-24 18:16:05 +00:00
christos
75518e7407 Propagate PLT fix from our gcc-5.3 tree:
Some functions like __udivsi3 are used in other assembly files like __umodsi3.
Use PLT linkage to avoid text relocations.

XXX: pullup-7
2016-04-22 18:05:52 +00:00
christos
17ab1145c9 Undo previous; wrong tree. 2016-04-22 18:05:13 +00:00
christos
6d71bd475a Propagate PLT fix from our gcc-5.3 tree:
Some functions like __udivsi3 are used in other assembly files like __umodsi3.
Use PLT linkage to avoid text relocations.

XXX: pullup-7
2016-04-22 18:03:54 +00:00
christos
4c876db4b4 Print the symbol that caused the text relocation for m68k like we do for
other platforms.
2016-04-22 17:40:36 +00:00
christos
97bb42372a Some functions like __udivsi3 are used in other assembly files like __umodsi3.
Use PLT linkage to avoid text relocations.
2016-04-22 17:39:38 +00:00
mrg
8398abcc05 mknative for GCC 5.3 and *arm* after netbsd-elf.h order fix. 2016-04-22 01:45:26 +00:00
skrll
6e4fa334ab Re-order includes so that ARM_TARGET2_DWARF_FORMAT takes effect
Fixes PR/51066: C++ text relocations
2016-04-21 16:09:16 +00:00
mrg
0010df8996 regenerate mknative-gcc for GCC 4.8 and *arm* 2016-04-21 07:24:09 +00:00
christos
d5fc259be3 WARNS=1 2016-04-20 17:18:52 +00:00
roy
302733a775 Sync 2016-04-20 08:53:01 +00:00
skrll
a7d674ca52 Re-order includes so that ARM_TARGET2_DWARF_FORMAT takes effect
Fixes PR/51066: C++ text relocations
2016-04-20 06:51:03 +00:00
christos
dc12ea256d The gcc diagnostic formats handle %m 2016-04-19 21:11:44 +00:00
christos
3a8ea6fb2d Enable minimal warnings, disabling the unused and narrowing ones that gcc
authors don't seem to pay attention to.
2016-04-19 21:11:05 +00:00
nakayama
d3ef62dc17 Fix NetBSD RCS keyword. 2016-04-17 02:16:26 +00:00
nakayama
161d0b9e5f Use xorg-pkg-ver.mk to retrieve PACKAGE_STRING. 2016-04-16 20:52:07 +00:00
nakayama
af72fa8d05 Set PACKAGE_STRING properly. 2016-04-16 16:57:06 +00:00
christos
8b51aa0d7a add HAVE_MKSTEMP 2016-04-13 22:26:48 +00:00
christos
e29ae0f86e Fix MKSTEMP 2016-04-13 22:01:55 +00:00
christos
0e65ad3ed0 We have MKSTEMP so use it! 2016-04-13 21:54:25 +00:00
christos
7abbfa376d We have MKSTEMP so stop using mktemp! 2016-04-13 21:48:21 +00:00
christos
7e68b5ef19 Add -DPIC for PIE builds so that we can avoid text relocations. 2016-04-12 19:38:41 +00:00
roy
cc53734e89 Fix build for operesolv-3.8.0 2016-04-11 10:43:24 +00:00
roy
3ddffba0b1 Sync 2016-04-11 10:41:51 +00:00
roy
9d6c04751d Import openresolv-3.8.0 with the following changes:
*  init system detection moved from configure into resolvconf.
  *  Fixed multiple domains not bein separated correctly.
2016-04-11 10:40:21 +00:00
roy
bb6883340e Only FreeBSD treats rssi this way, so #ifdef it and just treat rssi
as a number for other OS.
2016-04-11 08:57:19 +00:00
christos
cb19fc18b8 Apply revision 274569 from FreeBSD:
Only compare visitation counters if they've both been set for the current
type graph walk.
2016-04-10 23:37:10 +00:00
roy
f6d6501d55 dhcpcd now uses libutil. 2016-04-10 21:06:54 +00:00
roy
9c9a1de605 Sync 2016-04-10 21:00:53 +00:00
christos
0aab751630 fix test. 2016-04-09 17:58:46 +00:00
christos
eabf50fc2e properly check for type id overflow 2016-04-09 17:51:50 +00:00
riastradh
989878b760 Add autounload logic to dtrace module prototype. 2016-04-09 15:18:48 +00:00
riastradh
51346d2825 Disable autoload if there are any profile probes. 2016-04-09 15:17:58 +00:00
riastradh
7256e74462 Prevent autounload while cyclics are still in use. 2016-04-09 14:50:08 +00:00
christos
7be14baef5 remove HAVE_FPARSELN 2016-04-08 11:56:43 +00:00
christos
e7b9154ec4 more FreeBSD changes from Kurt Lidl. 2016-04-05 12:28:57 +00:00
skrll
fde887dff0 binutils 2.26 mknative for aarch64 2016-04-05 09:54:26 +00:00
skrll
ded2b1e2a4 Set ELFSIZE to 64 2016-04-05 09:52:22 +00:00
mrg
0a5e3dc2e5 sgimip is big endian, noted by @nisimura.
minor updates.
2016-04-05 00:43:48 +00:00
christos
849c4feb3c FreeBSD patches from Kurt Lidl. 2016-04-04 15:52:56 +00:00
skrll
744cc1c471 binutils 2.26 mknative for alpha 2016-04-04 13:45:40 +00:00
ozaki-r
09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
skrll
b1a9918244 Don't use secureplt on alpha yet 2016-04-04 06:58:48 +00:00
riastradh
0def3bc2ac Fix module name of dtrace_profile. 2016-04-04 05:15:07 +00:00
mrg
c8af37f927 remove platforms successful switched and update some of the mips testing 2016-04-04 01:47:18 +00:00
mrg
0e34d6d47b note shark (earmv4) works including atf. 2016-04-04 01:32:21 +00:00
skrll
590b4bf8cc binutils 2.26 mknative for mipseb 2016-04-03 18:24:03 +00:00
skrll
4af6e95a2b binutils 2.26 mknative for mipsel 2016-04-03 14:34:22 +00:00
mlelstv
338689a6b9 amiga kernel builds and runs 2016-04-02 08:54:47 +00:00
christos
e7b323ca74 bump stack a little 2016-03-31 22:49:14 +00:00
christos
f6e1dd671e Delay freeing the die where the indirect attribute is found. Found by jemalloc
J, see: https://mail-index.netbsd.org/current-users/2016/03/28/msg029130.html
2016-03-31 15:53:33 +00:00
martin
f9c9a2217e "Extended version" of the "mips64 hack" used in gcc 5.3's libgcc.a
build: avoid lots of duplicate symbols on softfloat builds.
Now mac68k is buildable with MKSOFTFLOAT=yes again, finally!
2016-03-31 15:06:39 +00:00
martin
91839179d9 Extend the "mips64 hack" to all MKSOFTFLOAT builds - avoid duplicate
symbols in libgcc.
2016-03-31 06:59:44 +00:00
christos
c3d31e1aba Add auto-generated sqlite3 man pages 2016-03-30 21:31:44 +00:00
christos
b817d38134 From: https://github.com/kristapsdz/sqlite2mdoc 2016-03-30 21:30:20 +00:00
macallan
82d8a53e21 Loongson MMI code needs -Wa,-mhard-float now 2016-03-30 16:19:06 +00:00
mrg
768e59d75f - clean up some
- i386 atf works
- mipseb kernels and system runs
- mips64* kernels work system runs
2016-03-29 09:20:28 +00:00
mrg
f46b30aacc mknative-binutils for binutils 2.26 and mipse[lb]. 2016-03-28 17:00:43 +00:00
skrll
d176304fc0 Add some more mips targets for martin 2016-03-28 09:01:24 +00:00
mrg
0bcf063564 revert most of the previous and re-do it to be valid, re-fixing i386 psABI
support with -m32.
2016-03-27 17:17:59 +00:00
mrg
d993c21bf1 don't set PREFERRED_STACK_BOUNDARY_DEFAULT, in particular, don't set it
to 64 (8 bytes) for 64-bit targets, where 16 byte alignment is required.
this fixes GCC 5 and ssh on modern intel cpus, and perhaps more.
2016-03-27 04:18:09 +00:00
mrg
3bd6f79dca - figured out the ldap/ssh problem. was miscompiled crtbeginS.o which
has been worked around.
- update some testing info.
- merge or1k/riscv descriptions that are actually the same problem.
2016-03-27 00:07:20 +00:00
mrg
1353e79727 mknative-gdb for sparc and gdb 7.10 2016-03-26 10:29:44 +00:00
mrg
c6df9b1e81 use --with-diagnostics-color=auto-if-env as the default for GCC 5. 2016-03-26 09:02:56 +00:00
mrg
fbf2aacce9 sparc has the ldap problem 2016-03-26 09:01:20 +00:00
mrg
2a660b745c mknative-binutils for mips64* and binutils 2.26. 2016-03-26 08:52:22 +00:00
skrll
b5a4e0ca09 Too many ;; in previous 2016-03-26 08:41:16 +00:00
skrll
fe5f2f1cd4 Attempt to fix mergo for mips 2016-03-26 08:39:55 +00:00
mrg
a9eeed2076 mknative-gdb for mips64eb. 2016-03-26 08:09:54 +00:00
mrg
813ae8862d mknative-gdb for mips64el. 2016-03-26 07:38:55 +00:00
joerg
f6d6965b37 If a protected symbol is defined in a shared library, it should still
provide an implementation. Fix the merging rules.
2016-03-25 23:04:41 +00:00
skrll
48d314007f Match with binutils 2016-03-25 09:29:01 +00:00
skrll
40c9ab5d24 Fix mergo for mips 2016-03-25 09:27:43 +00:00
mbalmer
fbad720175 Apply second and third patch from http://lua.org/bugs.html. 2016-03-25 08:15:20 +00:00
wiz
bb83bac5d1 Sort SYNOPSIS. Fix xref. 2016-03-25 07:48:16 +00:00
christos
204c2b27e8 update VAX 2016-03-24 21:46:28 +00:00
skrll
6b15b11db2 hppa is tested. I think it's "OK" 2016-03-24 21:26:45 +00:00
mrg
6d053978a6 update:
- earmv4 works (atf has one new failure, that seems common)
- mipsel run
- sparc runs
- sparc64 mostly works in UP mode
- add list of actual machines tested on
2016-03-24 21:20:31 +00:00
skrll
9f1adecae2 Note hppa status:
- kernel works
	- sshd has the ldap problem
2016-03-24 21:10:21 +00:00
christos
dd00c10363 new binutils bitch about writable eh_frame relocations; tell it we have
new style ones.
2016-03-24 04:27:29 +00:00
christos
8d5dde7eda adapt to new api 2016-03-24 03:49:06 +00:00
christos
199e801a7d regen 2016-03-24 03:33:28 +00:00
christos
3c9ee4e32a adapt for vax. 2016-03-24 00:38:40 +00:00
christos
3261c90968 XXX: gcc -O0 for vax 2016-03-24 00:02:52 +00:00
christos
da1b6972c1 XXX: vax gcc 2016-03-23 21:39:42 +00:00
christos
73357d78a2 regen vax! 2016-03-23 21:24:52 +00:00
christos
d418ed3dfa Drop PSW annotation for now; it is not a real register and we need special
rtl for it (causes an assertion failure)
2016-03-23 21:21:36 +00:00
christos
3404205800 need stdbool.h 2016-03-23 21:09:04 +00:00
mrg
13c73075bd update the build status for some ppc and mips. 2016-03-23 18:45:41 +00:00
christos
214b89d952 Revert previous changes until we can test them better. 2016-03-23 15:51:36 +00:00
christos
0db9e20bfb From Jake Hamby
For several years I've been eager to find the time to fix the bugs
in C++ exceptions on VAX to get them working on NetBSD, because
theyâve been broken for many years and it looked like only a few
changes were needed to get them working. Without C++ exceptions,
the NetBSD test suite canât be run. The good news is that I was
able to fix all the bugs in the VAX machine description to make
C++ exceptions work in GCC 4.8.5 (version unimportant). I wrote a
blog post explaining the bugs, with patches:


Here's a short summary, with the diffs in text form at the end of this email.

1) Replace #define FRAME_POINTER_CFA_OFFSET(FNDECL) 0 with #define
ARG_POINTER_CFA_OFFSET(FNDECL) 0 in gcc/config/vax/elf.h and
gcc/config/vax/vax.h. This changes the definition of __builtin_dwarf_cfa()
to return %ap instead of %fp, which correctly points to CFA.
Previously, the stack unwinder was crashing in _Unwind_RaiseException()
trying to follow bad pointers from the initial CFA.

2) Define EH_RETURN_DATA_REGNO(N) to include only R2 and R3 (instead
of R2-R5) and add code to vax_expand_prologue() in gcc/config/vax/vax.c
to add R2-R3 to the procedure entry mask but only if crtl->calls_eh_return
is set. This fixes a crash when the stack unwinder tried to write
values to R2 and R3 in the previous stack frame via
__builtin_eh_return_data_regno (0) and __builtin_eh_return_data_regno (1).

3) Removed definitions of EH_RETURN_STACKADJ_RTX and STARTING_FRAME_OFFSET
from gcc/config/vax/elf.h. It's not necessary to remember the stack
adjustment or to waste four bytes on every stack frame for a value
that's not needed. Also remove the suspicious changes in
gcc/config/vax/vax.md to the definitions of call_pop and call_value
regarding DW_CFA_GNU_args_size and EH unwinding. I reverted to the
previous versions from an older version of GCC, adding a few useful
comments that had been removed.

4) The last bug is the one I understand the least. I'm hoping
someone reading this can implement a correct fix. What I was seeing
after making all the previous changes to fix the other bugs is that
my test program failed to catch any exceptions, but instead returned
normally to the original return path.

Investigation revealed that GCC was correctly generating the
necessary move instruction to copy the second parameter passed to
__builtin_eh_return() into the return address, because
EH_RETURN_HANDLER_RTX had been defined correctly in config/vax/elf.h.
Hereâs what the call looks like in gcc/except.c:

#ifdef EH_RETURN_HANDLER_RTX
      rtx insn = emit_move_insn (EH_RETURN_HANDLER_RTX, crtl->eh.ehr_handler);
#else
      error ("__builtin_eh_return not supported on this target");
#endif

The problem was that the optimizer is deleting the final move
instruction when I compile with -O or higher. The assembly code at
-O0 (no optimization) generated for the __builtin_eh_return() call
at the end of _Unwind_RaiseException() looked like:

	calls $2,_Unwind_DebugHook
	movl -12(%fp),%r1
	movl %r1,16(%fp)
	ret
	.cfi_endproc

But then when I compiled with -O1 or -O2, all I saw was:

	calls $2,_Unwind_DebugHook
	ret
	.cfi_endproc

This was a mystery for me and I donât know enough about how the
final peephole optimizer works to really track down why it thinks
it can remove the move call to store the previous return address.
My workaround was to add a call to RTX_FRAME_RELATED_P (insn) = 1;
after the emit_move_insn() in gcc/except.c, which was used in
vax_expand_prologue() to mark the procedure entry mask.

By making this change, the optimizer no longer removes the call to
write the value to the previous stack pointer, but it adds an extra
line of .cfi exception info, which seems unnecessary since the code
is immediately going to return from the call and any adjustment
made by the DWARF stack unwinder will already have been done. Hereâs
what the optimized code looks like with the patch (%r6 had been
loaded earlier):

	calls $2,_Unwind_DebugHook
	movl %r6,16(%fp)
	.cfi_offset 6, -36
	ret
	.cfi_endproc

With that final change, C++ exception handling now finally works
on NetBSD/vax, and I was able to successfully run the vast majority
of the tests in the ATF testsuite, which had been completely
inaccessible when I started due to both atf-run and atf-report
immediately dumping core due to the bad pointers that I fixed. Now
I have a bunch of new bugs to track down fixes for, but I think
this was the hardest set of problems that needed to be solved to
bring NetBSD on VAX up to the level of the other NetBSD ports.

Here are the diffs I have so far. They should apply to any recent
version of GCC (tested on GCC 4.8.5). With the exception of the
hack to gcc/except.c, the other diffs are ready to submit to NetBSD
as well as to upstream GCC. The fix Iâd like to see for the final
problem I discovered of the emit_move_insn() being deleted by the
optimizer would be another patch to one of the files in the
gcc/config/vax directory to explain to the optimizer that writing
to 16(%fp) is important and not something to be deleted from the
epilogue (perhaps it thinks itâs writing to a local variable in
the frame that's about to be destroyed?).

I didn't see any indication that any other GCC ports required
anything special to tell the optimizer not to delete the move
instruction to EH_RETURN_HANDLER_RTX, so the other suspicion I have
is that there may be a bug specific to VAX's peephole optimizer or
related functions. Any ideas?
2016-03-23 12:52:43 +00:00
christos
5ea3c1df8c Fix vax build, now we fail in:
/usr/src/lib/csu/common/crt0-common.c: In function '___start':
/usr/src/lib/csu/common/crt0-common.c:184:1: internal compiler error: in dwf_regno, at dwarf2cfi.c:988
 }
  ^
2016-03-23 12:45:50 +00:00
roy
3cd1bf9411 Describe -M 2016-03-23 10:14:07 +00:00
roy
52194b1e29 Build with interface matching support. 2016-03-23 09:35:25 +00:00
roy
44c22e3889 Add interface matching support with -M, guarded by CONFIG_MATCH_IFACE
The new wpa_supplicant command line argument -M can be used to describe
matching rules with a wildcard name (e.g., "wlan*").

This is very useful for systems without uev (Linux) or devd (FreeBSD).
2016-03-23 09:31:58 +00:00
mrg
2b233e3130 apply -Wno-error=maybe-uninitialized with GCC 5.3. 2016-03-23 09:00:31 +00:00
roy
e620e95ff3 Only down the interface once we are sure we can work with it. 2016-03-23 08:51:02 +00:00
roy
0d1d60cec2 Interface additions/removals are not guaranteed to be for the driver
listening to kernel events. As such, send the events to
wpa_supplicant_event_global() which can then pick the correct interface
registered with wpa_supplicant to send the event to.
2016-03-23 08:48:43 +00:00
mrg
a204afdc5c use -Wno-error=sign-conversion for now. Roy, when you get to GCC 5
you might have a look at this :-)
2016-03-23 08:39:01 +00:00
mrg
8258e9ec7a update a bunch:
- explain the columns
- update arm status:
  - MKCOMPAT problems with oabi
- coldfire builds as much as GCC 4.8
- sun2, m68k builds
- most mips builds now (mips64 has generic build issues)
- update sparc64 and ppc problems (sshd)
  - there is something very very odd in linking libldap.so.4.3 where
    using the GCC 4.8 compiler to link the GCC 5.3 compiled objects
    works, or using GCC 5.3 compiler to link the 4.8 compiled objects
    fails -- ie, the compiler output seems fine, but the interactions
    between GCC and ld(1) are broken.
- add or1k, riscv*, ia64 and ppc64 columns:
  - or1k and riscv* both fail, they need to have their support
    ported to GCC 5.x (i understand that at least one of them
    has a GCC 5.x tree.)
- expand the list of actually tested to complete "build.sh release"
  to include machines, not just cpus.
2016-03-23 07:34:37 +00:00
mrg
b025ea285a avoid unused variables. 2016-03-23 06:59:59 +00:00
mrg
017e647d1f hackaround a problem on mips64 in soft-fp between libgcc and our libc.
i'm not 100% sure how this should work (matt?), as now we have some
functions coming from libc and some from libgcc, but this at least
builds now.
2016-03-23 05:28:01 +00:00
mrg
7e10c3bf91 workaround a problem in old binutils and GCC 5.3. 2016-03-23 05:24:54 +00:00
mrg
6faa8aa178 slightly rearrange the generation of SRCS. 2016-03-23 00:20:18 +00:00
mrg
b1835b1ee7 mknative-gcc for coldfire and GCC 5.3. 2016-03-22 10:09:01 +00:00
mrg
4696acf403 updates to latest -current:
- sshd problem is libldap.so.4.3, at least on sparc64.  placing with 4.8 one works
- alpha mostly works fine, 7 new failures in atf, plus sshd problem
- update release build info for many *earm*, hppa, i386, amd64, mipsel, sh3*
- *mips* now at least completes mknative-gcc
- sh3eb has a mknative-gcc problem
2016-03-22 08:22:04 +00:00
mrg
f64fc53ba7 mips64 does not get (all?) the non sw-float version. fixes double symbol issues. 2016-03-22 08:18:27 +00:00
mrg
e7262bd9c5 mknative-gcc for m68k and m68000 and GCC 5.3. 2016-03-22 08:15:24 +00:00
mrg
32934a1fbb mknative-gcc for mips64* and GCC 5.3. 2016-03-22 06:54:18 +00:00
mrg
e347292cc6 mknative-gcc for GCC 5.3 and mipseb. 2016-03-22 05:09:49 +00:00
mrg
9d759439d5 XXXGCC5: add symlinks for SH .cc files. 2016-03-22 05:08:38 +00:00
mrg
8ae225e173 mknative-gcc for GCC 5.3 and mipseb. 2016-03-22 05:04:41 +00:00
mrg
cd3c7112ee hand-edit some not-yet-regenerated files that break the libstdc++
includes during mknative.
2016-03-22 04:53:16 +00:00
mrg
a39fa7193a mknative-gcc for GCC 5.3 and mipsel. 2016-03-22 04:50:50 +00:00
dholland
600ce53269 Install ftttdrv.h, which was apparently overlooked at some point
(probably because it contains little of substance...) PR 50902.
2016-03-21 05:23:39 +00:00
mrg
0645af0eac update alpha (mostly working) and hppa (mknative-gcc works) 2016-03-20 21:27:27 +00:00
mrg
e10e41c701 mknative-gcc for HPPA and GCC 5.3. thanks for fixing fenv.c, nick! 2016-03-20 21:14:20 +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
mrg
fed2b588b4 add missing insn-modes.h files from earlier regen. 2016-03-18 20:40:21 +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
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
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
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
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
942264dc30 generate mknative-gcc for GCC 5.3 and all the arm targets.
minor regen for x86 and sparc*
2016-03-17 23:40:10 +00:00
mrg
7e67a440fd document the state of gcc 5.3 in src. 2016-03-17 21:46:08 +00:00
christos
f67f429ca8 remove unused label. 2016-03-17 19:02:38 +00:00
christos
4266f2333f Handle DW_AT_specification better; also don't core-dump if at == NULL.
XXX: Is that right?
2016-03-17 18:52:26 +00:00
nakayama
7080db35d2 Regen without #line directives.
- nbyacc -l -d -o initparse.c parse.y
- nblex -L -t -p scan.l > initscan.c
2016-03-17 15:28:00 +00:00
nakayama
31a9210e94 Apply our changes dropped in previous merge. 2016-03-17 15:23:21 +00:00
mrg
6d2d852e21 mknative bootstrap-libgcc GCC 5.3 for most arm platforms. having
minor issue with the next step.

regen minor bits for amd64.
2016-03-17 08:09:32 +00:00
mrg
dbb6be7589 don't build a fake insn-modes.h for arm. 2016-03-17 08:02:38 +00:00
christos
cdd20e12b2 Avoid longjmp clobbering 2016-03-17 03:05:55 +00:00
christos
6d8f8b8d44 regen amd64 2016-03-17 00:56:05 +00:00
christos
03d1491ba7 Need more no stack protector 2016-03-17 00:55:54 +00:00
christos
9601406bf3 add default: to appease gcc. 2016-03-17 00:19:36 +00:00
wiz
3c8121f349 Hardcode man page dates to date of groff release (September 4, 2005
for 1.19.2 in this case).

We can not use mdate.sh since after checkout/update from version
control, it might be today's date and MKREPRO won't work.
2016-03-16 23:52:04 +00:00
mrg
12cc99b35b mknative-gcc for GCC 5.3 and sparc64. 2016-03-16 18:07:16 +00:00
mrg
8bf117ec5f mknative-gcc for GCC 5.3 and sparc 2016-03-16 11:24:16 +00:00
mrg
db843c8c09 for now, use a mknative-gcc copy of insn-modes.h and ensure that it
matches during the build.  the copy is used for everything, but it
is needed for libgcc and libgomp early on.

regen i386.
2016-03-16 10:56:20 +00:00
mrg
fd7d023d0b regen. 2016-03-16 09:30:43 +00:00
mrg
849ca3bc36 disable some asan stuff for now. 2016-03-16 07:17:14 +00:00
mrg
2084d61b21 apply an ugly hack to force-build insn-modes.h for libgcc and libobjc
since they want it now.

XXX:  super ugly, probably can be fixed by rearranging a bunch of what
XXX:  is currently in ../usr.bin/backend/ that builds insn-modes.h.
2016-03-16 05:44:16 +00:00
mrg
3d6404b178 spell $NetBSD$ with the trailing $. 2016-03-16 05:42:07 +00:00
mrg
6ce58dac48 libgcc needs to be fully built before others (so that headers are)
so add a .WAIT.  make sure to check MKCXX for libs??c++*.

XXX turn of libasan for now.
2016-03-16 05:41:47 +00:00
mrg
b56ef02ca2 quote AD and LD. 2016-03-16 05:33:50 +00:00
mrg
c88c737d14 remove remaining mudflap bits 2016-03-16 05:33:16 +00:00
mrg
528265ab04 first stab mknative-gcc for GCC 5.3 and amd64. 2016-03-16 05:29:39 +00:00
mrg
04e7f39aac avoid rebuilding the INSTALL file which may be in a r/o src dir. 2016-03-16 00:52:41 +00:00
mrg
9f49350839 regen 2016-03-15 21:43:24 +00:00
mrg
77beaa54ea - fix build for c98/c11 versions of codecvt.cc
- the c99 subdir localename.cc and locale_init.cc need -std=gnu++11
2016-03-15 21:42:59 +00:00
mrg
7b1abc82fd port to GCC 5.3:
- handle wide-int{,-print}.cc with a hack
- clean up CLEANFILES
- build gengtype{-lex,-parse,-state,}.c properly
- build genmatch and its outputs
- build pass-instances.def
2016-03-15 21:41:36 +00:00
mrg
c53665cd03 fix the path for $GCCARCH. 2016-03-15 19:21:27 +00:00
mrg
7cc8898070 regen. 2016-03-15 19:18:00 +00:00
mrg
0f673b1e90 build a host version of libcpp, same as we do for libiberty.
the new genmatch generator program needs libcpp.
2016-03-15 19:14:47 +00:00
mrg
25a854132c add new sources in GCC 5.3. 2016-03-15 19:13:22 +00:00
mrg
9688a4384e move the target defines into a makefile fragment and add the new GCC
5.3 defines necessary.  remove "cp/" prefix from sources.
2016-03-15 19:12:06 +00:00
christos
9055794a13 update for 2016b 2016-03-15 17:33:14 +00:00
christos
b694a0486b Import tzdata2016b from ftp://ftp.iana.org/tz/releases/tzdata2016b.tar.gz
Summary of changes in tzdata2016b (2016-03-12 17:30:14 -0800):
  * New zones Europe/Astrakhan and Europe/Ulyanovsk for Astrakhan and
    Ulyanovsk Oblasts, Russia, both of which will switch from +03 to +04 on
    2016-03-27 at 02:00 local time.
  * As a trial of a new system that needs less information to be made up,
    the new zones use numeric time zone abbreviations like "+04"
    instead of invented abbreviations like "ASTT".
  * Haiti will not observe DST in 2016.
  * Palestine's spring-forward transition on 2016-03-26 is at 01:00, not 00:00.
  * Europe/Chisinau observed DST during 1990, and switched from +04 to
    +03 at 1990-05-06 02:00, instead of switching from +03 to +02.
  * 1991 abbreviations in Europe/Samara should be SAMT/SAMST, not
    KUYT/KUYST.
  * tzselect's diagnostics and checking, and checktab.awk's checking,
    have been improved.
  * tzcode now builds under MinGW.
  * tzselect now tests Julian-date TZ settings more accurately.
  * Comments in zone tables have been improved.
  * tzselect again limits its menu comments so that menus fit on a
    24x80 alphanumeric display.
  * A new web page tz-how-to.html.
  * In the Theory file, the description of possible time zone abbreviations in
    tzdata has been cleaned up, as the old description was unclear and
    inconsistent.

Summary of changes in tzdata2016a (2016-01-26 23:28:02 -0800):
  * America/Cayman will not observe daylight saving this year after all.
  * Asia/Chita switches from +0800 to +0900 on 2016-03-27 at 02:00.
  * Asia/Tehran now has DST predictions for the year 2038 and later,
    to be March 21 00:00 to September 21 00:00.
  * America/Metlakatla switched from PST all year to AKST/AKDT on
    2015-11-01 at 02:00.
  * America/Santa_Isabel has been removed, and replaced with a
    backward compatibility link to America/Tijuana.
  * Asia/Karachi's two transition times in 2002 were off by a minute.
  * Changes affecting documentation and commentary.

Summary of changes in tzdata2015g (2015-10-01 00:39:51 -0700):
  * Turkey's 2015 fall-back transition is scheduled for Nov.
  * Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time.
  * Fiji's 2016 fall-back transition is scheduled for January 17, not 24.
  * Fort Nelson, British Columbia will not fall back on 2015-11-01.
  * Norfolk observed DST from 1974-10-27 02:00 to 1975-03-02 02:00.
  * Changes affecting documentation.
2016-03-15 17:10:27 +00:00
mrg
6b5e7a1e2e mknative-gcc for GCC 5.3 and i386.
this only builds libraries besides asan so far.
2016-03-15 06:16:22 +00:00
mrg
dfa44a287b update to build GCC 5.3's libstdc++. include the dual ABI code. 2016-03-15 06:13:47 +00:00
mrg
3899c60a05 update for GCC 5.3 2016-03-15 06:12:11 +00:00
mrg
30168b1c52 fix a merge botch and properly delete the testsuite 2016-03-15 06:11:27 +00:00
mrg
15882b9e5b libmudflap is obsolete in GCC 5. 2016-03-15 03:19:38 +00:00