summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/gas
Commit message (Collapse)AuthorAgeFilesLines
* MFC r300333:pfg2016-06-101-0/+32
| | | | | | | | | gas: Implement the .inst assembler directive for arm. We normally use the binutils from ports but on other systems this is required for building gcc 4.9. Obtained from: OpenBSD (CVS rev. 1.5)
* MFC r300304:pfg2016-06-031-2/+2
| | | | | | gas/config/tc-arm.c: Minor re-sorting to match upstream history. No functional change.
* MFC r256859: Don't force 64-bit DWARF2 on MIPSemaste2015-12-162-19/+0
| | | | | 64-bit debug data is only necessary for objects with greater than 4GB of debug data, and is not used on other 64-bit FreeBSD targets.
* MFC r256692: Fix .debug_line prologue header length calculation for 64-bit DWARFemaste2015-09-241-10/+8
| | | | | | | | The header_length field is the number of bytes following the field to the first byte of the line number program. The hard-coded constants previously here (4 + 2 + 4) were correct only for 32-bit DWARF. Sponsored by: DARPA, AFRL
* MFC r286519:dim2015-08-121-2/+2
| | | | In GNU as, avoid left-shifting negative integers, which is undefined.
* MFC r272519:ian2015-02-121-0/+6
| | | | | Add movw and movt relocations to the list of relocations against function names that must not be adjusted.
* MFC r276346:dim2014-12-311-3/+3
| | | | | In contrib/binutils/gas/config/tc-ppc.c, fix a few -Wformat-security warnings.
* MFC r276229:pfg2014-12-312-10/+34
| | | | | | | | | Backport fix for binutils 11867: .quad directive not assembled correctly Alan Modra (and Alan's employer) graciously permitted use of his patch under GPLv2. Obtained from: OpenBSD
* MFC r276228:pfg2014-12-291-1/+1
| | | | | | | | | | gas: use memmove instead of bogus memcpy. partial_where points into the buffer that begins with buffer_start so we need to use memmove() to handle the overlap. Fixes Sourceware-PR 11456. Obtained from: OpenBSD (CVS rev. 1.2)
* MFC 275415:andrew2014-12-141-3/+7
| | | | | | | | | | | | | | | Allow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang integrated assembler only allows these forms so binutils will need to support them. Sponsored by: ABT Systems Ltd MFC 275584: Fix mrc and mrc2 with APSR_nzcv. Binutils encodes it internally as 0 where we need it to be set to 15 for it to be equivalent to r15. Sponsored by: ABT Systems Ltd
* MFC r274856:dim2014-11-251-1/+1
| | | | | | | | | Avoid undefined behaviour in gas's rotate_left() macro for n == 0. Otherwise, clang can effectively remove the first iteration of the for loops where this macro is invoked, and as a result, "cmp r0, #99" fails to assemble. Obtained from: joerg at netbsd
* MFC r269393, r269394, r269395:ian2014-08-111-1/+32
| | | | | | Fix parsing of arch extensions in binutils/gas. Use ".arch_extension sec" when compiling ARM TI code that uses the security extensions.
* MFC r256790:ian2014-05-181-4/+4
| | | | | | Fix the VCVT instruction. It must round towards zero when converting from a floating-point to an integer value. This was not the case causing issues when printing certain values.
* MFC r261422jhibbits2014-03-141-1/+1
| | | | | | | Make gas accept any PowerPC instruction by default. This is a local change, and will not be submitted upstream. Discussed with: nwhitehorn,rdivacky
* MFC r261175:pfg2014-01-311-1/+1
| | | | | | | | | | | binutils: add support for Intel SMAP-related instructions 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
* Add support for the 'invpcid' instruction to binutils and DDB'sjhb2013-09-031-2/+4
| | | | | | disassembler on amd64. MFC after: 1 month
* Silence a warning that is incorrect on ARMv6 and later. In the smull, umull,andrew2013-08-171-2/+3
| | | | | | smlal, and umlal the output registers are allowed to be the same as either input registers, where in ARMv4 and ARMv5 they could only be the same as the last input register.
* do_vfp_vmrs and do_vfp_vmsr should not return anything.andrew2013-03-181-11/+7
|
* Add support for the vmsr and vmrs instructions. This supports the systemandrew2013-03-181-0/+66
| | | | | level version of the instructions. When used in userland the hardware only allows us to read/write FPSCR.
* Some ARM vmov similar to 'vmov.f32 s1, s2' will incorrectly have the secondandrew2013-03-181-4/+4
| | | | | | | | | register added to the symbol table by the assembler. On further investigation it was found the problem was with the my_get_expression function. This is called by parse_big_immediate. Fix this by moving the call to parse_big_immediate to the end of the if, else if, ..., else block.
* Clear the memory allocated to build the unwind tables. This fixes C++andrew2013-02-271-0/+2
| | | | exceptions on ARM EABI with static binaries.
* add support for AES and PCLMULQDQ instructions to binutils...jmg2013-02-191-2/+2
| | | | | | | | | 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
* Recognise vfpv2 as a value for the ARM .fpu asm directive. Clang generatesandrew2012-12-151-0/+1
| | | | | | these even when building soft floating-point code Submitted by: Daisuke Aoyama <aoyama AT peach.ne.jp>
* Merging of projects/armv6, part 3gonzo2012-08-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | r238211: Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb This adds a new TARGET_ARCH for building on ARM processors that support the ARMv6K multiprocessor extensions. In particular, these processors have better support for TLS and mutex operations. This mostly touches a lot of Makefiles to extend existing patterns for inferring CPUARCH from ARCH. It also configures: * GCC to default to arm1176jz-s * GCC to predefine __FreeBSD_ARCH_armv6__ * gas to default to ARM_ARCH_V6K * uname -p to return 'armv6' * make so that MACHINE_ARCH defaults to 'armv6' It also changes a number of headers to use the compiler __ARM_ARCH_XXX__ macros to configure processor-specific support routines. Submitted by: Tim Kientzle <kientzle@freebsd.org>
* Add support for the 'invept' and 'invvpid' instructions. Beyond simplyjhb2012-07-061-0/+16
| | | | | | | | 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
* Add support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv'jhb2012-07-041-1/+3
| | | | | | | | | | 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
* Make GNU as recognize the ARM 'rrx' mnemonic, which can be generated bydim2011-06-231-0/+10
| | | | | | clang for certain expressions. Code taken from Apple cctools (GPLv2). Submitted by: damjan.marion@gmail.com
* Fix clang warnings.benl2011-06-183-4/+4
| | | | Approved by: philip (mentor)
* Fix clang warnings.benl2011-05-222-3/+3
| | | | Approved by: philip (mentor)
* For ia64, add a proper 'elf64-ia64-freebsd' output format to BFD, so thedim2010-12-051-1/+3
| | | | | | ELF branding for FreeBSD is done in the same way as amd64, i386 and sparc. Something similar should probably also be done for arm, mips and powerpc.
* Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which bringsdim2010-11-0197-16031/+43981
|\ | | | | | | | | | | | | | | | | | | | | | | 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-21142-33105/+32918
|\ \ | |/
| * Rename vendor/binutils/*/contrib to vendor/binutils/*/xobrien2009-01-19175-222641/+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-191-0/+14
| | | | | | | | | | | | | | 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-185-5339/+2
| | | | | | | | | | any files we do not need, delete some files that were removed upstream, but keep our own customizations and backports from later binutils.
* | Add/improve mips64r2, Octeon, n32 and n64 support in the toolchain.jmallett2010-06-022-2393/+2758
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Push mips support into the tree.imp2008-12-111-0/+23
| |
* | This commit was generated by cvs2svn to compensate for changes in r179404,obrien2008-05-297-0/+15157
|\ \ | |/ | | | | 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-297-0/+15157
| | | | | | | | 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 r168433,kan2007-04-062-20/+17
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import two binutils header files from FSF 2.15 branch.kan2007-04-062-20/+17
| | | | | | | | | | | | | | These fix binutils compilation on i386/amd64 with GCC 4.1 and have no other effect. No response by: obrien
* | Update HEAD with the stock binutils_2_15_20040523 file.obrien2004-06-165-4342/+10192
| |
* | This commit was generated by cvs2svn to compensate for changes in r130561,obrien2004-06-16110-13479/+25658
|\ \ | |/ | | | | 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-16115-17821/+35850
| | | | | | | | These bits are taken from the FSF anoncvs repo on 23-May-2004 04:41:00 UTC.
* | Update HEAD with the stock files.obrien2002-12-022-204/+179
| |
* | GC some stuff I thought was long gone.obrien2002-12-028-6830/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r107492,obrien2002-12-0216-656/+767
|\ \ | |/ | | | | 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-0220-860/+5232
| | | | | | | | These bits are taken from the FSF anoncvs repo on 27-Oct-2002 21:12:00 EST.
* | Try to keep CVS from pissing over the next binutils import by returningobrien2002-12-026-18/+0
| | | | | | | | to purely stock files.
* | This commit was generated by cvs2svn to compensate for changes in r104858,obrien2002-10-111-1/+1
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud