summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly enable -fcommon, rather than untangle common symbols.mortimer2021-01-281-1/+2
| | | | ok deraadt@
* Fix a bug that GDB could not show the symbols of the core dump it wasasou2020-12-021-1/+35
| | | | | | generated with the static linked ELF file. ok mpi@
* Add minimal support for OpenBSD/powerpc64.kettenis2020-09-307-0/+748
|
* Use consistent types in comparison to fix build with clang 10.visa2020-07-311-1/+1
| | | | | | | | Instead of just checking if *namep is NULL, also check if the string pointed by *namep is empty. This is probably the original intent of the code. OK kettenis@ jsg@ deraadt@
* change bfd amd64 ELF_MAXPAGESIZE from 1M to 4Kjsg2020-07-231-1/+1
| | | | | | | | | | | | | An amd64 clang 10 binary built with lld 10 would abort after calling execve(2) if it had been stripped. PT_LOAD segment aligment being changed by strip was the cause. Changing to 4K matches lld and results in a working binary after strip. Introducing ELF_MINPAGESIZE of 4K (which is ELF_MAXPAGESIZE if not defined by the arch) would have also worked but we don't support large pages in userland. ok kettenis@
* avoid -Wpointer-compare warning which broke build with clang 10jsg2020-06-181-1/+1
|
* Teach gdb that the trap frame should be used for alltraps_kern_meltdown().yasuoka2019-12-231-0/+1
| | | | ok bluhm kettenis
* a few depend:-related thingies that were still in.espie2019-12-211-4/+1
| | | | okay millert@, tb@
* not renaming those temp files should be fatalespie2019-12-171-1/+5
| | | | | | | this got fixed in recent binutils, but it's GPLv3. So do the same thing in a slightly different way okay guenther@
* Fix backtrace across signals on amd64kurt2019-10-211-13/+23
| | | | okay guenther@ kettenis@
* Remove -S from install commandskn2019-02-241-2/+2
| | | | | | | | As of usr.bin/xinstall/install.c revision 1.68, -S is a no-op and install(1) will always create files safely, thus clean the option usage from the tree. Diff from Lauri Tirkkonen <lotheac at iki dot fi>, thanks.
* Fix gdb can handle prologues which has the retguard and teach gdb thatyasuoka2019-02-012-9/+40
| | | | | | | | alltraps_kern() is a trap function. Also initialize the struct amd64_frame_cache in amd64_skip_prologue() which was missing. Original diff from IIJ. ok mpi mortimer kettenis deraadt
* Add PN_XNUM support to libbfd so objdump and gdb can handle coreguenther2018-12-114-2/+48
| | | | | | dumps with many many segments. ok yasuoka@
* Size static array correctly for the numerically highest index used tonaddy2018-10-241-1/+1
| | | | access it. ok deraadt@ kettenis@
* Pass CC/CFLAGS/LDFLAGS to the configure script. ok millert@naddy2018-09-141-3/+5
|
* Drop the ignored selectors (tf_[defg]s) from the trap and interrupt frames.guenther2018-07-101-10/+6
| | | | ok mlarkin@ deraadt@ mpi@ kettenis@
* Make intrframe the exact same size as trapframe: instead of pushingguenther2018-07-031-11/+1
| | | | | | | | | | the PPL on top, store it where trapframe puts the trap number. This makes interrupt handlers get called with the correct stack alignment. Also, document the use of if_err to differentiate resumed/recursed interrupts from 'real' ones. tested in snaps ok deraadt@
* The trapframe layout is no longer exactly the same as the sigcontextguenther2018-04-301-9/+32
| | | | | | layout. Simplify how we identify which frames have trapframes while here. ok kettenis@
* Revise 'struct fpreg' such that it can actually represent the full VFPv3-D32kettenis2018-01-231-8/+8
| | | | | | state. ok patrick@
* Add improvements to the DWARF frame unwinder to support xorguard.kettenis2017-08-146-0/+66
| | | | ok mortimer@
* make warns about POST_INSTALL being empty.espie2017-07-281-0/+2
| | | | | | | | other similar makefiles define POST_INSTALL = : so even the GNU guys are aware this might be non standard. fix it. okay krw@ kettenis@
* destroy lint remnants.espie2017-06-121-4/+1
| | | | okay millert@ deraadt@
* Sync symbol lists for trap/interrupt frame detection with what ddb(4) usesguenther2017-04-092-5/+22
| | | | ok deraadt@
* Use ${INSTALL} instead of install, like in all the other Makefile's.natano2016-09-181-3/+3
| | | | ok guenther
* Install programs with ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}guenther2016-09-111-2/+3
| | | | | | | Install info and data files with -o ${DOCOWN} -g ${DOCGRP} -m ${NONBINMODE} Prompted by natano@ Tweaks and oks deraadt@ natano@
* Add missing words to help the reader.jca2016-06-281-2/+2
| | | | ok mikeb@
* Fix fallout from the switch to binutils 2.17: the binaries created by 2.17kettenis2016-03-291-0/+1
| | | | | | | aren't recognized by the in-tree gdb because it's built with the bfd code from 2.15. From miod@.
* change the name "as" in the NAME section of the as(1) manuals to lowercase;schwarze2015-11-261-1/+2
| | | | requested by and OK jmc@
* Same as in binutils-2.17, only restore regular permission bits.jca2015-11-151-14/+2
| | | | But don't restore ownership/setuid/etc bits. ok deraadt@
* update NAME;jmc2015-11-111-1/+1
| | | | kettenis ok'd me poking around in here; ingo ok'd the diff
* Start moving some vmm things into the tree. First up is binutils so we willmlarkin2015-11-093-1/+51
| | | | | | be able to use the virtualization instructions. ok'ed a long time ago, I forgot who, but deraadt@ ok'ed it again anyway.
* Make gdb work again on mips64 PIE binaries by making sure that we selectkettenis2015-08-281-1/+7
| | | | a reasonable 64-bit ABI for 64-bit ELF files instead of a 32-bit ABI.
* Now that we do not need to build binutils 2.15 (except for gdb), simplify themiod2015-06-011-34/+1
| | | | build logic.
* Add support for an efi-app-x86_64 target. Needed for UEFI bootloader work.kettenis2015-04-0613-18/+1025
| | | | ok mlarkin@
* Change gcc and ld semantics to make static PIE the default when invokingpascal2015-04-021-2/+0
| | | | | | | | '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@
* Generate a PT_PHDR entry for static PIE binaries. Modern GDB needs this tokettenis2015-01-133-8/+26
| | | | | | do some sanity checking while it determines the load base. ok kurt@
* Make putting a breakpoint on the first instruction of a program work.kettenis2015-01-121-1/+1
| | | | | | | | | | 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.
* self-relocating crt0 bits for sh, and enable static pie by default. With somemiod2014-12-301-1/+1
| | | | archdep.h help from kettenis@
* Change the default entry point from _start to __start.kettenis2014-12-271-0/+1
| | | | ok kurt@, guenther@
* Don't generate PLT entries for symbols defined in a regular object forkettenis2014-12-252-3/+4
| | | | | | | | | | | | -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@
* Teach ld(1) not to add a PT_INTERP entry for -static -pie.kettenis2014-12-2216-16/+18
| | | | ok kurt@
* partial_where points into the buffer that begins with buffer_startmillert2014-11-201-1/+1
| | | | | so we need to use memmove() to handle the overlap. Sourceware PR 11456 OK deraadt@
* use ${SHELL} to run scripts in the src treederaadt2014-11-201-2/+2
|
* Bring in a change present in binutils 2.17 to allow sahf/lahfjsg2014-11-191-2/+2
| | | | | | instructions on amd64. ok deraadt@ miod@ mlarkin@
* Recognize dcbzl, backported from binutils-2.17.mpi2014-11-181-0/+4
| | | | ok miod@, deraadt@
* Backport fix for binutils 11867: .quad directive not assembled correctly.daniel2014-10-202-10/+34
| | | | | | | Alan Modra (and Alan's employer) graciously permitted use of his patch under GPLv2. ok kettenis@
* Backport @file support from binutils-2.17tobiasu2014-08-3123-3/+45
| | | | | | | @file allows reading command line arguments from a file. Gcc now uses this to pass very long arguments lists to ld. ok guenther@ miod@
* Backport support for i386/amd64 'rdtscp' instruction from binutils-2.17guenther2014-08-202-8/+16
| | | | Request and testing by krw@
* Backport from binutils-2.17:guenther2014-08-141-4/+3
| | | | | | | | 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@
* Format time_t with %lld after casting to long longguenther2014-08-102-3/+3
|