summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/gas (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add missing words to help the reader.jca2016-06-281-2/+2
| | | | ok mikeb@
* change the name "as" in the NAME section of the as(1) manuals to lowercase;schwarze2015-11-261-1/+2
| | | | requested by and OK jmc@
* Start moving some vmm things into the tree. First up is binutils so we willmlarkin2015-11-092-1/+20
| | | | | | be able to use the virtualization instructions. ok'ed a long time ago, I forgot who, but deraadt@ ok'ed it again anyway.
* partial_where points into the buffer that begins with buffer_startmillert2014-11-201-1/+1
| | | | | so we need to use memmove() to handle the overlap. Sourceware PR 11456 OK deraadt@
* Backport fix for binutils 11867: .quad directive not assembled correctly.daniel2014-10-202-10/+34
| | | | | | | Alan Modra (and Alan's employer) graciously permitted use of his patch under GPLv2. ok kettenis@
* Backport @file support from binutils-2.17tobiasu2014-08-312-1/+3
| | | | | | | @file allows reading command line arguments from a file. Gcc now uses this to pass very long arguments lists to ld. ok guenther@ miod@
* Backport from binutils-2.17 the correct i386/amd64 register->int assignmentsguenther2014-08-091-9/+33
| | | | for CFI. This changes the unwind information generated on amd64.
* Add support for i386 XSAVE family of instructions: xgetbv, xsetbv, xsave,guenther2014-02-092-6/+7
| | | | | | | xrstor, and xsaveopt. based on kettenis's original that did xgetbv and xsetbv ok kettenis@
* A few fixes from Tim Mcintosh:miod2013-08-111-6/+49
| | | | | | | - provide 88110 syntactic sugar for the control register names - correctly handle -m options - and a minor fix to allow the register prefix to correctly be recognized in front of the condition codes (only needed for SVR4)
* VAX ELF toolchain, using `%' as the register prefix. Heavily based uponmiod2013-07-052-2/+2
| | | | NetBSD.
* Don't reject '++' and '--' in expressions. Some versions of gcc emit these.kettenis2013-05-171-6/+9
| | | | | | Fix found upstream. ok miod@, martynas@
* Add support for .loc directive options basic_block, prologue_end, and epilogue_begin.brad2013-02-133-35/+199
| | | | | | Backported from binutils 2.17. ok miod@
* Add CFI support for MIPS.brad2013-02-092-0/+16
| | | | | | Backported from binutils 2.17. ok miod@
* Stop as(1) from optimizing away R_X86_64_GOTPCREL relocations.kettenis2013-02-031-0/+1
| | | | ok miod@
* ELF toolchain for m68k, following the SysV/m68k ABI (32-bit types aligned onmiod2013-02-022-2/+2
| | | | | | | | 32-bit boundaries, function return values being in %a0 instead of %d0 if they are declared as pointers, and in fp registers if they are floating point types). Compiler configuration bits (including a few m68k PIC code generation fixes) borrowed from NetBSD.
* Implement tc_fix_adjustable() on ELF, and use it to prevent #got_relmiod2013-01-202-0/+19
| | | | | | relocations to local symbols to be rewritten as relocations to the beginning of the section they are in, plus an addend, as addend can't work for these relocations, the way the got is set up. Inspired by tc-ppc.
* Backport two fixes for amd64 from binutils 2.16.brad2013-01-201-73/+60
| | | | | | | | - For DefaultSize instructions, don't guess a 'q' suffix if the instruction doesn't support it. - Corrections for x86_64 assembly. ok miod@
* When configured for ELF object format output, recognize #abdiff, #got_rel andmiod2013-01-152-25/+171
| | | | | #plt symbol modifiers, and produce the appropriate relocation types. This allows as(1) to correctly assemble PIC code.
* Teach as(1) how to handle mips symbolic register names.bcallah2013-01-072-341/+440
| | | | | Backported from a commit made after binutils 2.17 but before the GPLv3 switch. ok miod@
* m88k ELF toolchain, supporting static binaries only so far.miod2013-01-015-72/+502
| | | | | | | | | | | | | | | | | | Assembler supports a register prefix of `#' when configured for SVR4, and `%' when configured for OpenBSD. Pseudo-ops do not need a leading dot, except when configured for OpenBSD, allowing the `set' instruction to be recognized correctly. Based upon various unfinished or unreliable works, including smurph@'s early work in 2003, my own attempts in 2004 and 2005, and Michael Kato's binutils 2.15 diff from 2005. Support for register prefixes, as well as fixing an evil off-by-one in resolving 16-bit pc-relative relocations in ld (which would only affect kernel .S files branching to global symbols), came as part of the 2012 work. Not enabled yet (needs Makefile.bsd-wrapper, bfd/config.bfd and gdb/configure.tgt updates to completely enable) so as not to disturb the existing a.out toolchain builds; will hopefully be enabled very soon.
* Add support for stac/clac instructions to manipulate the flagjsg2012-10-182-2/+3
| | | | | | | that controls the behaviour of Intel's Supervisor Mode Access Prevention (SMAP) feature. 'looks correct' miod@ ok deraadt@
* Teach as(1) about rdrand on i386/amd64.kettenis2012-09-031-1/+2
| | | | ok jsg@
* Add support for Intel AES-NI and the CLMUL_ instructions, plus a few othersthib2010-06-112-3/+6
| | | | | | | | | that are needed to omplement accelerated AES (and AES-GCM mode) on newer Intel cores. Diff from Mike Belopuhov. no objections/ok miod@
* Some fixes from upstream to make this compile with gcc4.kettenis2010-05-082-20/+16
| | | | ok jsg@, miod@
* Backport fix of negative bignums from binutils 2.16:kettenis2010-03-181-0/+29
| | | | | | | | | | | | | | | | 2004-08-10 Mark Mitchell <mark@codesourcery.com> * expr.c (operand): Handle the "~", "-", and "!" operators applied to bignums. http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/expr.c.diff?cvsroot=src&only\ _with_tag=MAIN&r2=1.52&r1=1.51&f=u Fixes the problem mentioned here: http://llvm.org/bugs/show_bug.cgi?id=6528 ok jsg@, miod@
* Add a new option to the mips64 gas, -mfix-loongson2f-btb. This optionmiod2010-02-032-2/+86
| | | | | | | | | | | | | | | | | | | | | | is intended to be used when compiling kernel code which will run on a Loongson 2E or 2F processor, and inserts an explicit BTB clear operation before every jump through a register (jr or jalr instructions), unless that register is k0 or k1, or we are in .set noat. This is a reliable, although aggressive, workaround for the misbehaviour of the branch prediction engine of many Loongson 2F processors with regard to the Branch Translation Buffer, for which an official errata has yet to be published, and for which the Loongson suggested workaround apparently only works due to pipeline side effects, but requires all the executable kernel code to be located in CKSEG0/CKSEG1. These changes are inspired by a backport of the Loongson binutils 2.19 patch to binutils 2.18; the idea of doing an aggressive BTB clear is mine. This causes no functional change to code compiled without the -mfix-loongson2f-btb option. ``looks reasonable'' kettenis@
* Teach as(1) about %gl on sparc64.kettenis2007-12-241-0/+1
| | | | ok miod@
* fix a crash with --statistics. closing file in the wrong place.tedu2006-10-241-7/+13
| | | | from dasn. ok deraadt
* Define superH obsd-specific emulations for ld, and use it by default.miod2006-10-083-2/+4
|
* Early bits for a 32-bit SuperH toolchain, currently for little-endianmiod2006-10-062-0/+2
| | | | systems only; more work is necessary in ld land.
* fix info target, make sure as.info gets built during built, not install.espie2006-07-131-1/+1
|
* hppa64-unknown-openbsd build support; espie@ miod@ brad@ okmickey2005-01-253-2/+33
|
* synctodd2004-11-191-3/+1
|
* one more ${srcdir} place, now puts .info properly in obj/; ok deraadtpvalchev2004-11-031-1/+1
|
* incorrectly places output files in ${srcdir} -- candidate for passing backderaadt2004-11-031-1/+1
| | | | ok pvalchev
* Merge glitches.miod2004-11-021-0/+24
|
* Merge conflicts, bringing our changes back in:miod2004-11-02117-21558/+25911
| | | | | | | | | | | | | | | | | | | | | - extra $(SHELL) and sugar for make (so that files not mode +x still work) - safer temp file handling - our W^X binary layout changes in ld - OpenBSD policy for library file selection in ld - arm and m88k changes which were not merged in time for official 2.15 - bfd core file handling - a couple typos New for 2.15: - ld(1) and as(1) manpages now generated at build time - binutils/stabs.c reverted to use our in-tree libiberty for now - we still use our VIA C3 crypto code over stock binutils, as it recognizes more instructions - new emulations for OpenBSD on mips64 machines, to help OpenBSD/sgi - relaxed %f# handling in gas on OpenBSD/sparc64 (same as was in 2.14) Tested on all platforms by various people; special thanks to sturm@ and otto@.
* Binutils 2.15, with testsuites removed, and without gdb and libiberty.miod2004-11-0287-5562/+52443
|
* Fix a previous merge error.pefo2004-09-061-0/+1
| | | | ok miod@ and espie@
* Resolve merge conflicts, adjust method of W^X handing (.sh files)drahn2004-05-171249-485059/+33899
| | | | remove testsuites (not useable) remove mmalloc (not part of new binutils).
* import binutils 2.14 (excluding testsuites, .info files, and .po files)drahn2004-05-17119-7434/+59808
|
* Correctly compute pc-relative relocation addend for amd64.kettenis2004-03-011-3/+19
| | | | ok deraadt@
* configs for amd64; brad@ okmickey2004-02-102-0/+2
|
* Permit '-' in a mnemonic. This is needed for the new VIA C3 xmove-rngderaadt2004-02-011-0/+1
| | | | | and xcrypt-{ecb,cbc,cfb,ofb} instructions. This chagne is placed into the public domain, so someone get it back to FSF
* A working gcc 2.95/m88k compiler, for some low standard value of working.miod2003-08-012-0/+2
| | | | | | | | | | | | Configuration settings mostly borrowed from the former gcc 2.8 configuration. A few typos and fixes backported from gcc 3.3, and a hell lot of fixes from my fingertips. This is enough to yield a compiler which will produce correct code at -O0. Optimization is slightly broken for some constructs, and more fixes are in the pipeline. ok deraadt@
* Switch i386 to new binutils, i386 tools now do ELF.drahn2003-04-173-4/+4
| | | | | | RODATA_* align macros to preserve current behavior on other archs and allow for 1G sep between beginning of exe and beginning of data DARPA funded work.
* Add a second keep-locals entry to stop getopt from treating -k as anfgsch2002-12-191-0/+4
| | | | | abbreviation for --keep-locals. from binutils-current. millert@ ok.
* Reverse the order of a test in the loop invariant. It makes moremillert2002-12-131-1/+1
| | | | | sense this way and works around an apparent gcc optimizer bug on macppc related to inline functions. OK drahn@
* From Andrushock, s/sucess/success/gmillert2002-12-091-1/+1
|
* Switch sparc binutils to ELF.art2002-08-112-2/+2
| | | | | | XXX - we might want to improve the version selection logic when feeding those diffs back to FSF, but we can't do that until we bump our version to OpenBSD 3.2 because then the tree wouldn't build.