aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils/include/elf/common.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC 274817,274878,276801,276840,278976:John Baldwin2015-02-231-0/+1
| | | | | | | | | | | | | | | | | | | Improve support for XSAVE with debuggers. - 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). Notes: svn path=/stable/10/; revision=279211
* Add an elf note on ARM to store the MACHINE_ARCH an executable was builtAndrew Turner2013-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) Notes: svn path=/head/; revision=255874
* Improve readelf notes output for Linux ELF filesEd Maste2013-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) Notes: svn path=/head/; revision=255522
* Handle FreeBSD-specific ELF notesEd Maste2013-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 Notes: svn path=/head/; revision=253451
* Fix the value of NT_FREEBSD_TAG to be the same as ABI_NOTRTYPE in lib/csu.Andrew Turner2013-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. Notes: svn path=/head/; revision=249603
* Extend GDB to check the value in the .note.tag section along with theAndrew Turner2013-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. Notes: svn path=/head/; revision=246312
* Sync: merge r215464 through r215708 from ^/head.Dimitry Andric2010-11-221-0/+1
|\ | | | | | | Notes: svn path=/projects/binutils-2.17/; revision=215710
| * Add the ability for GDB to printout the thread name along with otherAttilio Rao2010-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 Notes: svn path=/head/; revision=215679
* | Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which bringsDimitry Andric2010-11-011-3/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/projects/binutils-2.17/; revision=214634
* | | Merge ^vendor/binutils/dist@214082 into contrib/binutils.Dimitry Andric2010-10-211-50/+67
|\| | | |/ |/| | | Notes: svn path=/projects/binutils-2.17/; revision=214157
| * Rename vendor/binutils/*/contrib to vendor/binutils/*/xDavid E. O'Brien2009-01-191-750/+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. Notes: svn path=/vendor/binutils/dist/; revision=187443
* Import of Binutils from the FSF 2.15 branch (just post-.0 release).David E. O'Brien2004-06-161-165/+243
| | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC. Notes: svn path=/vendor/binutils/dist/; revision=130561
* Import of Binutils from the FSF 2.13 branch (just pre-.1 release).David E. O'Brien2002-10-111-2/+36
| | | | | | | These bits are taken from the FSF anoncvs repo on 11-Oct-2002 22:39:35 PDT. Notes: svn path=/vendor/binutils/dist/; revision=104834
* Import of Binutils from the FSF 2.12 branch (pre-.0 release).David E. O'Brien2002-02-221-0/+3
| | | | | | | These bits are taken from the FSF anoncvs repo on 21-Feburary-2002 20:15 PST. Notes: svn path=/vendor/binutils/dist/; revision=91041
* Enlist the FreeBSD-CURRENT users as testers of what is to become BinutilsDavid E. O'Brien2002-01-271-8/+38
| | | | | | | | version 2.12.0. These bits are taken from the FSF anoncvs repo on 27-January-2002 03:41 PST. Notes: svn path=/vendor/binutils/dist/; revision=89857
* Import of GNU Binutils version 2.11.2.David E. O'Brien2001-06-261-2/+2
| | | | Notes: svn path=/vendor/binutils/dist/; revision=78828
* Import of GNU Binutils version 2.11.0.David E. O'Brien2001-05-281-35/+59
| | | | | | | Believe it or not, this is heavily stripped down. Notes: svn path=/vendor/binutils/dist/; revision=77298
* Import of GNU Binutils version 2.10.1.David E. O'Brien2000-11-151-3/+20
| | | | | | | Believe it or not, this is heavily stripped down. Notes: svn path=/vendor/binutils/dist/; revision=68765
* Import a virgin (but trimed) Binutils 2.10 release.David E. O'Brien2000-06-201-1/+1
| | | | Notes: svn path=/vendor/binutils/dist/; revision=61843
* Addition SCO/SVR4 offical EI_OSABI types taken from the sourceware trunk.David E. O'Brien2000-05-131-0/+9
| | | | Notes: svn path=/vendor/binutils/dist/; revision=60529
* Import of Binutils 2.10 snapshot.David E. O'Brien2000-05-121-7/+0
| | | | Notes: svn path=/vendor/binutils/dist/; revision=60484
* Header file gotten from the Cygnus Sourceware Binutils anoncvs repositoryDavid E. O'Brien2000-04-181-34/+259
| | | | | | | on 14-April-2000. This gives us offical SCO/SVR4 ABI values for EI_OSABI. Notes: svn path=/vendor/binutils/dist/; revision=59343
* Import GNU binutils-2.9.1. This will break things for a few minutesJohn Polstra1998-09-061-0/+4
| | | | | | | | | until I've made the commits to resolve the conflicts. Submitted by: Doug Rabson <dfr> Notes: svn path=/vendor/binutils/dist/; revision=38889
* Initial import of GNU binutils version 2.8.1. Believe it or not,John Polstra1998-03-011-0/+333
this is heavily stripped down. Notes: svn path=/vendor/binutils/dist/; revision=33965