summaryrefslogtreecommitdiffstats
path: root/gnu (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use smtpd man pages by default. ok deraadt jmctedu2014-03-193-5/+19
| | | | sendmail.8 note by jmc
* Add a few more instruction patterns that are apparently needed by gcc 4.8.kettenis2014-03-131-13/+16
| | | | | | Taken from binutils 2.17. ok guenther@
* no more rmail in base; ok millertjmc2014-03-121-6/+2
|
* Having CpuSMAP and Cpu64 overlap isn't a terribly good idea.kettenis2014-02-171-2/+2
| | | | | | Makes it possible to build an i386 kernel with binutils-2.17 again. ok miod@
* install man perlinterp so you can learn all about the interpretertedu2014-02-151-0/+1
|
* Add support for i386 XSAVE family of instructions: xgetbv, xsetbv, xsave,guenther2014-02-098-27/+116
| | | | | | | xrstor, and xsaveopt. based on kettenis's original that did xgetbv and xsetbv ok kettenis@
* Update to sendmail 8.14.8. This touches a lot of files due to themillert2014-02-07478-1100/+1671
| | | | | Sendmail, Inc -> Proofpoint name change. See RELEASE_NOTES for actual changes.
* Catch SIGPIPE to clean up temp filesguenther2014-01-242-0/+8
| | | | ok deraadt@
* Add strong stack protector mode for the original propolice in GCC3.martynas2014-01-206-12/+51
| | | | | | | | | This includes additional functions to be protected --- those that have local array definitions, or have references to local frame addresses. Miod verified that this works on real hardware, and not just on the cross-compiled monster I tested this on.
* Fix the NAME section:schwarze2014-01-181-3/+4
| | | | | | One .Nm macro per name, and pass punctuation a as seperate argument. Found with mandocdb(8). OK jmc@.
* Add wcstring attribute support for Wbounded. To be used for wchar.hmartynas2014-01-142-5/+43
| | | | | which operates on element counts rather than buffer sizes. I'll start annotating headers in a few weeks, after the hackathon. OK millert@.
* Add a new option "-fstack-protector-strong" for GCC4. This includesmartynas2014-01-147-11/+99
| | | | | | | | | additional functions to be protected --- those that have local array definitions, or have references to local frame addresses. Note 1: Han explicitly licensed this under GPLv2 for us. Note 2: Do *not* use this anywhere in "src" Makefiles, as the other GCC doesn't have this option yet (but I'm working on it).
* Enable Wbounded by default. Passing bound bigger than the buffermartynas2014-01-132-2/+2
| | | | | | | | | | | size almost always has security implications. I think this quote from Theo summarizes the situation best: Which is why it is important to have at least one unforgiving platform in the ecosystem which properly labels shit shit. That's OpenBSD. If anyone can't handle that, they can go to platforms which hide the reality.
* Recognize PT_OPENBSD_RANDOMIZE in linker scripts.kettenis2013-12-302-0/+4
| | | | ok miod@, matthew@
* Prevent GCC from inlining these unsafe builtins: sprintf, vsprintf,martynas2013-12-282-6/+28
| | | | | | stpcpy, strcat, strcpy. Also don't simplify some safe builtins into unsafe ones, otherwise we'll hit the linker with the bogus warning. OK miod@, millert@.
* Backport the code from binutils 2.16 that makes weak undefined referenceskettenis2013-12-171-53/+114
| | | | | | work on alpha. tested by naddy@, deraadt@
* When writing a history entry, don't downcast time() return value tojca2013-12-141-2/+2
| | | | (long). Use (long long) and print it with %ll08x instead. ok zhuk@
* Revert the previous commit; this is not the right approach.kettenis2013-12-113-5/+17
|
* Stop the madness! Prevent GCC from inlining these unsafe functions:martynas2013-12-113-17/+5
| | | | | sprintf, vsprintf, stpcpy, strcat, strcpy. We're hitting the linker again, therefore the warning will show up now.
* Backport from gcc4 (mostly): make collect2 preserve ld's stdout andguenther2013-12-033-36/+77
| | | | | | | stderr separately so that redirections of gcc's stdout/stderr act as expected. ok and testing miod@
* Kill usage of timeb.h for upcoming removal of libcompat. OK deraadt@millert2013-12-0317-129/+75
|
* Do not add -lcompat in configure.naddy2013-12-022-2/+2
| | | | | | | | | | libcompat isn't needed; configure checks for the presence of cuserid() and ftime() and the build copes well with the absence of either. ftime() would only ever be used if gettimeofday() wasn't available, and cuserid() is replaced by getlogin() but that code branch is not reached anyway. ok sthen@ jca@ deraadt@
* disable kerberos support (only used for pserver, which we stronglyderaadt2013-11-111-7/+7
| | | | | discourage anyone from using anyways) ok various
* Make gcc call collect2 on powerpc (instead of directly calling ld).jca2013-10-291-3/+0
| | | | | | | Kernel, base and ports seem happy with this change, and there's no reason for collect2 to be less useful on these machines. Offending lines in gcc/config found by Miod, thanks. Let's commit the right file this time. ok kettenis@ miod@ mpi@
* Revert previous, wrong M ...jca2013-10-291-1/+1
|
* Make gcc call collect2 on powerpc (instead of directly calling ld).jca2013-10-291-1/+1
| | | | | | Kernel, base and ports seem happy with this change, and there's no reason for collect2 to be less useful on these machines. Offending lines in gcc/config found by Miod, thanks! ok kettenis@ miod@ mpi@
* f_bavail has been 64bits for some time now so revert 1.12.fgsch2013-10-241-2/+0
| | | | | Makes sendmail happy on fs with large enough f_bavail values. millert@ ok
* Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.guenther2013-10-242-2/+2
| | | | | | | | Use useconds_t in the ualarm() declaration. Bump libstdc++ major to be sure there isn't ABI issues. ok deraadt@ jca@ jmc@ millert@ ports testing by landry@
* fix a few obvious .Ar markup errors (unfortunately, there are many more)schwarze2013-10-191-10/+10
| | | | found while working on mandoc apropos
* Depending on wether the kernel has been compiled with or withoutbluhm2013-10-191-0/+1
| | | | | | | | debug information, gdb will either see calltrap or alltraps in the stack trace of a kernel core file. To make the gdb backtrace command work without debug information in the amd64 kernel, add the same special case for alltraps as for calltrap. OK miod@
* Merge binutils 2.15 einfo() buffering change to binutils-2.17.millert2013-10-091-0/+4
| | | | OK deraadt@ miod@
* Make stderr buffered in einfo(). Speeds up display of error messagesmillert2013-09-301-0/+4
| | | | on slower platforms. Idea from espie@, OK espie@ deraadt@ guenther@
* gcc4 has phased out -W in favor of -Wextra. Teach gcc3 to recognize -Wextramiod2013-09-051-1/+1
| | | | | as an ersatz for -W. Now that more and more third-party software assumes the compiler supports -Wextra, this is definitely worth doing.
* Explicitely define USE_GAS for OpenBSD targets; the configure machinery inmiod2013-09-051-0/+2
| | | | gcc 3 no longer defines this for us.
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-139-12/+12
| | | | | | | | | | | | | | | | | | | | members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
* A few fixes from Tim Mcintosh:miod2013-08-111-6/+49
| | | | | | | - provide 88110 syntactic sugar for the control register names - correctly handle -m options - and a minor fix to allow the register prefix to correctly be recognized in front of the condition codes (only needed for SVR4)
* Remove an optimizer workaround for alpha/gcc2 although it was beingbrad2013-08-081-5/+1
| | | | | | applied for all archs. ok deraadt@ miod@
* ino_t will never be smaller than 32 bits again; prep for when it's 64 bits.guenther2013-08-081-5/+5
| | | | simplification and ok kettenis@
* Prep for big ino_t: cast to unsigned long long and format with %ll or %qguenther2013-08-082-4/+4
| | | | httpd correction and ok kettenis@
* don't warn on missing newline at eofjsg2013-08-073-7/+0
| | | | | matches the behaviour of gcc >= 4.3 and clang ok miod@
* Remove gcc 2.95 from the tree. One of the least bogus compiler we had (althoughmiod2013-08-065869-1523173/+0
| | | | | it had required some generous bandaid), but unfortunately not able to compile most of the Real World (tm) software.
* Remove support for COMPILER_VERSION == gcc2.miod2013-08-064-22/+10
| | | | | | | | Change the logic depending upon COMPILER_VERSION everywhere, to assume gcc4 is the norm and to explicitely test for gcc3 when a different behaviour is required. No functional change intended. Be sure to `make install' in share/mk before attempting to do anything.
* Switch vax to gcc 3.3.6.miod2013-08-063-6/+15
|
* One major difference between gcc 2.95 and gcc 3, is that the latter comesmiod2013-08-062-0/+6
| | | | | | | | | | | | | | | | | | with an optimization pass which attemps to identify and remove dead stores. Unfortunately, this logic assumes that a given rtl MEM reference can only refer to register contents and values, but not further dereference memory. This is not true of all addressing modes on vax, and this causes gcc 3 to consider as dead stores everything which can be expressed as *offset(register) in vax assembly. The canonical example of this is linked list insertion or removal, with instructions such as "item->prev->next = item->next" being wrongly optimized out, and cause double frees or other funny linking problems later on. Add a knob to disable the troublesome part of that optimization pass, and only enable this knob on vax. This gives a native vax gcc 3 compiler able to rebuild the world.
* Use proper types for device and inode numbersguenther2013-08-051-3/+3
| | | | ok kettenis@
* Fix attribute((init_priority)) on sparc and sparc64.kettenis2013-07-302-0/+8
|
* Register GDB_OSABI_OPENBSD_ELF as well.miod2013-07-131-0/+2
|
* In Perl_upg_version(), do not compare double against 10e50 on vax, for thismiod2013-07-131-0/+4
| | | | | | | | value can not be represented by a double (unless compiling with -mg); instead, use a lower limit value. This does not impact the behaviour since both sides of the test are supposed to produce the same result, albeit in different ways. ok millert@ espie@
* ELF configuration for gcc3 on vax.miod2013-07-113-5/+99
|
* Put the a.out as and ld to rest in the Attic, finally!miod2013-07-05247-97951/+0
|