summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
AgeCommit message (Collapse)Author
2015-08-25Unbreak binutils on sparc64, hppa (and probably some others).Theo de Raadt
Jumbo merges are NOT WELCOME. They have to be seperated out and tested.
2015-08-24add missing includes for free, exit, errx and strchrJonathan Gray
2015-08-23Introduce -Bsymbolic-functions and related flags. Taken from twoBrian Callahan
post-binutils 2.17 but pre-GPLv3 commits. miod@ says now is the time to get this in.
2015-08-23Define HAVE_AS_REL16, as binutils 2.17 supports the R_PPC_REL16 reloc.Mark Kettenis
This makes the -msecure-plt option work, which is necessary to generate Secure-PLT ABI code.
2015-08-23Enable missing code to fully enable the Secure-PLT ABI and clean up theMark Kettenis
remaining commented out variable settings. We'll continue to use the same layout for both BSS-PLT and Secure-PLT since supporting the more relro friendly layout that Linux uses isn't compatible with our way of making the PLT and GOT read-only.
2015-08-03Prevent a NULL dereference when a plt entry is not found.Martin Pieuchot
This smells like a workaround but it allows audio/mpd to build and the resulting binary runs well enough to make landry@ happy. In any case, having a broken binary is not much worse than not having a binary because ld(1) crashed. ok miod@, deraadt@
2015-07-17Correctly consume mandatory 0x66 prefix when disassemblingMiod Vallat
aes{dec{,last},enc{,last},imc} instructions (regression in 2.17). Correctly disassemble aeskeygenassist. Before (binutils 2.15): 0: 66 0f 38 db c8 aesimc %xmm0,%xmm1 5: 66 0f 3a 44 da 04 pclmulqdq $0x4,%xmm2,%xmm3 b: 66 0f 3a 44 ec 10 pclmullqhqdq %xmm4,%xmm5 11: 66 data16 12: 0f .byte 0xf 13: 3a df cmp %bh,%bl 15: fe 08 decb (%rax) Currently (binutils 2.17): 0: 66 data16 1: 0f 38 db aesimc %xmm1,%xmm1 4: c8 66 0f 3a enterq $0xf66,$0x3a 8: 44 da 04 66 rexX fiaddl (%rsi,2) c: 0f 3a 44 ec 10 pclmullqhqdq %xmm4,%xmm5 11: 66 data16 12: 0f .byte 0xf 13: 3a df cmp %bh,%bl 15: fe 08 decb (%rax) With these changes: 0: 66 0f 38 db c8 aesimc %xmm0,%xmm1 5: 66 0f 3a 44 da 04 pclmulqdq $0x4,%xmm2,%xmm3 b: 66 0f 3a 44 ec 10 pclmullqhqdq %xmm4,%xmm5 11: 66 0f 3a df fe 08 aeskeygenassist $0x8,%xmm6,%xmm7
2015-07-16The expected behavior of Perl srand(0) is a deterministic pseudoAlexander Bluhm
random stream. Only srand() should give real random values. Make our pimped Perl more compatible with the rest of the world. OK afresh1@ millert@
2015-06-26Avoid an assertion failure in elf32_arm_size_dynamic_sections() whenMiod Vallat
building a static binary out of PIE objects; similar to the logic found on other platforms, for some reason arm was lacking this fix.
2015-06-16Do not provide extra _fdata and __data_start symbols; nothing in the non-mips32Miod Vallat
world uses them.
2015-06-13Add more encodings of options for the armv7 barrier instructions andJonathan Gray
allow non "sy"/0xf options for dmb. This omits the *ld options available in armv8 running in a32 mode. Similiar changes made in freebsd. ok miod@
2015-06-01Revert 1.2, which used to be necessary during the early ld 2.17 work, butMiod Vallat
hasn't been required for a while.
2015-06-01Enable secureplt by default on alpha. The old plt flavour can still beMiod Vallat
obtained by passing --no-secureplt to ld(1), or -Wl,--no-secureplt to cc(1) when linking.
2015-06-01Define HAVE_AS_EXPLICIT_RELOCS and HAVE_AS_JSRDIRECT_RELOCS. These symbols areMiod Vallat
only used by the alpha backend and allow it to produce more precise relocation information, but need a recent as(1) for this to work. This will be necessary to enable secureplt by default.
2015-06-01Now that we do not need to build binutils 2.15 (except for gdb), simplify theMiod Vallat
build logic.
2015-05-26Improve diffability against m68k.Miod Vallat
2015-05-25Port the ELF m88k work to binutils 2.17. Good enough to build a bootingMiod Vallat
kernel, and hopefully userland as well.
2015-05-25vax ELF bits for binutils 2.17.Miod Vallat
2015-05-25Change ENTRY to __start to match binutils 2.15, needed for static PIEMiod Vallat
2015-05-25Teach binutils the {rd,wr}{fs,gs}base instructions.Philip Guenther
Flag bits worked out with kettenis@ ok mlarkin@
2015-05-21Re-remove extra perl utils, patch lost in 5.20.2 updateAndrew Fresh
pointed out by miod@
2015-05-19Keep visibility information for references to discarded sections.Mark Kettenis
2015-05-12Revert rev 1.3. While that change appears to make the behaviour similar toMark Kettenis
binutils 2.15, it introduces bogus failures when inter-library dependencies are present. With the binutils 2.17 behaviour restored, --as-needed will cause linker failures when necessary inter-library dependencies are not present. This is actually a good thing as binutils 2.15 will silently produce executables that will fail at runtime in those cases. ok miod@
2015-05-10Add _bfd_ar_spacepadll() for formatting long long values in archive headers.Philip Guenther
ok kettenis@
2015-04-30Unset SEPARATE_GOTPLT. We don't want a seperate .got.plt section on OpenBSD,Mark Kettenis
at least for now, as it would result in a partially writable GOT. Our ld.so(1) has the smarts to properly write-protect the single .got, so we don't need this. ok guenther@
2015-04-27Adjust ld semantics to make static PIE the default. Forgotten by pascal@.Mark Kettenis
Original commit message: Change gcc and ld semantics to make static PIE the default when invoking 'cc -static'. To explicitly request the legacy behaviour, use -nopie. For the few port affected by this, bumps will follow shortly. looks good to kettenis@, ok kurt@
2015-04-25Apply pre-built unicore patch, remove excess files - perl-5.20.2Andrew Fresh
2015-04-25Apply local patches, remove excess files - perl-5.20.2Andrew Fresh
2015-04-25Fix merge issues, remove excess files - match perl-5.20.2 distAndrew Fresh
2015-04-25Import perl-5.20.2Andrew Fresh
2015-04-07Revert: breaks h2ph handling of symlinks like endian.h --> sys/endian.hPhilip Guenther
Simply adding -type l mean the problem it was trying to solve is *not* solved, so just go back to the original set. Sorry, but random files types in /usr/include are your problem, not the build system's...
2015-04-06Add support for an efi-app-x86_64 target. Needed for UEFI bootloader work.Mark Kettenis
ok mlarkin@
2015-04-06h2ph only handles actual _files_, so request just them from 'find'. Crazy, eh?Philip Guenther
Based on diff from Gregory Edigarov (edigarov (at) qarea.com) ok afresh1@
2015-04-02Change gcc and ld semantics to make static PIE the default when invokingPascal Stumpf
'cc -static'. To explicitly request the legacy behaviour, use -nopie. For the few port affected by this, bumps will follow shortly. looks good to kettenis@, ok kurt@
2015-02-05Add missing check for stdint.h, needed for SIZE_MAX in xsize.h.Todd C. Miller
OK deraadt@
2015-01-27Stop linking to perlthanks, lost patch in the 5.20 updateAndrew Fresh
Thanks to didickman AT gmail for noticing.
2015-01-13Generate a PT_PHDR entry for static PIE binaries. Modern GDB needs this toMark Kettenis
do some sanity checking while it determines the load base. ok kurt@
2015-01-12Make putting a breakpoint on the first instruction of a program work.Mark Kettenis
Previously a breakpoint at the first instruction would force us to single-step. Depending on the single-step implementation this would make us step over the breakpoint and continue in many cases. Fix this by passing the address of the current instruction pointer which will skip the code that checks if we need to step over a breakpoint. A similar fix has been made upstream many moons ago. Fixes debugging static PIE on sparc64 and probably others that use some sort of software single-stepping.
2015-01-03Fix race condition in perl's ExtUtils::MakeMakerAndrew Fresh
Many thanks to Nathanael Rensen <nathanael at polymorpheus dot com> for tracking it down and supplying the patch. Has been reported upstream and the fix incorporated into a larger change https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/issues/192
2014-12-30Make perl use our (arc4random backed) drand48 when unseededAndrew Fresh
uses srand48_deterministic if a seed is provided. seems fine millert@
2014-12-30self-relocating crt0 bits for sh, and enable static pie by default. With someMiod Vallat
archdep.h help from kettenis@
2014-12-27Change the default entry point from _start to __start.Mark Kettenis
ok kurt@, guenther@
2014-12-25Don't generate PLT entries for symbols defined in a regular object forMark Kettenis
-static -pie. On sparc64, avoid generating GLOB_DAT relocs and convert certain absolute relocs into RELATIVE relocs when we can for -static -pie. With this change we don't need -Wl,-Bsymbolic anymore when building -static -pie binaries. ok millert@, kurt@
2014-12-25Don't generate PLT entries for symbols defined in a regular object forMark Kettenis
-static -pie. On sparc64, avoid generating GLOB_DAT relocs and convert certain absolute relocs into RELATIVE relocs when we can for -static -pie. With this change we don't need -Wl,-Bsymbolic anymore when building -static -pie binaries. ok millert@, kurt@
2014-12-24Use an extension that installperl skips for the Config_heavy modificationsAndrew Fresh
2014-12-24Avoid /usr/local while building perl, but allow it for portsAndrew Fresh
commit it deraadt@
2014-12-22Teach ld(1) not to add a PT_INTERP entry for -static -pie.Mark Kettenis
ok kurt@
2014-12-22Teach ld(1) not to add a PT_INTERP entry for -static -pie.Mark Kettenis
ok kurt@
2002-05-13Import binutils-2.11.2Federico G. Schwindt
- only the binutils package (no gdb here) - don't import libiberty and texinfo, they are elsewhere - remove all .info* generated files
2014-12-07Don't make manpages from anything in Pod-Perldoc/corpusAndrew Fresh
OK ingo@