summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
2016-08-16When the commit message is empty, don't default to c)ontinueTheo Buehler
(committing without log message), but to a)bort. ok jcs, natano; millert and tj agree
2016-08-14Turning off relro shouldn't insert padding into the middle of the relroPhilip Guenther
section; remove the PAD_GOT0 use that I should have deleted before. This caused ld.so crashes on arm when building binutils. critical debugging observations by kettenis@
2016-08-10auto-dope-slap: mips64 has 16K pages, not 4K. With that fixed, enable RELROPhilip Guenther
Per feedback from kettenis@, Miod, and deraadt@, the padding between text and rodata will be retained for consistency with other archs, to minimize reliance on the R4000 EOP bug workaround, and to enable possible future work. ok deraadt@
2016-08-10Teach readelf and objdump about the PT_OPENBSD_BOOTDATA section value.Philip Guenther
Teach ld to access that and PT_GNU_RELRO in linker scripts. ok deraadt@
2016-08-10Cover your kid's remaining eye and lock up the pets for the great old onesPhilip Guenther
have been disturbed: rework the linker script and then enable RELRO support on all but mips64 (something something padding) and m88k (untested). This extends the RO coverage from just .got and .cdtors to also include .openbsd.randomdata, .jcr, .dynamic, and .data.rel.ro., and moves more segments from the text section to the rodata section. Depends on the previous csu and ld.so work; reinstall those *before* rebuilding ld, or just get a snapshot. clues from kettenis assistance testing and ok deraadt@
2016-08-07Since we have kbind(2), we don't need -znow to use -zrelroPhilip Guenther
ok kettenis@
2016-08-07If an output section is skipped because of a constraint, then skip itPhilip Guenther
when generating the link map output (-M) too ok kettenis@
2016-08-01Make sure variables are initialized before using themStefan Kempf
In elf.c, do not increment `s' before it is initialized. At the time of the increment, `s' is otherwise unused anyway. In elflink.c, initialize sec_contents and l_sec_contents to make sure that the free(sec_contents) and free(l_sec_contents) are called on valid pointers. ok jca@ guenther@
2016-07-30Revert unneeded version bump for perl modulesAndrew Fresh
OK sthen@
2016-07-26Make sure there's space for the PT_OPENBSD_WXNEEDED segment, if requestedPhilip Guenther
problem noted by Juan Francisco Cantero Hurtado (iam (at) juanfra.info) ok deraadt@
2016-07-25Patch perl CVE-2016-1238Andrew Fresh
The problem relates to Perl 5 ("perl") loading modules from the includes directory array ("@INC") in which the last element is the current directory ("."). That means that, when "perl" wants to load a module (during first compilation or during lazy loading of a module in run-time), perl will look for the module in the current directory at the end, since '.' is the last include directory in its array of include directories to seek. The issue is with requiring libraries that are in "." but are not otherwise installed. The major problem with this behavior is that it unexpectedly puts a user at risk whenever they execute any Perl scripts from a directory that is writable by other accounts on the system. For instance, if a user is logged in as root and changes directory into /tmp or an account's home directory, it is possible to now run any shell commands that are written in C, Python or Ruby without fear. The same isn't true for any shell commands that are written in Perl, since a significant proportion of Perl scripts will execute code in the current working directory whenever they are run. For example, if a user on a shared system creates the file /tmp/Pod/Perldoc/Toterm.pm, and then I log in as root, change directory to /tmp, and run "perldoc perlrun", it will execute the code they have placed in the file. ok deraadt@
2013-03-25import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myselfStuart Henderson
2010-09-24Perl 5.12.2 from CPANTodd C. Miller
2002-10-27stock perl 5.8.0 from CPANTodd C. Miller
2016-07-08The XSLoader issue has been assigned CVE-2016-6185Todd C. Miller
2016-07-07Apply http://perl5.git.perl.org/perl.git/commitdiff/08e3451d7Todd C. Miller
This fixes a bug where XSLoader could try to load from a subdir of the cwd when called via eval. OK afresh1@
2010-09-24Perl 5.12.2 from CPANTodd C. Miller
2016-07-04DEBUGLIBS has been broken since the gcc4 switch, so delete it. CFLAGSPhilip Guenther
contains -g by default anyway problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) ok millert@ kettenis@ deraadt@
2016-07-03Update to perl 5.20.3Andrew Fresh
OK bluhm@
2016-05-07Term::ReadKey vendor import, as discussed with millert@ and afresh1@Marc Espie
2014-03-24Import perl-5.18.2Andrew Fresh
OK espie@ sthen@ deraadt@
2013-03-25import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myselfStuart Henderson
2010-09-24Perl 5.12.2 from CPANTodd C. Miller
2009-10-12import perl 5.10.1Todd C. Miller
2008-09-29import perl 5.10.0 from CPANTodd C. Miller
2005-01-15perl 5.8.6 from CPANTodd C. Miller
2003-12-03perl 5.8.2 from CPANTodd C. Miller
2002-10-27stock perl 5.8.0 from CPANTodd C. Miller
2001-05-24stock perl 5.6.1Todd C. Miller
2000-04-06virgin perl 5.6.0Todd C. Miller
2000-04-06virgin perl 5.6.0Todd C. Miller
1999-04-29perl5.005_03Todd C. Miller
1999-04-29perl5.005_03Todd C. Miller
1999-04-29perl5.005_03Todd C. Miller
2016-06-30Update perl Time::HiRes to 1.9739Andrew Fresh
Which provides hires `utime` requested by espie@ OK millert@
2013-03-25import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myselfStuart Henderson
2010-09-24Perl 5.12.2 from CPANTodd C. Miller
2016-06-28Add missing words to help the reader.Jeremie Courreges-Anglas
ok mikeb@
2016-06-28Stop linking perl to libpthreadAndrew Fresh
No longer necessary with TIB work from guenther@ ok sthen@
2016-06-28Stop linking perl to libutil, never necessaryAndrew Fresh
from guenther@ ok sthen@
2016-06-23Use SYMBOL_CALLS_LOCAL() to determine whether we can drop relocations for aMark Kettenis
symbol such that hidden symbols get handled properly. Gets rid of the spurious DT_TEXTREL entries seen with (typically) C++ code. ok deraadt@, guenther@
2016-06-22Don't make the DT_TEXTREL warning fatal. Hopefully this will be temporary,Mark Kettenis
but we first have to make sure that our tree is clean. ok deraadt@
2016-06-21Make creation of text-relocations a fatal error by default, with -znotextPhilip Guenther
to permit it and -ztext to reenable the default of forbidding it. ok kettenis@
2016-06-19At least display the DT_GNU_HASH tag nicelyPhilip Guenther
ok kettenis@
2016-06-19Update docs to match our local time_t changesPhilip Guenther
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