summaryrefslogtreecommitdiff
path: root/contrib/binutils/opcodes
Commit message (Collapse)AuthorAgeFilesLines
* Remove contrib/binutils, unused after r368667Ed Maste2020-12-1688-104114/+0
| | | | Notes: svn path=/head/; revision=368696
* Fix binutils compilation error with Clang 8Justin Hibbits2019-03-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This change fixes the following compilation error when using clang 8 to cross compile base to powerpc64: ``` /usr/src/gnu/usr.bin/binutils/libopcodes/../../../../contrib/binutils/opcodes/ppc-dis.c:100:35: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Werror,-Wnull-pointer-arithmetic] info->private_data = (char *) 0 + dialect; ~~~~~~~~~~ ^ 1 error generated. *** [ppc-dis.o] Error code 1 make[6]: stopped in /usr/src/gnu/usr.bin/binutils/libopcodes 1 error ``` Test Plan: - buildworld for x86_64 (native) - buildworld for powerpc64 (cross) - buildworld for powerpc64 (native) Submitted by: alfredo.junior_eldorado.org.br Reviewed By: emaste, pfg, brooks Differential Revision: https://reviews.freebsd.org/D19235 Notes: svn path=/head/; revision=344791
* gnu binutils: FSGSBASE assembly/disassemblyRyan Libby2017-09-054-16/+57
| | | | | | | | | | | | | | | | | Enable the in-tree binutils to assemble and disassemble amd64 FSGSBASE instructions (rdfsbase, rdgsbase, wrfsbase, wrgsbase), used in the base system since r322763. This gives one last gasp for in-tree gcc, and provides a small enhancement for in-tree binutils objdump. Reviewed by: dim, kib Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12222 Notes: svn path=/head/; revision=323192
* Add rfdi opcode to binutilsJustin Hibbits2017-02-011-0/+1
| | | | | | | | | | | | The rfdi instruction is part of the e500mc and derivative cores. It came into binutils in a GPLv3 patch, along with the rest of the e500mc instruction set. Currently only rfdi is planned to be used, so rather than attempt to backport the full patch, take a surgical route and add instructions as needed. MFC after: 2 weeks Notes: svn path=/head/; revision=313035
* In binutils' arm-dis.c, avoid left-shifting a negative number.Dimitry Andric2015-09-221-1/+1
| | | | | | | | | Submitted by: dan.mcgregor_usask.ca (Dan McGregor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3376 Notes: svn path=/head/; revision=288099
* Add some opcodes for assembling forthcoming VSX (Vector-Scalar eXtension)Nathan Whitehorn2015-02-221-0/+5
| | | | | | | | support in the kernel. Userspace programs are expected to rely on LLVM's integrated assembler or newer binutils. Notes: svn path=/head/; revision=279187
* Add support for the 'rdseed' instruction.John Baldwin2014-05-183-1/+22
| | | | Notes: svn path=/head/; revision=266391
* For GNU as, add two missing modes for each of the fcomip and fucomipDimitry Andric2014-04-072-0/+16
| | | | | | | | | | | | instructions. Partially obtained from OpenBSD by Pedro Giffuni, while I added the fcomip variants. Apparently this should help with compiling certain variants of WebKit. MFC after: 3 days Notes: svn path=/head/; revision=264238
* binutils: add support for Intel SMAP-related instructionsPedro F. Giffuni2014-01-263-1/+18
| | | | | | | | | | | | | Add support for stac/clac instructions to manipulate the flag that controls the behaviour of Intel's Supervisor Mode Access Prevention (SMAP) feature. Tested by: dim Obtained from: OpenBSD MFC after: 5 days Notes: svn path=/head/; revision=261175
* Fix cross-compilation of ia64 target code with clang.Marcel Moolenaar2013-12-281-5/+5
| | | | Notes: svn path=/head/; revision=260021
* Queisce warning about attempting to add char * together and use explicitSean Bruno2013-10-311-22/+22
| | | | | | | array indexing to indicate what is meant to be done Notes: svn path=/head/; revision=257464
* Add support for assembling and disassembling Intel Random NumberDimitry Andric2013-10-074-8/+40
| | | | | | | | | | | | Generator extensions (e.g. the 'rdrand' mnemonic) to our copy of binutils. Approved by: re (kib) Obtained from: OpenBSD, via pfg MFC after: 1 week Notes: svn path=/head/; revision=256112
* Add support for the 'invpcid' instruction to binutils and DDB'sJohn Baldwin2013-09-033-1/+22
| | | | | | | | | disassembler on amd64. MFC after: 1 month Notes: svn path=/head/; revision=255192
* reorder so all the flags are together and make the PCLMUL flag unique..John-Mark Gurney2013-02-211-4/+5
| | | | | | | | | | | This fixes the problem on amd64 miscompiling mpboot.s causing boot issues... We are still using gas for a few files in the kernel... Submitted by: kib MFC after: 1 month Notes: svn path=/head/; revision=247117
* add support for AES and PCLMULQDQ instructions to binutils...John-Mark Gurney2013-02-193-11/+126
| | | | | | | | | | | | Thanks to Mike Belopuhov for the pointer to the OpenBSD patch, though OpenBSD's gcc is very different that it only helped w/ where to modify, not how... Thanks to jhb for some early reviews... Reviewed by: imp, kib MFC after: 1 month Notes: svn path=/head/; revision=247012
* Add support for the 'invept' and 'invvpid' instructions. Beyond simplyJohn Baldwin2012-07-063-3/+42
| | | | | | | | | | | adding appropriate table entries, the assembler had to be adjusted as these are the first non-SSE instructions to use a 3-byte opcode (and a mandatory prefix to boot). MFC after: 1 month Notes: svn path=/head/; revision=238167
* Add support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv'John Baldwin2012-07-044-10/+71
| | | | | | | | | | | | | instructions. I reimplemented this from scratch based on the Intel manuals and the existing support for handling the fxsave and fxrstor instructions. This will let us use these instructions natively with GCC rather than hardcoding the opcodes in hex. Reviewed by: kib MFC after: 1 month Notes: svn path=/head/; revision=238123
* Fix clang warnings.Ben Laurie2011-06-181-12/+12
| | | | | | | Approved by: philip (mentor) Notes: svn path=/head/; revision=223262
* Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which bringsDimitry Andric2010-11-0144-7407/+36176
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Make contrib/binutils/opcodes/mips-dic.c compile without warnings.Dimitry Andric2010-10-221-1/+1
| | | | | | | | Notes: svn path=/projects/binutils-2.17/; revision=214211
* | Merge ^vendor/binutils/dist@214082 into contrib/binutils.Dimitry Andric2010-10-2159-14489/+24497
|\| | | | | | | Notes: svn path=/projects/binutils-2.17/; revision=214157
* | Merge ^vendor/binutils/dist@214033 into contrib/binutils.Dimitry Andric2010-10-193-5/+80
|\| | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/projects/binutils-2.17/; revision=214074
| * Rename vendor/binutils/*/contrib to vendor/binutils/*/xDavid E. O'Brien2009-01-1971-64338/+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
* | Add/improve mips64r2, Octeon, n32 and n64 support in the toolchain.Juli Mallett2010-06-023-1600/+2155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=208737
* | This commit was generated by cvs2svn to compensate for changes in r179404,David E. O'Brien2008-05-293-0/+3280
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=179405
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).David E. O'Brien2008-05-293-0/+3280
| | | | | | | | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC. Notes: svn path=/vendor/binutils/dist/; revision=179404
* | Fix strict alias warnings.John Birrell2007-11-231-3/+7
| | | | | | | | Notes: svn path=/head/; revision=173874
* | This commit was generated by cvs2svn to compensate for changes in r147824,David E. O'Brien2005-07-071-101/+63
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=147825
| * Fix bogus fmov* SPARC opcodes.David E. O'Brien2005-07-071-101/+63
| | | | | | | | | | | | | | | | | | | | | | | | (Note this makes the vendor branch not represent Binutils in the vendor's CVS repository at any point in time. Portmgr did not like the state of Binutils on Sparc that represented the point in time the vendor fixed this issue. I'd rather have fixed this on RELENG_6.) Approved by: re Notes: svn path=/vendor/binutils/dist/; revision=147824
* | This commit was generated by cvs2svn to compensate for changes in r130561,David E. O'Brien2004-06-1653-14497/+18524
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=130562
| * Import of Binutils from the FSF 2.15 branch (just post-.0 release).David E. O'Brien2004-06-1653-14497/+18524
| | | | | | | | | | | | | | 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
| * Things that never should have been imported.David E. O'Brien2003-03-026-8298/+0
| | | | | | | | Notes: svn path=/vendor/binutils/dist/; revision=111756
* | GC some stuff I thought was long gone.David E. O'Brien2002-12-026-8298/+0
| | | | | | | | Notes: svn path=/head/; revision=107495
* | This commit was generated by cvs2svn to compensate for changes in r107492,David E. O'Brien2002-12-023-21/+38
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=107493
| * Import of Binutils from the FSF 2.13 branch (just pre-.2 release).David E. O'Brien2002-12-023-21/+38
| | | | | | | | | | | | | | These bits are taken from the FSF anoncvs repo on 27-Oct-2002 21:12:00 EST. Notes: svn path=/vendor/binutils/dist/; revision=107492
* | This commit was generated by cvs2svn to compensate for changes in r104834,David E. O'Brien2002-10-1120-991/+1577
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=104835
| * Import of Binutils from the FSF 2.13 branch (just pre-.1 release).David E. O'Brien2002-10-1120-991/+1577
| | | | | | | | | | | | | | 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
* | This commit was generated by cvs2svn to compensate for changes in r99461,David E. O'Brien2002-07-056-1/+1424
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=99462
| * Import of Binutils from the FSF 2.12 branch (just post-.1 release).David E. O'Brien2002-07-056-1/+1424
| | | | | | | | | | | | | | These bits are taken from the FSF anoncvs repo on 22-June-2002 23:28:00 EDT. Notes: svn path=/vendor/binutils/dist/; revision=99461
* | This commit was generated by cvs2svn to compensate for changes in r94536,David E. O'Brien2002-04-1213-839/+982
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=94537
| * Import of Binutils from the FSF 2.12 branch.David E. O'Brien2002-04-1213-839/+982
| | | | | | | | | | | | | | | | (this fixes several linker problems and coredumps) These bits are taken from the FSF anoncvs repo on 10-April-2002 13:24 Zulu Notes: svn path=/vendor/binutils/dist/; revision=94536
* | This commit was generated by cvs2svn to compensate for changes in r92828,David E. O'Brien2002-03-206-517/+577
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=92829
| * Import of Binutils from the FSF 2.12 branch (just post-.0 release).David E. O'Brien2002-03-206-517/+577
| | | | | | | | | | | | | | These bits are taken from the FSF anoncvs repo on 20-March-2002 13:33:33 PST. Notes: svn path=/vendor/binutils/dist/; revision=92828
* | This commit was generated by cvs2svn to compensate for changes in r91041,David E. O'Brien2002-02-2214-225/+545
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=91042
| * Import of Binutils from the FSF 2.12 branch (pre-.0 release).David E. O'Brien2002-02-2214-225/+545
| | | | | | | | | | | | | | These bits are taken from the FSF anoncvs repo on 21-Feburary-2002 20:15 PST. Notes: svn path=/vendor/binutils/dist/; revision=91041
* | This commit was generated by cvs2svn to compensate for changes in r89857,David E. O'Brien2002-01-2733-1854/+4518
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=89858
| * Enlist the FreeBSD-CURRENT users as testers of what is to become BinutilsDavid E. O'Brien2002-01-2733-1854/+4518
| | | | | | | | | | | | | | | | 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
* | This commit was generated by cvs2svn to compensate for changes in r85815,David E. O'Brien2001-11-0117-3299/+5643
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=85816
| * Halloween import of Binutils from the FSF 2.11 branch.David E. O'Brien2001-11-0117-3299/+5643
| | | | | | | | | | | | | | This fixes some IA-64 related bugs. Notes: svn path=/vendor/binutils/dist/; revision=85815
* | This commit was generated by cvs2svn to compensate for changes in r84865,David E. O'Brien2001-10-1317-0/+15157
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=84866