summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
AgeCommit message (Collapse)Author
2015-08-28Make gdb work again on mips64 PIE binaries by making sure that we selectMark Kettenis
a reasonable 64-bit ABI for 64-bit ELF files instead of a 32-bit ABI.
2015-06-01Now that we do not need to build binutils 2.15 (except for gdb), simplify theMiod Vallat
build logic.
2015-04-06Add support for an efi-app-x86_64 target. Needed for UEFI bootloader work.Mark Kettenis
ok mlarkin@
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-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.
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-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-11-20partial_where points into the buffer that begins with buffer_startTodd C. Miller
so we need to use memmove() to handle the overlap. Sourceware PR 11456 OK deraadt@
2014-11-20use ${SHELL} to run scripts in the src treeTheo de Raadt
2014-11-19Bring in a change present in binutils 2.17 to allow sahf/lahfJonathan Gray
instructions on amd64. ok deraadt@ miod@ mlarkin@
2014-11-18Recognize dcbzl, backported from binutils-2.17.Martin Pieuchot
ok miod@, deraadt@
2014-10-20Backport fix for binutils 11867: .quad directive not assembled correctly.Daniel Dickman
Alan Modra (and Alan's employer) graciously permitted use of his patch under GPLv2. ok kettenis@
2014-08-31Backport @file support from binutils-2.17Tobias Ulmer
@file allows reading command line arguments from a file. Gcc now uses this to pass very long arguments lists to ld. ok guenther@ miod@
2004-05-17import binutils 2.14 (excluding testsuites, .info files, and .po files)Dale Rahn
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
1997-05-29Import of binutils-2.8.1 from Cygnus/FSFNiklas Hallqvist
2014-08-20Backport support for i386/amd64 'rdtscp' instruction from binutils-2.17Philip Guenther
Request and testing by krw@
2014-08-14Backport from binutils-2.17:Philip Guenther
2005-08-17 Alan Modra <amodra@bigpond.net.au> * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called without any got section. ok miod@
2014-08-10Format time_t with %lld after casting to long longPhilip Guenther
2014-08-09Use time_t for storing timesPhilip Guenther
2014-08-09Parse times with strtoll() instead of strtol()Philip Guenther
2014-08-09Regenerate to pick up time_t changesPhilip Guenther
2014-08-09Store timestamps in time_tPhilip Guenther
2014-08-09bfd-in2.h is generated from this; merge back a change that was made therePhilip Guenther
2014-08-09Fix readelf --debug-dump=frames-interp output: once a register is givenPhilip Guenther
a column, it needs to included in all rows, even after the register is restored. ok jsg@
2014-08-09Backport from 2.17: mark the _GLOBAL_OFFSET_TABLE_, _DYNAMIC, andPhilip Guenther
_PROCEDURE_LINKAGE_TABLE_ symbols as (at least) hidden.
2014-08-09Backport from binutils-2.17 the correct i386/amd64 register->int assignmentsPhilip Guenther
for CFI. This changes the unwind information generated on amd64.
2014-08-09We don't use the __openbsd_randomdata_{start,end} symbols, but ratherPhilip Guenther
get that info via the PT_OPENBSD_RANDOM segment info, so kill the symbols While here, delete the commented out lines for __DYNAMIC as the question they ask is answered 'no' ok matthew@ back in May
2014-08-09Match format width of symbol visibility to the column headerPhilip Guenther
This corrects the alignment of the columns of hidden symbols
2014-04-06Add the missing addressing modes for the fucomip instruction. Surprisingly,Miod Vallat
fucompi was correct. Unbreaks www/webkit on i386. ok sthen@
2014-03-13Add a few more instruction patterns that are apparently needed by gcc 4.8.Mark Kettenis
Taken from binutils 2.17. ok guenther@
2014-02-09Add support for i386 XSAVE family of instructions: xgetbv, xsetbv, xsave,Philip Guenther
xrstor, and xsaveopt. based on kettenis's original that did xgetbv and xsetbv ok kettenis@
2013-12-30Recognize PT_OPENBSD_RANDOMIZE in linker scripts.Mark Kettenis
ok miod@, matthew@
2013-12-17Backport the code from binutils 2.16 that makes weak undefined referencesMark Kettenis
work on alpha. tested by naddy@, deraadt@
2013-10-19Depending on wether the kernel has been compiled with or withoutAlexander Bluhm
debug information, gdb will either see calltrap or alltraps in the stack trace of a kernel core file. To make the gdb backtrace command work without debug information in the amd64 kernel, add the same special case for alltraps as for calltrap. OK miod@
2013-09-30Make stderr buffered in einfo(). Speeds up display of error messagesTodd C. Miller
on slower platforms. Idea from espie@, OK espie@ deraadt@ guenther@
2013-08-11A few fixes from Tim Mcintosh:Miod Vallat
- provide 88110 syntactic sugar for the control register names - correctly handle -m options - and a minor fix to allow the register prefix to correctly be recognized in front of the condition codes (only needed for SVR4)
2013-07-13Register GDB_OSABI_OPENBSD_ELF as well.Miod Vallat
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