summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
AgeCommit message (Collapse)Author
2024-09-20gdb: fix path to exTheo Buehler
from Nir Lichtman ok pascal sthen (they okayed the ports version which I take to be an agreement with this).
2004-05-21GDB 6.1 (excluding .info files)Mark Kettenis
2024-01-31Swap the r10 and rcx registers in the amd64 trapframe so that thePhilip Guenther
first six entries are in the same order as syscall arguments, such that syscall() can just use the trapframe as the argument vector for mi_syscall() and not need to reorder into another buffer on the stack. This doesn't affect coredump layout or ptrace(2), but does affect kernel crash dumps. Possibility noted during miod@'s cleanup of the MD syscall() implementations ok mlarkin@ kurt@
2023-09-06Use casts to force two function pointers assignements and fix build with ↵Jeremie Courreges-Anglas
clang-16 "looks fine to me" robert@, ok kettenis@
2023-09-06Use -std=gnu89 to fix the build with clang-16Jeremie Courreges-Anglas
This is ancient GNU software that tends to break whenever clang adds more warnings about deprecated features in new languages versions or turns them into errors. Using -std=gnu89 (the defaults for base-gcc) for those packages means we'll probably avoid most new warnings, errors, and possible miscompilations when updating clang. ok robert@
2004-05-21GDB 6.1 (excluding .info files)Mark Kettenis
2022-12-27gdb: fix build with clang 15Jeremie Courreges-Anglas
The code wants a pointer to a "CORE_ADDR", thus the "(CORE_ADDR)" cast is erroneous. Just pass NULL. ok jsg@
2022-12-08Fix DT_MIPS_RLD_MAP_RELVisa Hankala
Use proper tag-relative values for DT_MIPS_RLD_MAP_REL tags. This causes an ABI break on mips64. Your system must have latest ld.so before applying this commit. OK deraadt@ kettenis@
2022-10-28Add DT_MIPS_RLD_MAP_REL support to the in-tree GDB.Mark Kettenis
ok deraadt@
2022-10-07In the linkers, collect objects in section "openbsd.mutable" and placeTheo de Raadt
them into a page-aligned region in the bss, with the right markers for kernel/ld.so to identify the region and skip making it immutable. While here, fix readelf/objdump versions to show all of this. ok miod kettenis
2021-12-22Avoid GNU printf extension to use 'L' length modifier with a intJonathan Gray
conversion specifier to mean 'll'. Found by an ok deraadt@
2021-05-05Fix backtrace command with kernel core.asou
ok mpi@
2021-01-28Explicitly enable -fcommon, rather than untangle common symbols.mortimer
ok deraadt@
2020-12-02Fix a bug that GDB could not show the symbols of the core dump it wasasou
generated with the static linked ELF file. ok mpi@
2020-09-30Add minimal support for OpenBSD/powerpc64.Mark Kettenis
2020-07-31Use consistent types in comparison to fix build with clang 10.Visa Hankala
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@
2020-07-23change bfd amd64 ELF_MAXPAGESIZE from 1M to 4KJonathan Gray
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@
2020-06-18avoid -Wpointer-compare warning which broke build with clang 10Jonathan Gray
2019-12-23Teach gdb that the trap frame should be used for alltraps_kern_meltdown().YASUOKA Masahiko
ok bluhm kettenis
2019-12-21a few depend:-related thingies that were still in.Marc Espie
okay millert@, tb@
2019-12-17not renaming those temp files should be fatalMarc Espie
this got fixed in recent binutils, but it's GPLv3. So do the same thing in a slightly different way okay guenther@
2019-10-21Fix backtrace across signals on amd64Kurt Miller
okay guenther@ kettenis@
2019-02-24Remove -S from install commandskn
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.
2019-02-01Fix gdb can handle prologues which has the retguard and teach gdb thatYASUOKA Masahiko
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
2004-05-21GDB 6.1 (excluding .info files)Mark Kettenis
2018-12-11Add PN_XNUM support to libbfd so objdump and gdb can handle corePhilip Guenther
dumps with many many segments. ok yasuoka@
2018-10-24Size static array correctly for the numerically highest index used toChristian Weisgerber
access it. ok deraadt@ kettenis@
2018-09-14Pass CC/CFLAGS/LDFLAGS to the configure script. ok millert@Christian Weisgerber
2018-07-10Drop the ignored selectors (tf_[defg]s) from the trap and interrupt frames.Philip Guenther
ok mlarkin@ deraadt@ mpi@ kettenis@
2018-07-03Make intrframe the exact same size as trapframe: instead of pushingPhilip Guenther
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@
2018-04-30The trapframe layout is no longer exactly the same as the sigcontextPhilip Guenther
layout. Simplify how we identify which frames have trapframes while here. ok kettenis@
2018-01-23Revise 'struct fpreg' such that it can actually represent the full VFPv3-D32Mark Kettenis
state. ok patrick@
2017-08-14Add improvements to the DWARF frame unwinder to support xorguard.Mark Kettenis
ok mortimer@
2004-05-21GDB 6.1 (excluding .info files)Mark Kettenis
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
1996-09-04Import of binutils, gas, ld & gprof from Cygnus 960904 treeNiklas Hallqvist
2017-07-28make warns about POST_INSTALL being empty.Marc Espie
other similar makefiles define POST_INSTALL = : so even the GNU guys are aware this might be non standard. fix it. okay krw@ kettenis@
2017-06-12destroy lint remnants.Marc Espie
okay millert@ deraadt@
2017-04-09Sync symbol lists for trap/interrupt frame detection with what ddb(4) usesPhilip Guenther
ok deraadt@
2016-09-18Use ${INSTALL} instead of install, like in all the other Makefile's.Martin Natano
ok guenther
2016-09-11Install programs with ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}Philip Guenther
Install info and data files with -o ${DOCOWN} -g ${DOCGRP} -m ${NONBINMODE} Prompted by natano@ Tweaks and oks deraadt@ natano@
2016-06-28Add missing words to help the reader.Jeremie Courreges-Anglas
ok mikeb@
2016-03-29Fix fallout from the switch to binutils 2.17: the binaries created by 2.17Mark Kettenis
aren't recognized by the in-tree gdb because it's built with the bfd code from 2.15. From miod@.
2015-11-26change the name "as" in the NAME section of the as(1) manuals to lowercase;Ingo Schwarze
requested by and OK jmc@
2015-11-15Same as in binutils-2.17, only restore regular permission bits.Jeremie Courreges-Anglas
But don't restore ownership/setuid/etc bits. ok deraadt@
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
2015-11-11update NAME;Jason McIntyre
kettenis ok'd me poking around in here; ingo ok'd the diff
2004-05-17import binutils 2.14 (excluding testsuites, .info files, and .po files)Dale Rahn
2015-11-09Start moving some vmm things into the tree. First up is binutils so we willMike Larkin
be able to use the virtualization instructions. ok'ed a long time ago, I forgot who, but deraadt@ ok'ed it again anyway.
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.