summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
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-07-03Link static pie binaries against rcrt0.oMiod Vallat
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-18Fix stack shuffle such that sj includes si and the last element actuallyMartynas Venckus
gets a chance to be reordered.
2015-06-16Do not provide extra _fdata and __data_start symbols; nothing in the non-mips32Miod Vallat
world uses them.
2015-06-15Don't error out when an existing typedef is redefined with the same definition;Miod Vallat
this is allowed in C11 and 3rd-party software is relying upon this to be accepted by the compiler. Nevertheless warn about this if -pedantic. ok ajacoutot@ deraadt@ millert@
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-11Fix CVE-2012-3509, an integer overflow in libiberty, leading toAlexander Bluhm
heap-buffer overflow. From Sebastian Trahm; OK deraadt@
2003-11-24And the includes are taken from GCC 2.95.pre3 test3Marc Espie
2015-06-03Actually commit the bits that make the compiler emit visibility informationMark Kettenis
for (undefined) references with non-default visibility on mips64.
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-18Make the compiler emit visibility information for (undefined) references withMark Kettenis
non-default visibility. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218 for details. This version comes from FreeBSD and has been made available under the GPLv2 license. It has some additional bits thrown in from me to make it work in mips64 too, and another bit to stop the C++ compiler to randomly emit visibility information for C++ symbols that in the end aren't referenced. ok guenther@
2015-05-14Stop including CFLAGS in CXXFLAGS it creates problems when mixingJonathan Gray
C and C++ when wanting to pass flags to only the C compiler. Tested in a ports bulk build by naddy and the handful of problems found were fixed by naddy, jca and pascal.
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-19Prefer strdup() to malloc() + strcpy() and ftello() to ftell()Miod Vallat
ok deraadt@ guenther@ millert@
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-27Link -static -pie executables with rcrt0.o instead of crt0.o such that theyMark Kettenis
self-relocate.
2014-12-27Link -static -pie executables with rcrt0.o instead of crt0.o such that theyMark Kettenis
self-relocate. ok kurt@
2014-12-27Change the default entry point from _start to __start.Mark Kettenis
ok kurt@, guenther@
2014-12-26Link -static -pie executables on powerpc with rcrt0.o instead of crt0.oKurt Miller
such that they self-relocate. okay kettenis@
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@