summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
AgeCommit message (Collapse)Author
2010-02-03Add a new option to the mips64 gas, -mfix-loongson2f-btb. This optionMiod Vallat
is intended to be used when compiling kernel code which will run on a Loongson 2E or 2F processor, and inserts an explicit BTB clear operation before every jump through a register (jr or jalr instructions), unless that register is k0 or k1, or we are in .set noat. This is a reliable, although aggressive, workaround for the misbehaviour of the branch prediction engine of many Loongson 2F processors with regard to the Branch Translation Buffer, for which an official errata has yet to be published, and for which the Loongson suggested workaround apparently only works due to pipeline side effects, but requires all the executable kernel code to be located in CKSEG0/CKSEG1. These changes are inspired by a backport of the Loongson binutils 2.19 patch to binutils 2.18; the idea of doing an aggressive BTB clear is mine. This causes no functional change to code compiled without the -mfix-loongson2f-btb option. ``looks reasonable'' kettenis@
2010-02-03Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentMiod Vallat
files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
2009-08-09Do not access s[strlen(s) - 1] without checking first that s is not anMiod Vallat
empty string.
2009-07-24add compat support to gdb so that it can deal with libpthread with andKurt Miller
without the _thread_ctx_offset private symbol. okay kettenis@
2009-07-12remove a semicolon at the end of an if statement, alreadyJonathan Gray
removed in upstream gdb sources. ok kettenis@
2009-06-06Handle our new ELF core dumps.Mark Kettenis
2009-03-09Provide more dependencies for binutils to build with make -j on a.outMiod Vallat
platforms; ok espie@ kettenis@
2009-03-05Teach bfd and gdb about the upcoming ELF core dumps.Mark Kettenis
2009-01-30Turns out we need to look one frame deeper to find the saved return addressMark Kettenis
from a pcb when debugging a kernel. Make sure we provide the matching stack pointer too to avoid duplicating the first frame. Makes "target kvm" much more useful on powerpc.
2008-11-11Enable support for debugging pie programs. Code from Elena Zannoni'sKurt Miller
<ezannoni at redhat dot com> pie branch in gdb cvs, less extraneous parts and with some bug fixes. Debugging w/core files for pie programs isn't working yet since AUXV data isn't included in our core files at the moment. feedback and ok kettenis@
2008-10-02Since we don't install libbfd anymore, don't install bfd.info.Mark Kettenis
requested by jmc@
2008-09-16Terminate printing of auxilliary vector upon reaching the first AT_NULL.Mark Kettenis
2008-09-16Add support for reading ELF auxilliary vectors.Mark Kettenis
ok kurt@
2008-08-22Don't install libbfd and libopcodes and the associated headers.Mark Kettenis
They really are just a way to share common code between gdb and binutils (which in the GNU world are seperate packages). The developers (and I'm one of them) make absolutely no effert to maintain a stable API/ABI. If ports people really need libbfd or libopcodes, they should just package a suitable version. ok weingart@, deraadt@
2008-06-13Fixup ldscripts for i386 when linked with -pie (no change to non-pieKurt Miller
ldscripts). Correct the xd and xdc ldscripts (pie and pie + combreloc) on i386 and add two new variants for pie + combreloc + Z and pie + Z on all arches. ok drahn@
2008-03-13Add __data_start symbol to all ELF archs to consistently mark the beginningKurt Miller
of the writable sections. This is useful for garbage collectors such as boehm-gc to locate these sections in a uniform way. input and okay drahn@, miod@
2008-01-14Fix a race by making maybe-all-bfd depend on all-bfd and maybe-all-opcodesMark Kettenis
depend on all-opcodes. Problem found by espie@. ok espie@
2008-01-14manpages need directories.Marc Espie
okay kettenis@
2007-12-30enforce install -S, avoids races with make -j:Marc Espie
libtool does relink some files during install, and it can happen that it relinks stuff at the exact same time that ld is being reinstalled. okay kettenis@
2007-12-24Teach as(1) about %gl on sparc64.Mark Kettenis
ok miod@
2007-11-28fix race: install-all can only be run *after* all is finished, otherwiseMarc Espie
we may end up installing gdb while it's been rm -f. okay kettenis@
2007-10-03On i386, use PCB_SAVECTX flags to distinguish between state saved by a normalMark Kettenis
context switch, and state saved by savectx(). This makes backtraces from kernel crash dumps work much better.
2007-08-21Treat Ldatafault_internal as having a trap frame.Mark Kettenis
2007-03-26remove old pages; spotted by kettenisJason McIntyre
ok deraadt
2007-03-26sort the MAN entry; ok deraadtJason McIntyre
2007-03-25pick up the newer rev man pages; noticed by ingo schwarze, first rev byTheo de Raadt
jmc
2007-03-19build two more man pages; Ingo SchwarzeTheo de Raadt
2007-01-07Make unwinding through kernel trap frames work on sparc64.Mark Kettenis
2006-11-10Convert to use inf-ptrace.c.Mark Kettenis
2006-11-10Handle OpenBSD as well.Mark Kettenis
2006-11-09Initial stab at OpenBSD/sh support.Mark Kettenis
2006-11-09grok sh-*-openbsd*Theo de Raadt
2006-10-24fix a crash with --statistics. closing file in the wrong place.Ted Unangst
from dasn. ok deraadt
2006-10-08Define superH obsd-specific emulations for ld, and use it by default.Miod Vallat
2006-10-06Early bits for a 32-bit SuperH toolchain, currently for little-endianMiod Vallat
systems only; more work is necessary in ld land.
2006-09-25Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber. ok kettenis@
2006-07-23Do not build & install gdbtui.Mark Kettenis
2006-07-19``target kvm'' support for alpha; ok kettenis@Miod Vallat
2006-07-13fix info target, make sure as.info gets built during built, not install.Marc Espie
2006-07-12makeinfo --no-split, simplifies sets immensely.Marc Espie
Approved deraadt@, kettenis@
2006-05-30Avoid stack oflow on bad data. PR 5132. Backport from binutils mainOtto Moerbeek
repo rev 1.26.22.1; ok miod@
2006-05-18add some more xcrypt & co opcodesHans-Joerg Hoexer
ok deraadt
2006-05-16Bring over upstream changes that fix backtraces through signal handlers andMark Kettenis
make us use PT_{GET|SET}FPREGS.
2006-05-04Allow USING_NEW_BINUTILS to be overriden by whatever invokes make here.Miod Vallat
2006-03-26Fix memset(.., ..., 0) bugs that are already fixed upstream.Mark Kettenis
From Alexey Dobriyan.
2006-03-22Enable efi support on OpenBSD/i386.Mark Kettenis
ok miod@
2006-02-26Handle soft interrupt frames too.Mark Kettenis
2005-12-28Skip ld.so resolver on sparc too.Mark Kettenis
2005-12-28Skip ld.so resolver on sparc64. This makes stepping into functions in sharedMark Kettenis
libraries work.
2005-12-28Support for skipping ld.so resolver.Mark Kettenis