summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils-2.17/binutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* avoid -Wpointer-compare warning which broke build with clang 10jsg2020-06-181-1/+1
|
* 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@
* Map SHT_LLVM_LINKER_OPTIONS to stringkettenis2019-01-311-0/+1
| | | | ok patrick@, naddy@
* Map SHT_LLVM_ADDRSIG to stringguenther2019-01-131-0/+1
| | | | ok kettenis@ deraadt@
* Core files with >65535 sections have to use PN_XNUM and a section headerguenther2018-12-061-1/+6
| | | | | | | | to pass the real count, with a minimal .shstrtab segment for consistency. Also, add support for PN_XNUM to readelf. problem reported and testing by claudio@ ok kettenis@
* Merge post-2.17 but pre-GPLv3 diffs that add support for DT_GNU_HASHguenther2018-12-031-2/+175
| | | | | | | | | | | | | | | to ld and improve the readelf support: https://sourceware.org/ml/binutils/2006-07/msg00129.html https://sourceware.org/ml/binutils/2006-07/msg00181.html Disable the ld support on mips64, as its ABI requires a symbol ordering that conflicts with the requirements of DT_GNU_HASH. Tested on macppc, alpha, and sparc64 to verify operation with all three ELF word size combos testing help miod@ ok kettenis@
* Add GNU_HASH #defines; improve readelf output for SHT_GNU_HASHguenther2018-11-131-0/+1
| | | | ok naddy@ jca@
* Size static array correctly for the numerically highest index used tonaddy2018-10-241-1/+1
| | | | access it. ok deraadt@ kettenis@
* Backport support for option -a to addr2line, which will display each addressanton2018-09-182-2/+21
| | | | | | | | | | | | | given as input before the resolved source location. This change was introduced to bintutils after the switch from GPLv2 but the author Tristan Gingold granted me permission relicense the diff under GPLv2; thanks! Taken as is from binutils commit be6f64938f985dfb0eaa2107b99f193bb865ce04 This option is used by the syzkaller kernel fuzzer to produce a human readable representation of the coverage collected by kcov. ok deraadt@ jca@ visa@
* Add --localize-hidden option to objcopy.kettenis2018-05-212-1/+37
| | | | From Sebastien Marie
* Teach readelf the arm64 dynamic relocation we use, as well as theguenther2017-10-231-0/+23
| | | | | | m88k-specific dynamic tags ok deraadt@ jsg@
* Implement D and U modifiers to ar; with D the uid/gid/mode/time on the updatedguenther2017-02-271-0/+18
| | | | | | | | archive members are set to deterministic values. U cancels D. This should simplify the syspatch work. Based on a diff by daniel@ ok millert@ deraadt@ kettenis@
* Add an ELF machine number to string mapping for AArch64.jsg2017-02-191-0/+1
|
* Bring in FreeBSD changes to prevent clang triggeringjsg2016-09-101-1/+1
| | | | | | | -Wstring-plus-int -Wempty-body and -Wshift-negative-value warnings as binutils is built with -Werror. ok guenther@ millert@
* Teach readelf and objdump about the PT_OPENBSD_BOOTDATA section value.guenther2016-08-101-0/+2
| | | | | | Teach ld to access that and PT_GNU_RELRO in linker scripts. ok deraadt@
* At least display the DT_GNU_HASH tag nicelyguenther2016-06-191-0/+1
| | | | ok kettenis@
* -z wxneeded creates a PHDR PT_OPENBSD_WXNEEDED. This annotation is placedderaadt2016-05-281-0/+2
| | | | | | on a binary by a software builder (ie. packager) to indicate to the kernel that this software performs W^X violations. ok kettenis guenther millert
* Show octeon in readelf -h output.visa2016-04-261-0/+1
|
* In smart_rename, restore at least the regular permissions bits.jca2015-11-151-16/+2
| | | | | | But don't try to chown or set special bits. This fixes several ports. ok deraadt@
* Now that the (setuid bit related) bad-practice audit and repair is complete,deraadt2015-11-152-0/+6
| | | | | ar/ranlib and objcopy/strip can pledge "stdio rpath wpath cpath fattr" ok guenther
* In most cases binutils strips off setuid/setgid bits when creating copiesderaadt2015-11-152-2/+2
| | | | | | | of files. In two cases however they were not being masked. These are build tools -- therefore they should not encourage further propogation of such unsafe bits. ok guenther
* Using #ifndef __OpenBSD__, disable the really dangerous and sillyderaadt2015-11-151-0/+2
| | | | | | | | | | | | | | setuid-preserving code in the so-called smart_rename() function. I don't want my tools (ar, ranlib, objcopy, strip) going through the effort to preserve setuid bits on ``build-directory'' files when they sense a symbolic link, thank you very much. The modern way is to build code, then set such modes at install-time. Our kernel goes through the effort to clear setuid flags, and this was neutering that attempt. Also has atrocious error handling. (Identified as an issue of concern while doing the audit for pledge) ok guenther
* update NAME;jmc2015-11-111-1/+1
| | | | kettenis ok'd me poking around in here; ingo ok'd the diff
* Add pledge(2) to some binutils that handle untrusted data. Most can do withpascal2015-10-224-0/+14
| | | | | | "stdio rpath", while objdump(1) also needs "tmppath" for objdump -i. ok deraadt@, comments sthen@ kettenis@
* Add support for Irix-style "64-bit" archives.kettenis2015-08-281-1/+2
| | | | ok visa@, deraadt@
* Port the ELF m88k work to binutils 2.17. Good enough to build a bootingmiod2015-05-251-0/+12
| | | | kernel, and hopefully userland as well.
* Fix readelf --debug-dump=frames-interp output: once a register is givenguenther2014-08-091-2/+12
| | | | | | | a column, it needs to included in all rows, even after the register is restored. ok jsg@
* Match format width of symbol visibility to the column headerguenther2014-08-091-2/+2
| | | | This corrects the alignment of the columns of hidden symbols
* don't pollute the src dir with info pages when doing buildsjsg2012-09-011-20/+2
| | | | ok kettenis@ deraadt@
* Add support for .openbsd.randomdata and PT_OPENBSD_RANDOMIZE tomatthew2012-08-201-0/+2
| | | | binutils 2.17. Passes randomdata regress tests on sparc64.
* Satisfy -Wbounded.pirofti2011-11-121-2/+6
| | | | Patch gyped from nicm@'s and jasper@'s work on the gdb port.
* My merges of miod's binutils-2.17 WIP code with my changed necessary to getdrahn2011-07-046-8/+14
| | | | somewhere with it building on arm/ia64. much pressure pirofti@ deraadt@
* Grr, this was supposed to be an import without the testsuite directories,miod2011-04-2482-4355/+0
| | | | really.
* A first attempt at merging our local changes and fixes into the 2.17 codebase.miod2011-04-2411-71/+81
| | | | | | ld(1) needs a lot more work, as the upstream code evolved significantly since 2.15, mostly due to changes in PIE binaries layout, and we had already diverged significantly to implement W^X.
* Here comes the easter bunnytils 2.17 (the last version released against amiod2011-04-24224-0/+196922
licence mere mortals can understand the terms of); will be connected to the build on an arch-by-arch basis. Testsuites and generated files have been intentionnaly omitted from this import. Peer pressure and ok from at least drahn@ pirofti@ deraadt@