summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
2016-06-08Revert the change that made the PLT readonly. The dynamic linker nowMark Kettenis
actually uses the fact that the PLT is in a writable segment to avoid the dependency on the __plt_start and __plt_end symbols. ok deraadt@
2016-06-02Fix internal compiler error with long long arithmeticDavid Coppa
Adapted from a change to mainline gcc while it was still GPLv2. Original diff found by stefan@ Adaptation by me ICE caught by ml(at)extensibl(dot)com while he was porting MLton to OpenBSD. Ok stefan@ "Go for it" deraadt@
2016-06-01Until we get relro working, we need the __{got,plt}_{start,end} symbolsPhilip Guenther
to always be exported so ld.so can use them. This isn't the Right Thing, but pushing strict W^X is usefully turning up issues, so unbreak stuff until we can slog into binutils and do the Right Thing ok kettenis@
2016-05-31Port over binutils fix for PR ld/3111.Stefan Kempf
This greatly speeds up up linking of object files that contain lots of dwarf2 symbols by caching symbol tables. Original patch before binutils was switched to GPLv3 from: https://sourceware.org/ml/binutils/2006-08/msg00334.html Aaron Miller made us aware of that diff and adapted it to our in-tree binutils. Many thanks! Ports build testing on amd64 by krw@ ok deraadt@ krw@
2016-05-28-z wxneeded creates a PHDR PT_OPENBSD_WXNEEDED. This annotation is placedTheo de Raadt
on a binary by a software builder (ie. packager) to indicate to the kernel that this software performs W^X violations. ok kettenis guenther millert
2016-05-23On sparc64, make the PLT read-only. This allows the kernel and ld.so toMark Kettenis
load binaries without violating W^X. ld.so will make the PLT temporarily writable (making it non-executable at the same time) to set up the initial PLT slots and to do non-lazy relocations and restore permissions afterwards. Make sure you install an updated ld.so before doing a full build. ok deraadt@
2016-05-08Correct return value of OpenBSD::MkTemp in scalar contextAndrew Fresh
From Francesco Toscan < f.toscan AT hotmail DOT it > ok guenther@
2016-05-07remove reference to file that's only built when dbm is presentTed Unangst
2016-05-07... and link into the buildMarc Espie
2016-05-07fix build within perlMarc Espie
2016-05-07same patch as ports treeMarc Espie
2016-05-07Term::ReadKey vendor import, as discussed with millert@ and afresh1@Marc Espie
2016-05-05Add support for named initializers for anonymous structs/unions. This is aMark Kettenis
C11 feature that is starting to get used in places such as Mesa. This implementation takes a different approach to upstream and is therefore not covered by GPLv3. ok stefan@, jsg@
2016-04-26Show octeon in readelf -h output.Visa Hankala
2016-04-26Add Octeon specific sync opcodes.Paul Irofti
This is needed for proper sili(4) functionality on Octeon II machines. OK jasper@, visa@
2016-04-25Stop embedding the build time in the Perl binary.Daniel Dickman
This is a backport of commit 6baa8d with the local addition of: undef PERL_BUILD_DATE ok afresh1@
2016-04-22Add entry for CVE-2015-8853 patch.Todd C. Miller
2016-04-20Apply fix for perl bug 123562 which has been assigned CVE-2015-8853.Todd C. Miller
It can cause certain regular expressions with malformed UTF8 inputs to go into a forever loop and consume 100% CPU. OK afresh1@
2016-04-19In pod2man(1), enable UTF-8 output by default and provide a --no-utf8Ingo Schwarze
command line option to disable it. The new default improves the formatting of Perl manuals using UTF-8 characters (for example perlunicook(1)) with man(1) and mandoc(1) no matter which locale the user has set. Issue discovered by and fix OK by afresh1@. Trying to push this change upstream would make no sense. It's the right thing to do only because we decided to not support any other locales except ASCII and UTF-8. A system trying to provide arbitrary locales simply cannot handle manuals containing UTF-8 characters at build time, so the change would produce wrong results.
2013-03-25import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myselfStuart Henderson
2016-03-30Fix optimization for alphas without the ``precise arithmetic trap'' extensionAndrew Fresh
From Miod Vallat I trust miod deraadt@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-29Fix fallout from the switch to binutils 2.17: the binaries created by 2.17Mark Kettenis
aren't recognized by the in-tree gdb because it's built with the bfd code from 2.15. From miod@.
2016-03-29remove unused variableCharles Longeau
ok otto@
2016-03-28Cleanup duplicate filenames in SRCSTheo de Raadt
2016-03-24Change the default gcc arm arch target from strongarm (armv4) toJonathan Gray
arm9e (armv5te w/o xscale extensions). We no longer support anything less than armv5te and this allows some additional instructions. -mthumb-interwork remains off by default. ok patrick@
2016-03-07regentb
2016-03-07There is a mknod(2) call hidden deep in the guts of cvs(1) thattb
could in principle be called at any point during runtime. Instead of adding "dpath" to the relevant pledges, disable the code path itself. Now instead of hitting a brutal abort(3), you will just get an error message. autoconf handholding + ok jca@
2016-02-28In emit_insxl() force the first operand of the insbl or inswl patternJonathan Gray
into a register. Fixes an ICE when building Mesa with __sync builtins. From Roger Sayle in gcc svn rev 121779 in Feb 2007 before the license change. Tested by miod and matthieu.
2016-02-24Cope with ambiguous environmentsAndrew Fresh
from Ricardo Signes ok deraadt@
2016-02-21In alpha_expand_block_clear(), cope with the offset being negative;Theo de Raadt
this can happen due to the frame layout change introduced in order to support the stack protector. Fix from miod. Bug originally observed by jca and condensed to a 3-liner by myself, basically local [] arrays being initialized with shorter strings.
2016-02-18Disable the stack protector when building libstdc++ on arm. Fixes testJonathan Gray
cases from dcoppa@ where incorrect behaviour was trigged when using std::ifstream and linking libpthread. Further investigation and patch from miod. ok deraadt@
2016-01-20quote ${CC} expansion, from andreas.kahari at icm uu se, ok mpi@Stuart Henderson
2016-01-14fix typommcc
from Jan Schreiber, ok deraadt@
2016-01-11Fix perl CVE-2015-8607 - XS File::Spec::canonpath loses taintAndrew Fresh
https://rt.perl.org/Ticket/Display.html?id=126862
2014-11-17Import perl-5.20.1Andrew Fresh
2015-12-27add missing header needed for pledge(2)Charles Longeau
ok deraadt@
2015-12-26Fix branch delay slots. Found while making test builds of ports.Visa Hankala
2015-12-21Recognise the rdseed instruction introduced with Broadwell.Jonathan Gray
Similar to changes made in FreeBSD. ok kettenis@
2015-12-18Add library-based __sync functions for mips64.Visa Hankala
Help with testing and ok kettenis@
2015-12-17Implement a memory barrier for mips. Basically this makes __sync_synchronize()Mark Kettenis
emit a "sync" instruction. ok visa@
2015-12-10Actually install OpenBSD::Pledge perl moduleAndrew Fresh
2015-12-05Implement the .inst assembler directive for arm.Tobias Ulmer
Required for building gcc 4.9 ok jsg@
2015-12-01Fix __sync_val_compare_and_swap_8() on i386 for code compiled with -fPIC.Mark Kettenis
In some cases GCC would generate a cmpxchg8b instruction with a memory reference that used %ebx. This is wrong (and will almost certainly result in SIGSEGV). This fix uses a new memory constraint "W" to prevent the use of %ebx in this case. This differs from the approach taken by upstream so there are no GPLv3 issues here. Fixes the Mesa i965 dri module on i386. ok jsg@
2015-11-29OpenBSD::Pledge - perl interface to pledge(2)Andrew Fresh
okay espie@ "we should be wary" deraadt@
2015-11-28Back out previous commit. Not emitting DT_RPATH isn't helpful if our ld.soMark Kettenis
doesn't grok DT_RUNPATH yet.
2015-11-26Fix "Bad value" error seen when building Mesa 11.0.6 which uses -Bsymbolic.Mark Kettenis
Inspired by https://sourceware.org/ml/binutils/2010-08/msg00333.html, but expressed differently so there are no GPLv3 issues.
2015-11-26change the name "as" in the NAME section of the as(1) manuals to lowercase;Ingo Schwarze
requested by and OK jmc@
2015-11-22Use yy_size_t instead of int in yy_input(). Makes things work on BE 64-bitMark Kettenis
architectures when yy_size_t becomes size_t instead of unsigned int. ok millert@, tedu@
2015-11-20Regen.Jeremie Courreges-Anglas