summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
AgeCommit message (Collapse)Author
2013-07-05ELF_TOOLCHAIN bye bye.Miod Vallat
2013-07-05VAX ELF toolchain, using `%' as the register prefix. Heavily based uponMiod Vallat
NetBSD.
2013-05-17Don't reject '++' and '--' in expressions. Some versions of gcc emit these.Mark Kettenis
Fix found upstream. ok miod@, martynas@
2013-05-09Allow gdb on m88k to fetch symbols from shared libraries when debuggingMiod Vallat
dynamically linked binaries. Borrowed from m68k with trivial changes. ok kettenis@
2013-04-28Revert the previous commit. It breaks the xenocara build on macppc and theBrian Callahan
issue it fixes will be fixed anyway once the move to binutils-2.17 happens. xenocara breakage discovered by matthieu@
2013-04-26Fix linker errors when using llvm/clang.Brian Callahan
See http://lists.gnu.org/archive/html/bug-binutils/2004-07/msg00000.html for a description of the error. Fix taken from the binutils 2.16 timeframe (GPLv2) "Then go for it." miod@
2013-04-19Use time_t instead of long for archive timestamps, and print them as long long;Miod Vallat
prodding deraadt@
2004-05-17import binutils 2.14 (excluding testsuites, .info files, and .po files)Dale Rahn
2013-04-17Define and fill machine-specific DT_88K_PLT{START,END} _DYNAMIC tags whenMiod Vallat
creating objects with a .plt (either shared libraries or dynamic binaries). These tags contain the start and end address of the plt, relative to the beginning of the object. This will (eventually) allow ld.so to find the area spanned by the plt more easily, and also matches what SVR4/m88k does.
2013-04-17Crank MAXPAGESIZE from 4KB to 64KB to match what SVR4/m88k and DG/UX do.Miod Vallat
2013-03-10Let platforms configured to use binutils 2.17 still recurse into the binutilsMiod Vallat
2.15 directory, but only to build gdb. ok deraadt@ espie@
2013-02-13Add support for .loc directive options basic_block, prologue_end, and ↵Brad Smith
epilogue_begin. Backported from binutils 2.17. ok miod@
2000-09-12Import binutils-2.10Marc Espie
- only the binutils package (no gdb here) - don't import libiberty and texinfo, they are elsewhere - remove all .info* generated files
2013-02-09Add CFI support for MIPS.Brad Smith
Backported from binutils 2.17. ok miod@
2013-02-06Make guess_is_rela() and dump_relocations() m88k-aware. Gets us rid of arcaneMiod Vallat
warnings caused by a maze of twisty little macros in the process, which appeared when m88k ELF support was added to the toolchain.
2013-02-05Disable PIE-by-default if -static (or one of its aliases) is passed on theMark Kettenis
command line. While technically -static only controls whether we link against static libraries, people expect that doing so produces a fully static binary. tested by sthen@ ok pascal@, miod@
2013-02-03Stop as(1) from optimizing away R_X86_64_GOTPCREL relocations.Mark Kettenis
ok miod@
2013-02-02ELF toolchain for m68k, following the SysV/m68k ABI (32-bit types aligned onMiod Vallat
32-bit boundaries, function return values being in %a0 instead of %d0 if they are declared as pointers, and in fp registers if they are floating point types). Compiler configuration bits (including a few m68k PIC code generation fixes) borrowed from NetBSD.
2013-01-31Enable shared libraries on m88k platforms.Miod Vallat
And there was much rejoicing.
2013-01-30Revert link-time resolution of R_88K_GOT_16[HL] modified in 1.5, but keep theMiod Vallat
error test. The logic was correct, I was tricked by bogus compiler generated assembly.
2013-01-28Correctly compute the relocation value of GOT_16[HL] relocations when they canMiod Vallat
be resolved at link time, such as when linking a binary from objects which have been compiled PIC (one such case being perl's miniperl). While there, borrow the check and error message for GOT_16[HL] with nonzero addend (which can only happen with badly crafted .s files and do not behave like one may naively think they do) from elf32-ppc.
2013-01-20Generate linker scripts for shared libraries. Force padding sections aroundMiod Vallat
plt, because it may need to be written to during initial relocation.
2013-01-20Rewrite. This is heavily based upon elf32-m68k.c, with a few things borrowedMiod Vallat
from elf32-ppc.c. The plt entry setup matches what can be found in Motorola's SVR4/m88k binaries.
2013-01-20Implement tc_fix_adjustable() on ELF, and use it to prevent #got_relMiod Vallat
relocations to local symbols to be rewritten as relocations to the beginning of the section they are in, plus an addend, as addend can't work for these relocations, the way the got is set up. Inspired by tc-ppc.
2013-01-20Backport two fixes for amd64 from binutils 2.16.Brad Smith
- For DefaultSize instructions, don't guess a 'q' suffix if the instruction doesn't support it. - Corrections for x86_64 assembly. ok miod@
2013-01-15When configured for ELF object format output, recognize #abdiff, #got_rel andMiod Vallat
#plt symbol modifiers, and produce the appropriate relocation types. This allows as(1) to correctly assemble PIC code.
2013-01-07Teach as(1) how to handle mips symbolic register names.bcallah
Backported from a commit made after binutils 2.17 but before the GPLv3 switch. ok miod@
2013-01-05Replace the list of platforms enabled (or not) to build the whole binutilsMiod Vallat
with a test of ELF_TOOLCHAIN provided by bsd.own.mk. No functional change.
2013-01-05Switch m88k ports to ELF.Miod Vallat
2013-01-02Oops, commited this by accident when adding the m88k ELF toolchain bits.Miod Vallat
2013-01-01m88k ELF toolchain, supporting static binaries only so far.Miod Vallat
Assembler supports a register prefix of `#' when configured for SVR4, and `%' when configured for OpenBSD. Pseudo-ops do not need a leading dot, except when configured for OpenBSD, allowing the `set' instruction to be recognized correctly. Based upon various unfinished or unreliable works, including smurph@'s early work in 2003, my own attempts in 2004 and 2005, and Michael Kato's binutils 2.15 diff from 2005. Support for register prefixes, as well as fixing an evil off-by-one in resolving 16-bit pc-relative relocations in ld (which would only affect kernel .S files branching to global symbols), came as part of the 2012 work. Not enabled yet (needs Makefile.bsd-wrapper, bfd/config.bfd and gdb/configure.tgt updates to completely enable) so as not to disturb the existing a.out toolchain builds; will hopefully be enabled very soon.
2012-12-31Correctly disassemble {ld,st}.*.usr opcodes.Miod Vallat
2004-05-17import binutils 2.14 (excluding testsuites, .info files, and .po files)Dale Rahn
2012-11-05Backport a powerpc --relax fix present in binutils 2.17.Landry Breuil
This allows mozilla trunk to finally link again on ppc (with --relax), otherwise it fails badly with relocations overflow. From http://sourceware.org/ml/binutils/2005-01/msg00115.html ok kettenis@, no objection miod@
2012-10-18Add support for stac/clac instructions to manipulate the flagJonathan Gray
that controls the behaviour of Intel's Supervisor Mode Access Prevention (SMAP) feature. 'looks correct' miod@ ok deraadt@
2012-10-02fix weird depend on -liberty, okay miod@.Marc Espie
maybe not the simplest fix, but I'd rather it gets fixed now, while we discuss details :)
2012-09-07disassemble the rdrand instruction on i386/amd64Christian Weisgerber
2012-09-03Teach as(1) about rdrand on i386/amd64.Mark Kettenis
ok jsg@
2012-08-31Add a DT_DEBUG tag to PIEs as well.Mark Kettenis
ok pascal@
2012-08-29Add DWARF2 CFI unwinder for hppa.Mark Kettenis
2012-08-29Adjust for changes to "struct reg".Mark Kettenis
2012-08-28Add support for PIE-by-default in both ld and gcc. This is a completelyPascal Stumpf
different approach than the one taken in kurt@'s original diff, but deemed better after discussion and diff exchange with kettenis@ and matthew@. Lots of feedback by kettenis@ and matthew@, prodding and encouragement by deraadt@. ok kettenis@ matthew@
2012-08-28Work around -Wbounded warning by using sizeof(x_fname), not FILNMLEN. ThePascal Stumpf
latter gets defined incorrectly (too small) because of include ordering issues. Same fix as for binutils-2.17. Noticed by deraadt@. ok matthew@
2012-08-20Add support for .openbsd.randomdata sections and PT_OPENBSD_RANDOMIZEMatthew Dempsky
segments to the kernel, ld (2.15), and ld.so. Tested on alpha, amd64, i386, macppc, and sparc64 (thanks naddy, mpi, and okan!). Idea discussed for some time; committing now for further testing. ok deraadt
2012-07-12On i386 gdb failed to display the stack trace of a kernel core dumpAlexander Bluhm
correctly. The gdb backtrace command did not get over the trap stack frame. There is a pushl %esp in alltraps() that was not accounted for. Depending on wheter the analyzed kernel has debugging symbols or not, the symbol is calltrap or alltraps. Both get special treatment now. ok miod@ kettenis@
2012-05-04Enable multi-threaded debugging on hppa.Mark Kettenis
2012-04-18Enable multi-threaded debugging on powerpc.Mark Kettenis
2012-04-17Enable multi-threaded debugging on sparc64.Mark Kettenis
2012-04-13Enable multi-threaded debugging on amd64.Mark Kettenis
2012-04-13Enable multi-threaded debugging on i386.Mark Kettenis