summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/include
Commit message (Collapse)AuthorAgeFilesLines
* MFC r327164:dim2018-02-211-3/+3
| | | | | | | | | | | | | | | | | | | | Fix clang 6.0.0 compiler warnings in binutils Latest clang git has a warning -Wnull-pointer-arithmetic which will trigger a -Werror failure. Addition and subtraction from a null pointer is undefined behaviour and could be optimized into anything. Furthermore, using the difference between two pointers and casting the result back to a pointer is not portable since the size of ptrdiff_t does not necessary have to be the same as size of void* (this happens e.g. on CHERI). Using intptr_t instead fixes this portability issue and the compiler warning. Submitted by; Alexander Richardson Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D12928 (cherry picked from commit 0cd25a0c5807abc3eb947abf62bc29f95037eba2)
* Replace local prototype of basename() with an inclusion of <libgen.h>.ed2016-05-291-1/+1
| | | | | | | | | | | | | | | | | libiberty currently defines the prototype for basename() itself instead of using <libgen.h>. It still uses the BSD-style prototype instead of the POSIX one, meaning that if FreeBSD would switch over to the POSIX one, you wouldn't be able to use libiberty.h and libgen.h in a single source file. It turns out that kgdb does this. Patch up libiberty to just include <libgen.h>. I'm currently talking to upstream to see whether we can come up with a more complete solution that could be integrated, but for our unmaintained copy of GDB in base, let's just apply the simplest workaround possible. Reviewed by: pfg Differential Revision: https://reviews.freebsd.org/D6631
* More ARM EABI object attributes in binutils. This adds support to binutilsandrew2015-04-031-1/+5
| | | | | | | | | | | | | | to include the Unaligned Access and Floating-point Half-precision attributes. the former marks ELF objects that may access ARMv6 style unaligned data, the latter that the binary uses the VFPv3/Advanced SIMD half-precision extension. These may be emmitted by clang so it's best to print a warning when the linker hits one of them. Differential Revision: http://reviews.freebsd.org/D2194 Submitted by: Michal Meloun <meloun@miracle.cz> MFC after: 1 week
* Add new PowerPC relocations to binutilsjhibbits2014-12-123-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: LLVM/Clang generates relocations that our binutils doesn't understand, but newer binutils does. I got permission from the author of a series of patches to relicense them as GPLv2 for use in FreeBSD. The upstream git hashes are: ac2df442ac7901f00af15b272fc48b594b433713 2b95367962dc14f69d3c338c4d54195266e2e169 102890f04c44b64cf5cef4588267dd9f24086ac7 b7fcf6f6bb53b5027e111107f5416769cb9a5798 1d483afedd5a628dc84fb58d1d570f79fdfbfa7b 90aecf7a80c1cefeb45fc10a6cd02c8338e34b4c 3a71aa26df2a372a58e9c11ef9ba51fd0e83320a 727fc41e077139570ea8b8ddfd6c546b2a55627c With the import of clang 3.5, and a few backported patches, we should be able to move powerpc and powerpc64 to clang-as-cc soon. Test Plan: Passes make tinderbox, so no regressions. Binaries built with clang run on powerpc64. Reviewers: #committers, dim Reviewed By: dim Differential Revision: https://reviews.freebsd.org/D1297 Obtained from: Alan Modra, upstream binutils-gdb git MFC after: 3 weeks Relnotes: yes
* Improve support for XSAVE with debuggers.jhb2014-11-211-0/+1
| | | | | | | | | | | | | | | | | | | - Dump an NT_X86_XSTATE note if XSAVE is in use. This note is designed to match what Linux does in that 1) it dumps the entire XSAVE area including the fxsave state, and 2) it stashes a copy of the current xsave mask in the unused padding between the fxsave state and the xstate header at the same location used by Linux. - Teach readelf() to recognize NT_X86_XSTATE notes. - Change PT_GET/SETXSTATE to take the entire XSAVE state instead of only the extra portion. This avoids having to always make two ptrace() calls to get or set the full XSAVE state. - Add a PT_GET_XSTATE_INFO which returns the length of the current XSTATE save area (so the size of the buffer needed for PT_GETXSTATE) and the current XSAVE mask (%xcr0). Differential Revision: https://reviews.freebsd.org/D1193 Reviewed by: kib MFC after: 2 weeks
* Silence a warning about Tag_Virtualization_use being unknown. We don'tandrew2014-10-041-0/+2
| | | | handle merging this tag correctly, however it's unused.
* Add an elf note on ARM to store the MACHINE_ARCH an executable was builtandrew2013-09-261-0/+1
| | | | | | | | | | for. This is useful for software needing to know which architecture a binary is built for as arm and armv6 have slight differences meaning only some binaries build for one will work as expected on the other. It is expected pkgng will be able to make use of this to simplify the logic to determine which package ABI to use. Approved by: re (kib)
* Improve readelf notes output for Linux ELF filesemaste2013-09-131-0/+5
| | | | | | | | | Add four ELF note constants: - NT_FILE and NT_SIGINFO (core file notes output by recent Linux kernels) - NT_GNU_ABI_TAG (was incorrectly reported as NT_VERSION) - NT_GNU_BUILD_ID (used for locating standalone debug files) Approved by: re (kib)
* Handle FreeBSD-specific ELF notesemaste2013-07-181-1/+13
| | | | | | | | | | | | Add a function to return the specific type, when the note's Name field is 'FreeBSD'. r249558 added FreeBSD-specific ELF note types that reuse type numbers of existing generic / Linux types. This caused 'readelf -n' to produce incorrect output on FreeBSD core files. Sponsored by: DARPA, AFRL MFC after: 3 days
* Handle DW_TAG_rvalue_reference_typeemaste2013-06-121-0/+1
| | | | | | | | | | | | 2012-05-21 Jim Ingham <jingham@apple.com> * dwarf2read.c (process_die): Handle DW_TAG_rvalue_reference_type. (read_type_die): Ditto. (dwarf_tag_name): Ditto. * elf/dwarf2.h: Add DW_TAG_rvalue_reference_type. Obtained from: Apple, gdb-1820
* Fix the value of NT_FREEBSD_TAG to be the same as ABI_NOTRTYPE in lib/csu.andrew2013-04-181-1/+2
| | | | | Add NT_FREEBSD_NOINIT_TAG for the value of CRT_NOINIT_NOTETYPE. Check for both of these when detecting a FreeBSD binary in gdb.
* Extend GDB to check the value in the .note.tag section along with theandrew2013-02-041-0/+4
| | | | | | | | .note.ABI-tag section. This helps on ARM EABI where the OS/ABI field is zero. It would be better to use the NOTES program header however this would require a more invasive change.
* Teach gdb about the DW_FORM_flag_present dwarf attribute, so it doesn'tdim2012-08-291-1/+2
| | | | | | | error out on files that contain it. (This attribute can be emitted by newer versions of clang.) MFC after: 2 weeks
* Sync: merge r215464 through r215708 from ^/head.dim2010-11-221-0/+1
|\
| * Add the ability for GDB to printout the thread name along with otherattilio2010-11-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks
* | Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which bringsdim2010-11-0141-1878/+3205
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | us up to version 2.17.50.20070703, at the last GPLv2 commit. Amongst others, this added upstream support for some FreeBSD-specific things that we previously had to manually hack in, such as the OSABI label support, and so on. There are also quite a number of new files, some for cpu's (e.g. SPU) that we may or may not be interested in, but those can be cleaned up later on, if needed.
* \ \ Merge ^vendor/binutils/dist@214082 into contrib/binutils.dim2010-10-21122-3860/+4429
|\ \ \ | |/ /
| * | Rename vendor/binutils/*/contrib to vendor/binutils/*/xobrien2009-01-19135-40410/+0
| | | | | | | | | | | | | | | | | | | | | Binutils has a "contrib" subdirectory - thus flattening cannot happen without renaming the upper level contrib directory in a first pass. Also, don't record this move and remove any keyword expansion.
* | | Merge ^vendor/binutils/dist@214033 into contrib/binutils.dim2010-10-192-1/+8
| | | | | | | | | | | | | | | | | | | | | The change made to bfd/elf.c in upstream revision 1.217.4.3 (which was a revert of an earlier change), caused objcopy on powerpc to fail to copy debug info from kernel modules. This had to be fixed by applying the diff from upstream revision 1.243 on top of it.
* | | Merge ^vendor/binutils/dist@213996 into contrib/binutils. Skip addingdim2010-10-183-624/+0
| |/ |/| | | | | | | any files we do not need, delete some files that were removed upstream, but keep our own customizations and backports from later binutils.
* | Add support for the BFD target efi-app-x86_64.rpaulo2010-09-292-13/+149
| | | | | | | | | | This uses only GPL2 source code and is a requirement for a 64 bit EFI boot loader.
* | Add/improve mips64r2, Octeon, n32 and n64 support in the toolchain.jmallett2010-06-022-13/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o) Add TARGET_ABI to the MIPS toolchain build process. This sets the default ABI to one of o32, n32 or n64. If it is not set, o32 is assumed as that is the current default. o) Set the default GCC cpu type to any specified TARGET_CPUTYPE. This is necessary to have a working "cc" if e.g. mips64 is specified, as binutils will refuse to link objects using different ISAs in some cases. o) Add support for n32 and n64 ABIs to binutils and GCC. o) Add additional required libgcc2 stubs for n32 and n64. o) Add support for the "mips64r2" architecture to GCC. Add the "octeon" o) When static linking, wrap default libraries in --start-group and --end-group. This is required for static linking to work on n64 with the interdependencies between libraries there. This is what other OSes that support n64 seem to do, as well. o) Fix our GCC spec to define __mips64 for 64-bit targets, not __mips64__, the former being what libgcc, etc., check and the latter seemingly being a misspelling of a hand merge from a Linux spec. o) When no TARGET_CPUTYPE is specified at build time, make GCC take the default ISA from the ABI. Our old defaults were too liberal and assumed that 64-bit ABIs should default to the MIPS64 ISA and that 32-bit ABIs should default to the MIPS32 ISA, when we are supporting or will support some systems based on earlier 32-bit and 64-bit ISAs, most notably MIPS-III. o) Merge a new opcode file (and support code) from a later version of binutils and add flags and code necessary to support Octeon-specific instructions. This should also make merging opcodes for other modern architectures easier. Reviewed by: imp
* | Bring these back to HEAD.obrien2008-05-291-0/+914
| | | | | | | | | | (I thought ncvs@ had rm'ed these MIPS files a long time ago... SVN had better work out - else 7 more files off the vendor branch.)
* | This commit was generated by cvs2svn to compensate for changes in r179404,obrien2008-05-292-0/+433
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).obrien2008-05-293-0/+1347
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
* | This commit was generated by cvs2svn to compensate for changes in r131722,obrien2004-07-061-0/+639
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).obrien2004-07-061-0/+639
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
* | Blah, these came back. Use a bigger hammer.obrien2004-06-161-144/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r130561,obrien2004-06-1666-7158/+10926
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).obrien2004-06-1666-7158/+10926
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
| * Play along with the effort to use getopt_long from libc.obrien2004-03-171-142/+0
| |
| * Things that never should have been imported.obrien2003-03-028-4427/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r127105,obrien2004-03-171-142/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | This commit was generated by cvs2svn to compensate for changes in r111756,obrien2003-03-024-2732/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | GC some stuff I thought was long gone.obrien2002-12-023-1645/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r107492,obrien2002-12-022-1/+12
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.13 branch (just pre-.2 release).obrien2002-12-023-1/+62
| | | | | | | | These bits are taken from the FSF anoncvs repo on 27-Oct-2002 21:12:00 EST.
* | This commit was generated by cvs2svn to compensate for changes in r104834,obrien2002-10-1131-191/+801
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.13 branch (just pre-.1 release).obrien2002-10-1131-191/+801
| | | | | | | | These bits are taken from the FSF anoncvs repo on 11-Oct-2002 22:39:35 PDT.
| * Remove these MIPS (and stragglers) from the vendor branch so I won'tobrien2002-08-312-98/+0
| | | | | | | | accidently import them again.
| * Import of Binutils from the FSF 2.12 branch (post-.1 release).obrien2002-08-312-350/+12
| |
* | Remove these Bintuils 2.11 files that aren't part of 2.12.obrien2002-09-011-88/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r99461,obrien2002-07-055-0/+150
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.12 branch (just post-.1 release).obrien2002-07-055-0/+150
| | | | | | | | These bits are taken from the FSF anoncvs repo on 22-June-2002 23:28:00 EDT.
* | This commit was generated by cvs2svn to compensate for changes in r94536,obrien2002-04-122-283/+322
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.12 branch.obrien2002-04-122-283/+322
| | | | | | | | | | (this fixes several linker problems and coredumps) These bits are taken from the FSF anoncvs repo on 10-April-2002 13:24 Zulu
* | This commit was generated by cvs2svn to compensate for changes in r92828,obrien2002-03-202-1/+12
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.12 branch (just post-.0 release).obrien2002-03-202-1/+12
| | | | | | | | These bits are taken from the FSF anoncvs repo on 20-March-2002 13:33:33 PST.
* | This commit was generated by cvs2svn to compensate for changes in r91041,obrien2002-02-2217-123/+517
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Binutils from the FSF 2.12 branch (pre-.0 release).obrien2002-02-2217-123/+517
| | | | | | | | These bits are taken from the FSF anoncvs repo on 21-Feburary-2002 20:15 PST.
OpenPOWER on IntegriCloud