summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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@
* 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@
* Catch SIGPIPE to clean up temp filesguenther2014-01-241-0/+4
| | | | 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-141-3/+22
| | | | | which operates on element counts rather than buffer sizes. I'll start annotating headers in a few weeks, after the hackathon. OK millert@.
* Enable Wbounded by default. Passing bound bigger than the buffermartynas2014-01-131-1/+1
| | | | | | | | | | | 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@
* 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@
* 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
* 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-133-4/+4
| | | | | | | | | | | | | | | | | | | | 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)
* Prep for big ino_t: cast to unsigned long long and format with %ll or %qguenther2013-08-081-2/+2
| | | | httpd correction and ok kettenis@
* don't warn on missing newline at eofjsg2013-08-072-4/+0
| | | | | matches the behaviour of gcc >= 4.3 and clang ok miod@
* Remove support for COMPILER_VERSION == gcc2.miod2013-08-062-9/+5
| | | | | | | | 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-062-5/+10
|
* 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@
* 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
|
* ELF_TOOLCHAIN bye bye.miod2013-07-054-55/+3
|
* VAX ELF toolchain, using `%' as the register prefix. Heavily based uponmiod2013-07-0512-74/+61
| | | | NetBSD.
* Add support for the GCC binary integer constants extension.jsg2013-07-042-3/+43
| | | | | | | From Joerg Wunsch in GCC PR 23479, under the GPLv2. This is required to build the i965 backend with newer versions of mesa. ok kettenis@ espie@ miod@
* Unbreak "make includes" with an empty /usr/include by creating the 'objc'mpi2013-07-011-1/+3
| | | | | | directory if it doesn't exist. ok sthen@, espie@
* Move the declaration of `disable_x_prog' outside of a #ifdef AUTH_SERVER_SUPPORTmiod2013-06-201-2/+2
| | | | block where it had been mistakenly put in the first place (in r1.28).
* don't link to hx509, pthread and ntlm related librariesrobert2013-06-191-1/+1
|
* Shuffle library link order to appease the static arch deities.miod2013-06-181-1/+1
|
* link to the new kerberos librariesrobert2013-06-171-1/+1
|
* classify_integer(): test whether the value can be built using the `set'miod2013-06-041-21/+34
| | | | | | | | | instruction, before testing whether it can be built with `or.u'; this allows further optimization. condition_value(): handle ORDERED and UNORDERED condition codes. print_operand(): remove support for no longer used `w' qualifier.
* Add "length" attribute to "weird" class instructions of small length: usermiod2013-06-041-11/+16
| | | | | | inline assembly, tb/tbnd instructions. Don't use `r' qualifier for "register_operand", it's redundant.
* Do not feed UTF-8 input into mandoc or nroffschwarze2013-06-041-1/+8
| | | | | | | | | | | | | because that resulted in corrupt output. This is a verbatim backport of the following bugfix from upstream git master: https://rt.cpan.org/Public/Bug/Display.html?id=77465 https://github.com/mrallen1/Pod-Perldoc/commit/6e1541d0bcb74a7b2b9ee3235d57953fb800bb67 Do not take the comment in the source code too literally. It doesn't really explain the problem well. OK sthen@ espie@ millert@
* avoid rebuilding server.c and client.c in the install targetrobert2013-06-031-2/+2
|
* Only produce UTF-8 output if the user's locale asks for it.schwarze2013-06-031-1/+1
| | | | | Will send this upstream as well. OK millert@ bluhm@ stsp@
* backport commitid support from newer CVS (with a different random idjcs2013-06-039-1/+91
| | | | | | | | generator) writing a commitid is currently disabled ok deraadt
* Put libgcov.a in the same directory as libgcc.a rather than /usr/lib (unlikemiod2013-05-181-1/+2
| | | | FreeBSD).
* Build and install libgcov on gcc 4 platforms. Build machinery from FreeBSD.miod2013-05-182-1/+89
| | | | | | | This makes gcc -fprofile-arcs work again. Regression reported by Azwaw OUSADOU on tech@, thanks for noticing and sorry for the delay fixing this.
* Don't reject '++' and '--' in expressions. Some versions of gcc emit these.kettenis2013-05-171-6/+9
| | | | | | Fix found upstream. ok miod@, martynas@