Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6324 → Rev 5812

/contrib/toolchain/binutils/include/gcc-c-fe.def
File deleted
/contrib/toolchain/binutils/include/longlong.h
File deleted
/contrib/toolchain/binutils/include/gcc-c-interface.h
File deleted
/contrib/toolchain/binutils/include/gcc-interface.h
File deleted
/contrib/toolchain/binutils/include/binary-io.h
1,5 → 1,5
/* Binary mode I/O.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
40,8 → 40,6
# include <io.h> /* declares setmode() */
# else
# define setmode _setmode
# undef fileno
# define fileno _fileno
# endif
# ifdef __DJGPP__
# include <unistd.h> /* declares isatty() */
/contrib/toolchain/binutils/include/ChangeLog
1,415 → 1,3
2015-11-09 Alan Modra <amodra@gmail.com>
 
PR gdb/17133
* obstack.h (__attribute_pure__): Expand _GL_ATTRIBUTE_PURE.
 
2015-11-09 Alan Modra <amodra@gmail.com>
 
PR gdb/17133
* obstack.h: Import current gnulib file.
 
2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
 
* bfdlink.h (bfd_link_info): Add call_nop_as_suffix and
call_nop_byte.
 
2015-10-07 Claudiu Zissulescu <claziss@synopsys.com>
 
* dis-asm.h (arc_get_disassembler): Correct declaration.
 
2015-09-30 Nick Clifton <nickc@redhat.com>
 
Import the following patches from the GCC mainline:
 
2015-08-14 Pierre-Marie de Rodat <derodat@adacore.com>
 
* dwarf2.def (DW_AT_GNU_bias): New attribute.
 
2015-08-14 Pierre-Marie de Rodat <derodat@adacore.com>
 
* dwarf2.def (DW_AT_GNU_numerator, DW_AT_GNU_denominator): New
attributes.
 
2015-09-26 James Bowman <james.bowman@ftdichip.com>
 
* opcode/ft32.h: Add instruction macros FT32_*()
 
2015-09-20 Rich Felker <dalias@libc.org>
 
* bfdlink.h (struct bfd_link_info): Add "nointerp" field.
 
2015-08-23 Alan Modra <amodra@gmail.com>
 
* bfdlink.h (enum output_type): Reorder enum.
 
2015-08-19 Alan Modra <amodra@gmail.com>
 
* bfdlink.h (enum output_type): Delete type_executable, add type_pde
and type_pie. Reorder.
(struct bfd_link_info): Delete pic field.
(bfd_link_executable, bfd_link_pde, bfd_link_pie, bfd_link_pic): Adjust.
 
2015-08-19 Alan Modra <amodra@gmail.com>
 
* bfdlink.h (bfd_link_pde): Define.
 
2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
 
* include/bfdlink.h (output_type): New enum.
(bfd_link_executable): New macro.
(bfd_link_dll): Likewise.
(bfd_link_relocatable): Likewise.
(bfd_link_pic): Likewise.
(bfd_link_pie): Likewise.
(bfd_link_info): Remove shared, executable, pie and relocatable.
Add output_type and pic.
 
2015-08-12 H.J. Lu <hongjiu.lu@intel.com>
 
Sync with GCC
2015-08-11 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
 
* ansidecl.h (GCC_FINAL): New macro.
 
2015-07-16 Jiong Wang <jiong.wang@arm.com>
 
* elf/aarch64.h (R_AARCH64_P32_TLSLD_ADR_PREL21): New enumeration.
 
2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
 
Sync with GCC
2014-10-28 Richard Henderson <rth@redhat.com>
 
* longlong.h [__alpha] (umul_ppmm): Disable for c++.
 
2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
 
Sync with GCC
2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
 
* hashtab.h, splay-tree.h: Remove GTY markers.
 
2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
 
Sync with GCC
2015-03-02 Markus Trippelsdorf <markus@trippelsdorf.de>
 
PR target/65261
* ansidecl.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.
 
2015-07-09 Catherine Moore <clm@codesourcery.com>
 
* elf/mips/mips.h (Val_GNU_MIPS_ABI_FP_NAN2008): New.
 
2015-07-08 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
 
* elf/avr.h: Add new 32 bit PC relative relocation.
 
2015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
 
* elf/mips.h (DT_MIPS_RLD_MAP_REL): New macro.
 
2015-06-22 Nick Clifton <nickc@redhat.com>
 
* dis-asm.h (struct disassemble_info): Add stop_vma field.
 
2015-05-28 Catherine Moore <clm@codesourcery.com>
 
include/
* bfdlink.h: Rename eh_frame_hdr to eh_frame_hdr_type.
 
2015-05-22 Yunlian Jiang <yunlian@google.com>
 
* libiberty.h (asprintf): Don't declare if HAVE_DECL_ASPRINTF is
not defined.
 
2015-05-12 Jiong Wang <jiong.wang@arm.com>
 
* elf/aarch64.h (R_AARCH64_P32_LD32_GOTPAGE_LO14): New enumeration.
 
2015-05-01 H.J. Lu <hongjiu.lu@intel.com>
 
Merge with gcc:
2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
Manuel López-Ibáñez <manu@gcc.gnu.org>
 
PR driver/36312
* filenames.h: Add prototype for canonical_filename_eq.
 
2015-04-30 DJ Delorie <dj@redhat.com>
 
* dis-asm.h (print_insn_rl78_g10): New.
(print_insn_rl78_g13): New.
(print_insn_rl78_g14): New.
(rl78_get_disassembler): New.
 
2015-04-17 Richard Earnshaw <rearnsha@arm.com>
 
Merge from gcc:
2015-03-19 Richard Biener <rguenther@suse.de>
 
* partition.h (struct partition_elem): Re-order elements to
avoid padding.
 
2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
 
* bfdlink.h (bfd_link_info): Add compress_debug.
 
2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/pr17709
* bfdlink.h (bfd_link_info): Add extern_protected_data.
 
2015-03-10 Matthew Wahab <matthew.wahab@arm.com>
 
PR ld/16572
* elf/arm.h (EF_ARM_HASENTRY): Remove.
 
2015-02-19 Pedro Alves <palves@redhat.com>
 
* floatformat.h [__cplusplus]: Wrap in extern "C".
 
2015-02-14 Alan Modra <amodra@gmail.com>
 
PR ld/17973
* bfdlink.h (struct bfd_link_info): Delete loading_lto_outputs.
 
2015-02-09 Mark Wielaard <mjw@redhat.com>
 
* dwarf2.h: Add DW_LANG_Fortran03 and DW_LANG_Fortran08.
 
2015-02-09 Mark Wielaard <mjw@redhat.com>
 
* dwarf2.def: Add DW_TAG_atomic_type.
 
2015-01-28 James Bowman <james.bowman@ftdichip.com>
 
* dis-asm.h (print_insn_ft32): Declare.
 
2015-01-15 Mark Wielaard <mjw@redhat.com>
 
* dwarf2.def (DW_AT_noreturn): New DWARF5 attribute.
 
2015-01-14 Jan-Benedict Glaw <jbglaw@lug-owl.de>
 
* libiberty.h: Merge from GCC.
 
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-12-24 Uros Bizjak <ubizjak@gmail.com>
Ben Elliston <bje@au.ibm.com>
Manuel Lopez-Ibanez <manu@gcc.gnu.org>
 
* libiberty.h (xasprintf): Declare.
 
2014-12-23 Alan Modra <amodra@gmail.com>
 
* bfdlink.h (struct bfd_link_hash_entry): Comment non_ir_ref. Add
linker_def.
 
2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
 
* gcc-c-fe.def: New file.
* gcc-c-interface.h: New file.
* gcc-interface.h: New file.
 
2014-12-11 Uros Bizjak <ubizjak@gmail.com>
Ben Elliston <bje@au.ibm.com>
Manuel Lopez-Ibanez <manu@gcc.gnu.org>
 
* libiberty.h (xvasprintf): Declare.
 
2014-12-06 Eric Botcazou <ebotcazou@adacore.com>
 
* dis-asm.h (print_insn_visium): Declare.
 
2014-11-24 Mark Wielaard <mjw@redhat.com>
 
* dwarf2.h: Add DW_LANG_C_plus_plus_11, DW_LANG_C11 and
DW_LANG_C_plus_plus_14.
 
2014-11-21 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
 
* dwarf2.def (DW_AT_APPLE_optimized, DW_AT_APPLE_flags)
(DW_AT_APPLE_isa, DW_AT_APPLE_block)
(DW_AT_APPLE_major_runtime_vers, DW_AT_APPLE_runtime_class)
(DW_AT_APPLE_omit_frame_ptr, DW_AT_APPLE_property_name)
(DW_AT_APPLE_property_getter, DW_AT_APPLE_property_setter)
(DW_AT_APPLE_property_attribute, DW_AT_APPLE_objc_complete_type)
(DW_AT_APPLE_property): New macros.
 
2014-11-21 Mark Wielaard <mjw@redhat.com>
 
PR debug/63239
* dwarf2.def (DW_AT_GNU_deleted): New attribute.
 
2014-11-21 Terry Guo <terry.guo@arm.com>
 
* opcode/arm.h (FPU_VFP_EXT_ARMV8xD): New macro.
(FPU_VFP_V5D16): Likewise.
(FPU_VFP_V5_SP_D16): Likewise.
(FPU_ARCH_VFP_V5D16): Likewise.
(FPU_ARCH_VFP_V5_SP_D16): Likewise.
 
2014-11-18 Igor Zamyatin <igor.zamyatin@intel.com>
 
* bfdlink.h (struct bfd_link_info): Add bndplt.
 
2014-10-30 Andrew Pinski <apinski@cavium.com>
 
* elf/mips.h (AFL_EXT_OCTEON3): Define.
INSN_OCTEON3, CPU_OCTEON3): Define.
 
2014-10-28 Yury Gribov <y.gribov@samsung.com>
 
* libiberty.h (strtol, strtoul, strtoll, strtoull): New prototypes.
 
2014-10-22 Matthew Fortune <matthew.fortune@imgtec.com>
 
* elf/mips.h (AFL_ASE_MASK): Define.
 
2014-10-15 David Malcolm <dmalcolm@redhat.com>
 
* libiberty.h (choose_tmpdir): New prototype.
 
2014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
 
* libiberty.h (PEX_STDOUT_APPEND): New flag.
(PEX_STDERR_APPEND): Likewise.
 
2014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
 
* demangle.h (DMGL_DLANG): New macro.
(DMGL_STYLE_MASK): Add DMGL_DLANG.
(demangling_styles): Add dlang_demangling.
(DLANG_DEMANGLING_STYLE_STRING): New macro.
(DLANG_DEMANGLING): New macro.
(dlang_demangle): New prototype.
 
2014-09-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
 
* longlong.h: Add __udiv_w_sdiv prototype.
 
2014-08-12 Alan Modra <amodra@gmail.com>
 
* bfdlink.h (struct bfd_link_callbacks <notice>): Remove "string"
param, add "inh".
 
2014-08-12 Alan Modra <amodra@gmail.com>
 
* bfdlink.h (struct bfd_link_info): Add lto_plugin_active.
 
2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
 
* elf/mips.h (PT_MIPS_ABIFLAGS, SHT_MIPS_ABIFLAGS): Define.
(Val_GNU_MIPS_ABI_FP_OLD_64): Rename from Val_GNU_MIPS_ABI_FP_64.
(Val_GNU_MIPS_ABI_FP_64): Redefine.
(Val_GNU_MIPS_ABI_FP_XX): Define.
(Elf_External_ABIFlags_v0, Elf_Internal_ABIFlags_v0): New structures.
(AFL_REG_NONE, AFL_REG_32, AFL_REG_64, AFL_REG_128): Define.
(AFL_ASE_DSP, AFL_ASE_DSPR2, AFL_ASE_EVA, AFL_ASE_MCU): Likewise.
(AFL_ASE_MDMX, AFL_ASE_MIPS3D, AFL_ASE_MT, AFL_ASE_SMARTMIPS): Likewise.
(AFL_ASE_VIRT, AFL_ASE_MSA, AFL_ASE_MIPS16): Likewise.
(AFL_ASE_MICROMIPS, AFL_ASE_XPA): Likewise.
(AFL_EXT_XLR, AFL_EXT_OCTEON2, AFL_EXT_OCTEONP): Likewise.
(AFL_EXT_LOONGSON_3A, AFL_EXT_OCTEON, AFL_EXT_5900): Likewise.
(AFL_EXT_4650, AFL_EXT_4010, AFL_EXT_4100, AFL_EXT_3900): Likewise.
(AFL_EXT_10000, AFL_EXT_SB1, AFL_EXT_4111, AFL_EXT_4120): Likewise.
(AFL_EXT_5400, AFL_EXT_5500, AFL_EXT_LOONGSON_2E): Likewise.
(AFL_EXT_LOONGSON_2F): Likewise.
(bfd_mips_elf_swap_abiflags_v0_in): Prototype.
(bfd_mips_elf_swap_abiflags_v0_out): Likewise.
(bfd_mips_isa_ext): Likewise.
 
2014-06-13 Alan Modra <amodra@gmail.com>
 
* bfdlink.h (struct bfd_link_hash_table): Add hash_table_free field.
 
2014-06-13 Alan Modra <amodra@gmail.com>
 
* bfdlink.h: Update for bfd.link_next change.
 
2014-06-10 Alan Modra <amodra@gmail.com>
 
PR ld/16910
* bfdlink.h (unwrap_hash_lookup): Declare.
 
2014-05-01 Steve Ellcey <sellcey@mips.com>
 
* include/longlong.h: Import latest version from GCC tree.
 
2014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
 
* opcode/mips.h (ASE_XPA): New define.
 
2014-04-22 Christian Svensson <blue@cmd.nu>
 
* dis-asm.h: Remove openrisc and or32 support. Add support for or1k.
 
2014-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
 
* elf/avr.h: Add new DIFF relocs.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2014-01-21 Tom Tromey <tromey@redhat.com>
 
* ansidecl.h (ANSI_PROTOTYPES, PTRCONST, LONG_DOUBLE, PARAMS)
(VPARAMS, VA_START, VA_OPEN, VA_CLOSE, VA_FIXEDARG, CONST)
(VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID, AND, DOTS)
(NOARGS): Don't define.
* libiberty.h (expandargv, writeargv): Don't use PARAMS.
 
2014-01-09 Tom Tromey <tromey@redhat.com>
 
* gdbm.h: Remove.
 
2013-12-23 Bill Maddox <maddox@google.com>
 
* demangle.h (enum gnu_v3_ctor_kinds):
Added literal gnu_v3_unified_ctor.
(enum gnu_v3_ctor_kinds):
Added literal gnu_v3_unified_dtor.
 
2013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com>
Wei-Cheng Wang <cole945@gmail.com>
 
* dis-asm.h (print_insn_nds32): Add nds32 target.
 
2013-12-04 Richard Sandiford <rdsandiford@googlemail.com>
 
* longlong.h: New file.
 
2013-11-11 Catherine Moore <clm@codesourcery.com>
 
* opcode/mips.h (INSN_LOAD_MEMORY_DELAY): Rename to...
(INSN_LOAD_MEMORY): ...this.
 
2013-10-29 Marc Glisse <marc.glisse@inria.fr>
 
PR tree-optimization/58689
* ansidecl.h (ATTRIBUTE_RETURNS_NONNULL): New macro.
* libiberty.h (basename, lbasename, dos_lbasename, unix_lbasename,
concat_copy): Mark with attributes nonnull(1) and returns_nonnull.
(concat, reconcat, concat_copy2, choose_temp_base, xstrerror,
xmalloc, xrealloc, xcalloc, xstrdup, xstrndup, xmemdup, pex_init):
Mark with attribute returns_nonnull.
 
2013-10-22 Sterling Augustine <saugustine@google.com>
 
* gdb/gdb-index.h: Merge from gdb tree.
 
2013-10-10 Sean Keys <skeys@ipdatasys.com>
 
* xgate.h : Cleanup after opcode
table modification..
 
2013-08-20 Alan Modra <amodra@gmail.com>
 
* floatformat.h (floatformat_ibm_long_double): Delete.
2367,7 → 1955,7
 
For older changes see ChangeLog-9103
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/MAINTAINERS
1,6 → 1,6
See ../binutils/MAINTAINERS
 
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copyright (C) 2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/alloca-conf.h
1,4 → 1,4
/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
/* Copyright 2012 Free Software Foundation, Inc.
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/ansidecl.h
1,5 → 1,7
/* ANSI and traditional C compatability macros
Copyright (C) 1991-2015 Free Software Foundation, Inc.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
Free Software Foundation, Inc.
This file is part of the GNU C Library.
 
This program is free software; you can redistribute it and/or modify
22,17 → 24,94
 
Macro ANSI C definition Traditional C definition
----- ---- - ---------- ----------- - ----------
ANSI_PROTOTYPES 1 not defined
PTR `void *' `char *'
PTRCONST `void *const' `char *'
LONG_DOUBLE `long double' `double'
const not defined `'
volatile not defined `'
signed not defined `'
VA_START(ap, var) va_start(ap, var) va_start(ap)
 
Note that it is safe to write "void foo();" indicating a function
with no return value, in all K+R compilers we have been able to test.
 
For declaring functions with prototypes, we also provide these:
 
PARAMS ((prototype))
-- for functions which take a fixed number of arguments. Use this
when declaring the function. When defining the function, write a
K+R style argument list. For example:
 
char *strcpy PARAMS ((char *dest, char *source));
...
char *
strcpy (dest, source)
char *dest;
char *source;
{ ... }
 
 
VPARAMS ((prototype, ...))
-- for functions which take a variable number of arguments. Use
PARAMS to declare the function, VPARAMS to define it. For example:
 
int printf PARAMS ((const char *format, ...));
...
int
printf VPARAMS ((const char *format, ...))
{
...
}
 
For writing functions which take variable numbers of arguments, we
also provide the VA_OPEN, VA_CLOSE, and VA_FIXEDARG macros. These
hide the differences between K+R <varargs.h> and C89 <stdarg.h> more
thoroughly than the simple VA_START() macro mentioned above.
 
VA_OPEN and VA_CLOSE are used *instead of* va_start and va_end.
Immediately after VA_OPEN, put a sequence of VA_FIXEDARG calls
corresponding to the list of fixed arguments. Then use va_arg
normally to get the variable arguments, or pass your va_list object
around. You do not declare the va_list yourself; VA_OPEN does it
for you.
 
Here is a complete example:
 
int
printf VPARAMS ((const char *format, ...))
{
int result;
 
VA_OPEN (ap, format);
VA_FIXEDARG (ap, const char *, format);
 
result = vfprintf (stdout, format, ap);
VA_CLOSE (ap);
 
return result;
}
 
 
You can declare variables either before or after the VA_OPEN,
VA_FIXEDARG sequence. Also, VA_OPEN and VA_CLOSE are the beginning
and end of a block. They must appear at the same nesting level,
and any variables declared after VA_OPEN go out of scope at
VA_CLOSE. Unfortunately, with a K+R compiler, that includes the
argument list. You can have multiple instances of VA_OPEN/VA_CLOSE
pairs in a single function in case you need to traverse the
argument list more than once.
 
For ease of writing code which uses GCC extensions but needs to be
portable to other compilers, we provide the GCC_VERSION macro that
simplifies testing __GNUC__ and __GNUC_MINOR__ together, and various
wrappers around __attribute__. Also, __extension__ will be #defined
to nothing if it doesn't work. See below. */
to nothing if it doesn't work. See below.
 
This header also defines a lot of obsolete macros:
CONST, VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID,
AND, DOTS, NOARGS. Don't use them. */
 
#ifndef _ANSIDECL_H
#define _ANSIDECL_H 1
 
70,8 → 149,28
C++ compilers, does not define __STDC__, though it acts as if this
was so. (Verified versions: 5.7, 6.2, 6.3, 6.5) */
 
#define ANSI_PROTOTYPES 1
#define PTR void *
#define PTRCONST void *const
#define LONG_DOUBLE long double
 
/* PARAMS is often defined elsewhere (e.g. by libintl.h), so wrap it in
a #ifndef. */
#ifndef PARAMS
#define PARAMS(ARGS) ARGS
#endif
 
#define VPARAMS(ARGS) ARGS
#define VA_START(VA_LIST, VAR) va_start(VA_LIST, VAR)
 
/* variadic function helper macros */
/* "struct Qdmy" swallows the semicolon after VA_OPEN/VA_FIXEDARG's
use without inhibiting further decls and without declaring an
actual variable. */
#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP, VAR); { struct Qdmy
#define VA_CLOSE(AP) } va_end(AP); }
#define VA_FIXEDARG(AP, T, N) struct Qdmy
#undef const
#undef volatile
#undef signed
89,10 → 188,36
# endif
#endif
 
/* These are obsolete. Do not use. */
#ifndef IN_GCC
#define CONST const
#define VOLATILE volatile
#define SIGNED signed
 
#define PROTO(type, name, arglist) type name arglist
#define EXFUN(name, proto) name proto
#define DEFUN(name, arglist, args) name(args)
#define DEFUN_VOID(name) name(void)
#define AND ,
#define DOTS , ...
#define NOARGS void
#endif /* ! IN_GCC */
 
#else /* Not ANSI C. */
 
#undef ANSI_PROTOTYPES
#define PTR char *
#define PTRCONST PTR
#define LONG_DOUBLE double
 
#define PARAMS(args) ()
#define VPARAMS(args) (va_alist) va_dcl
#define VA_START(va_list, var) va_start(va_list)
 
#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP); { struct Qdmy
#define VA_CLOSE(AP) } va_end(AP); }
#define VA_FIXEDARG(AP, TYPE, NAME) TYPE NAME = va_arg(AP, TYPE)
 
/* some systems define these in header files for non-ansi mode */
#undef const
#undef volatile
103,6 → 228,20
#define signed
#define inline
 
#ifndef IN_GCC
#define CONST
#define VOLATILE
#define SIGNED
 
#define PROTO(type, name, arglist) type name ()
#define EXFUN(name, proto) name()
#define DEFUN(name, arglist, args) name arglist args;
#define DEFUN_VOID(name) name()
#define AND ;
#define DOTS
#define NOARGS
#endif /* ! IN_GCC */
 
#endif /* ANSI C. */
 
/* Define macros for some gcc attributes. This permits us to use the
172,15 → 311,6
# endif /* GNUC >= 3.3 */
#endif /* ATTRIBUTE_NONNULL */
 
/* Attribute `returns_nonnull' was valid as of gcc 4.9. */
#ifndef ATTRIBUTE_RETURNS_NONNULL
# if (GCC_VERSION >= 4009)
# define ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__))
# else
# define ATTRIBUTE_RETURNS_NONNULL
# endif /* GNUC >= 4.9 */
#endif /* ATTRIBUTE_RETURNS_NONNULL */
 
/* Attribute `pure' was valid as of gcc 3.0. */
#ifndef ATTRIBUTE_PURE
# if (GCC_VERSION >= 3000)
274,15 → 404,6
# endif /* GNUC >= 4.3 */
#endif /* ATTRIBUTE_HOT */
 
/* Attribute 'no_sanitize_undefined' was valid as of gcc 4.9. */
#ifndef ATTRIBUTE_NO_SANITIZE_UNDEFINED
# if (GCC_VERSION >= 4009)
# define ATTRIBUTE_NO_SANITIZE_UNDEFINED __attribute__ ((no_sanitize_undefined))
# else
# define ATTRIBUTE_NO_SANITIZE_UNDEFINED
# endif /* GNUC >= 4.9 */
#endif /* ATTRIBUTE_NO_SANITIZE_UNDEFINED */
 
/* We use __extension__ in some places to suppress -pedantic warnings
about GCC extensions. This feature didn't work properly before
gcc 2.8. */
313,15 → 434,6
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
 
/* This is used to mark a class or virtual function as final. */
#if __cplusplus >= 201103L
#define GCC_FINAL final
#elif GCC_VERSION >= 4007
#define GCC_FINAL __final
#else
#define GCC_FINAL
#endif
 
#ifdef __cplusplus
}
#endif
/contrib/toolchain/binutils/include/aout/ChangeLog
1,11 → 1,3
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2010-04-15 Nick Clifton <nickc@redhat.com>
 
* adobe.h: Update copyright notice to use GPLv3.
256,7 → 248,7
directory.
 
Copyright (C) 1991-2015 Free Software Foundation, Inc.
Copyright (C) 1991-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/aout/adobe.h
1,6 → 1,6
/* `a.out.adobe' differences from standard a.out files
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/aout64.h
1,6 → 1,6
/* `a.out' object-file definitions, including extensions to 64-bit fields
 
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2001, 2003, 2009, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/ar.h
1,6 → 1,6
/* archive file definition for GNU software
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2008, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/dynix3.h
1,6 → 1,6
/* a.out specifics for Sequent Symmetry running Dynix 3.x
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/encap.h
1,5 → 1,5
/* Yet Another Try at encapsulating bfd object files in coff.
Copyright (C) 1988-2015 Free Software Foundation, Inc.
Copyright 1988, 1989, 1991, 2010 Free Software Foundation, Inc.
Written by Pace Willisson 12/9/88
 
This file is obsolete. It needs to be converted to just define a bunch
/contrib/toolchain/binutils/include/aout/host.h
1,7 → 1,7
/* host.h - Parameters about the a.out format, based on the host system
on which the program is compiled.
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/hp.h
1,5 → 1,5
/* Special version of <a.out.h> for use under HP-UX.
Copyright (C) 1988-2015 Free Software Foundation, Inc.
Copyright 1988, 1991, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/hp300hpux.h
1,5 → 1,6
/* Special version of <a.out.h> for use under HP-UX.
Copyright (C) 1988-2015 Free Software Foundation, Inc.
Copyright 1988, 1993, 1995, 2001, 2009, 2010
Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/hppa.h
1,4 → 1,4
/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
/* Copyright 2012 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/ranlib.h
1,5 → 1,5
/* ranlib.h -- archive library index member definition for GNU.
Copyright (C) 1990-2015 Free Software Foundation, Inc.
Copyright 1990, 1991, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/reloc.h
1,5 → 1,5
/* reloc.h -- Header file for relocation information.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1990, 1991, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/stab.def
1,5 → 1,6
/* Table of DBX symbol codes for the GNU system.
Copyright (C) 1988-2015 Free Software Foundation, Inc.
Copyright 1988, 1991, 1992, 1993, 1994, 1996, 1998, 2004, 2010
Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
/contrib/toolchain/binutils/include/aout/stab_gnu.h
1,6 → 1,6
/* gnu_stab.h Definitions for GNU extensions to STABS
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/aout/sun4.h
1,6 → 1,6
/* SPARC-specific values for a.out files
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2009, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/bfdlink.h
1,5 → 1,7
/* bfdlink.h -- header file for BFD link routines
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Written by Steve Chamberlain and Ian Lance Taylor, Cygnus Support.
 
This file is part of BFD, the Binary File Descriptor library.
91,14 → 93,8
/* Type of this entry. */
ENUM_BITFIELD (bfd_link_hash_type) type : 8;
 
/* Symbol is referenced in a normal object file, as distict from a LTO
IR object file. */
unsigned int non_ir_ref : 1;
 
/* Symbol is a built-in define. These will be overridden by PROVIDE
in a linker script. */
unsigned int linker_def : 1;
 
/* A union of information depending upon the type. */
union
{
173,8 → 169,6
struct bfd_link_hash_entry *undefs;
/* Entries are added to the tail of the undefs list. */
struct bfd_link_hash_entry *undefs_tail;
/* Function to free the hash table on closing BFD. */
void (*hash_table_free) (bfd *);
/* The type of the link hash table. */
enum bfd_link_hash_table_type type;
};
194,12 → 188,6
(bfd *, struct bfd_link_info *, const char *, bfd_boolean,
bfd_boolean, bfd_boolean);
 
/* If H is a wrapped symbol, ie. the symbol name starts with "__wrap_"
and the remainder is found in wrap_hash, return the real symbol. */
 
extern struct bfd_link_hash_entry *unwrap_hash_lookup
(struct bfd_link_info *, bfd *, struct bfd_link_hash_entry *);
 
/* Traverse a link hash table. */
extern void bfd_link_hash_traverse
(struct bfd_link_hash_table *,
259,31 → 247,23
struct bfd_elf_dynamic_list;
struct bfd_elf_version_tree;
 
/* Types of output. */
 
enum output_type
{
type_pde,
type_pie,
type_relocatable,
type_dll,
};
 
#define bfd_link_pde(info) ((info)->type == type_pde)
#define bfd_link_dll(info) ((info)->type == type_dll)
#define bfd_link_relocatable(info) ((info)->type == type_relocatable)
#define bfd_link_pie(info) ((info)->type == type_pie)
#define bfd_link_executable(info) (bfd_link_pde (info) || bfd_link_pie (info))
#define bfd_link_pic(info) (bfd_link_dll (info) || bfd_link_pie (info))
 
/* This structure holds all the information needed to communicate
between BFD and the linker when doing a link. */
 
struct bfd_link_info
{
/* Output type. */
ENUM_BITFIELD (output_type) type : 2;
/* TRUE if BFD should generate a shared object (or a pie). */
unsigned int shared: 1;
 
/* TRUE if generating an executable, position independent or not. */
unsigned int executable : 1;
 
/* TRUE if generating a position independent executable. */
unsigned int pie: 1;
 
/* TRUE if BFD should generate a relocatable object file. */
unsigned int relocatable: 1;
 
/* TRUE if BFD should pre-bind symbols in a shared object. */
unsigned int symbolic: 1;
 
306,8 → 286,8
callback. */
unsigned int notice_all: 1;
 
/* TRUE if the LTO plugin is active. */
unsigned int lto_plugin_active: 1;
/* TRUE if we are loading LTO outputs. */
unsigned int loading_lto_outputs: 1;
 
/* TRUE if global symbols in discarded sections should be stripped. */
unsigned int strip_discarded: 1;
350,9 → 330,9
/* TRUE if PT_GNU_RELRO segment should be created. */
unsigned int relro: 1;
 
/* Nonzero if .eh_frame_hdr section and PT_GNU_EH_FRAME ELF segment
should be created. 1 for DWARF2 tables, 2 for compact tables. */
unsigned int eh_frame_hdr_type: 2;
/* TRUE if .eh_frame_hdr section and PT_GNU_EH_FRAME ELF segment
should be created. */
unsigned int eh_frame_hdr: 1;
 
/* TRUE if we should warn when adding a DT_TEXTREL to a shared object. */
unsigned int warn_shared_textrel: 1;
428,18 → 408,6
/* TRUE if the linker script contained an explicit PHDRS command. */
unsigned int user_phdrs: 1;
 
/* TRUE if BND prefix in PLT entries is always generated. */
unsigned int bndplt: 1;
 
/* TRUE if generation of .interp/PT_INTERP should be suppressed. */
unsigned int nointerp: 1;
 
/* TRUE if generate a 1-byte NOP as suffix for x86 call instruction. */
unsigned int call_nop_as_suffix : 1;
 
/* The 1-byte NOP for x86 call instruction. */
char call_nop_byte;
 
/* Char that may appear as the first char of a symbol, but should be
skipped (like symbol_leading_char) when looking up symbols in
wrap_hash. Used by PowerPC Linux for 'dot' symbols. */
448,9 → 416,6
/* Separator between archive and filename in linker script filespecs. */
char path_separator;
 
/* Compress DWARF debug sections. */
enum compressed_debug_section_type compress_debug;
 
/* Default stack size. Zero means default (often zero itself), -1
means explicitly zero-sized. */
bfd_signed_vma stacksize;
500,7 → 465,7
bfd *output_bfd;
 
/* The list of input BFD's involved in the link. These are chained
together via the link.next field. */
together via the link_next field. */
bfd *input_bfds;
bfd **input_bfds_tail;
 
537,11 → 502,6
relaxation returning true in *AGAIN. */
int relax_trip;
 
/* > 0 to treat protected data defined in the shared library as
reference external. 0 to treat it as internal. -1 to let
backend to decide. */
int extern_protected_data;
 
/* Non-zero if auto-import thunks for DATA items in pei386 DLLs
should be generated/linked against. Set to 1 if this feature
is explicitly requested by the user, -1 if enabled by default. */
671,14 → 631,15
(struct bfd_link_info *, const char *name,
bfd *abfd, asection *section, bfd_vma address);
/* A function which is called when a symbol in notice_hash is
defined or referenced. H is the symbol, INH the indirect symbol
if applicable. ABFD, SECTION and ADDRESS are the (new) value of
the symbol. If SECTION is bfd_und_section, this is a reference.
FLAGS are the symbol BSF_* flags. */
defined or referenced. H is the symbol. ABFD, SECTION and
ADDRESS are the (new) value of the symbol. If SECTION is
bfd_und_section, this is a reference. FLAGS are the symbol
BSF_* flags. STRING is the name of the symbol to indirect to if
the sym is indirect, or the warning string if a warning sym. */
bfd_boolean (*notice)
(struct bfd_link_info *, struct bfd_link_hash_entry *h,
struct bfd_link_hash_entry *inh,
bfd *abfd, asection *section, bfd_vma address, flagword flags);
bfd *abfd, asection *section, bfd_vma address, flagword flags,
const char *string);
/* Error or warning link info message. */
void (*einfo)
(const char *fmt, ...);
/contrib/toolchain/binutils/include/bout.h
2,7 → 2,7
GNU tools modified to support the i80960 (or tools that operate on
object files created by such tools).
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/cgen/ChangeLog
1,15 → 1,3
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2014-01-06 Tom Tromey <tromey@redhat.com>
 
* bitset.h: Remove uses of PARAMS.
 
2013-07-18 Andrew Neitsch <andrew@neitsch.ca>
 
PR binutils/15728
30,7 → 18,7
* bitset.h: New file. Moved here from ../opcode/cgen-bitset.h.
Update license to GPL v3.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/cgen/basic-modes.h
1,5 → 1,5
/* Basic CGEN modes.
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Copyright 2005, 2007, 2009 Free Software Foundation, Inc.
Contributed by Red Hat.
 
This file is part of the GNU opcodes library.
/contrib/toolchain/binutils/include/cgen/basic-ops.h
1,5 → 1,5
/* Basic semantics ops support for CGEN.
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Copyright 2005-2013 Free Software Foundation, Inc.
Contributed by Red Hat.
 
This file is part of the GNU opcodes library.
/contrib/toolchain/binutils/include/cgen/bitset.h
1,5 → 1,5
/* Header file the type CGEN_BITSET.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright 2002, 2005, 2009 Free Software Foundation, Inc.
 
This file is part of the GNU opcodes library.
 
38,16 → 38,16
char *bits;
} CGEN_BITSET;
 
extern CGEN_BITSET *cgen_bitset_create (unsigned);
extern void cgen_bitset_init (CGEN_BITSET *, unsigned);
extern void cgen_bitset_clear (CGEN_BITSET *);
extern void cgen_bitset_add (CGEN_BITSET *, unsigned);
extern void cgen_bitset_set (CGEN_BITSET *, unsigned);
extern int cgen_bitset_compare (CGEN_BITSET *, CGEN_BITSET *);
extern void cgen_bitset_union (CGEN_BITSET *, CGEN_BITSET *, CGEN_BITSET *);
extern int cgen_bitset_intersect_p (CGEN_BITSET *, CGEN_BITSET *);
extern int cgen_bitset_contains (CGEN_BITSET *, unsigned);
extern CGEN_BITSET *cgen_bitset_copy (CGEN_BITSET *);
extern CGEN_BITSET *cgen_bitset_create PARAMS ((unsigned));
extern void cgen_bitset_init PARAMS ((CGEN_BITSET *, unsigned));
extern void cgen_bitset_clear PARAMS ((CGEN_BITSET *));
extern void cgen_bitset_add PARAMS ((CGEN_BITSET *, unsigned));
extern void cgen_bitset_set PARAMS ((CGEN_BITSET *, unsigned));
extern int cgen_bitset_compare PARAMS ((CGEN_BITSET *, CGEN_BITSET *));
extern void cgen_bitset_union PARAMS ((CGEN_BITSET *, CGEN_BITSET *, CGEN_BITSET *));
extern int cgen_bitset_intersect_p PARAMS ((CGEN_BITSET *, CGEN_BITSET *));
extern int cgen_bitset_contains PARAMS ((CGEN_BITSET *, unsigned));
extern CGEN_BITSET *cgen_bitset_copy PARAMS ((CGEN_BITSET *));
 
#ifdef __cplusplus
} // extern "C"
/contrib/toolchain/binutils/include/coff/ChangeLog
1,49 → 1,3
2015-01-06 Alan Modra <amodra@gmail.com>
 
PR binutils/17754
* internal.h (internal_auxent): Increase size of x_fname field to
20 to allow for PE format's longer file names.
 
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-08-20 Daniel Micay <danielmicay@gmail.com>
 
* pe.h: Add HIGH_ENTROPY_VA flag
 
2014-04-22 Christian Svensson <blue@cmd.nu>
 
* or32.h: Delete.
 
2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
 
* pe.h (external_IMAGE_DEBUG_DIRECTORY, _CV_INFO_PDB70)
(_CV_INFO_PDB20): Add structures and constants for debug directory
and codeview records.
* internal.h (internal_IMAGE_DEBUG_DIRECTORY, CODEVIEW_INFO):
Add structures and constants for internal representation of debug
directory and codeview records.
 
2014-03-13 Tristan Gingold <gingold@adacore.com>
 
* pe.h (struct external_ANON_OBJECT_HEADER_BIGOBJ): Declare.
(FILHSZ_BIGOBJ): Define.
(struct external_SYMBOL_EX): Declare.
(SYMENT_BIGOBJ, SYMESZ_BIGOBJ): Define.
(union external_AUX_SYMBOL_EX): Declare.
(AUXENT_BIGOBJ, AUXESZ_BIGOBJ): Define.
* internal.h (struct internal_filehdr): Change type
of f_nscns.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2013-12-06 Tristan Gingold <gingold@adacore.com>
 
* pe.h (UWOP_EPILOG, UWOP_PARE): Define.
 
2013-07-10 Tristan Gingold <gingold@adacore.com>
 
* rs6000.h (external_core_dumpx): New structure.
405,7 → 359,7
 
For older changes see ChangeLog-9103
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/coff/alpha.h
1,7 → 1,7
/* ECOFF support on Alpha machines.
coff/ecoff.h must be included before this file.
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2005, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/apollo.h
1,6 → 1,6
/* coff information for Apollo M68K
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/arm.h
1,5 → 1,6
/* ARM COFF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2002, 2003, 2010, 2013
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/coff/aux-coff.h
1,6 → 1,6
/* Modifications of internal.h and m68k.h needed by A/UX
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/ecoff.h
2,7 → 2,7
This does not include symbol information, found in sym.h and
symconst.h.
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2002, 2003, 2004, 2005, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/external.h
1,6 → 1,6
/* external.h -- External COFF structures
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2006, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/go32exe.h
1,6 → 1,6
/* COFF information for PC running go32.
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2005, 2009, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/h8300.h
1,6 → 1,6
/* coff information for Renesas H8/300 and H8/300-H
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2003, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/h8500.h
1,6 → 1,6
/* coff information for Renesas H8/500
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2003, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/i386.h
1,6 → 1,6
/* coff information for Intel 386/486.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2009, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/i860.h
1,6 → 1,6
/* COFF information for the Intel i860.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2003, 2010, 2011 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/i960.h
1,6 → 1,6
/* coff information for 80960. Origins: Intel corp, natch.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/ia64.h
1,6 → 1,6
/* coff information for HP/Intel IA-64.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/internal.h
1,7 → 1,8
/* Internal format of COFF object file data structures, for GNU BFD.
This file is part of BFD, the Binary File Descriptor library.
 
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2001, 2002, 2003, 2004. 2005, 2006, 2007, 2009,
2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
73,7 → 74,7
 
/* Standard coff internal info. */
unsigned short f_magic; /* magic number */
unsigned int f_nscns; /* number of sections */
unsigned short f_nscns; /* number of sections */
long f_timdat; /* time & date stamp */
bfd_vma f_symptr; /* file pointer to symtab */
long f_nsyms; /* number of symtab entries */
132,44 → 133,6
/* DataDirectory[15] is currently reserved, so no define. */
#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES 16
 
/* Extra structure used in debug directory. */
struct internal_IMAGE_DEBUG_DIRECTORY
{
unsigned long Characteristics;
unsigned long TimeDateStamp;
unsigned short MajorVersion;
unsigned short MinorVersion;
unsigned long Type;
unsigned long SizeOfData;
unsigned long AddressOfRawData;
unsigned long PointerToRawData;
};
 
#define PE_IMAGE_DEBUG_TYPE_UNKNOWN 0
#define PE_IMAGE_DEBUG_TYPE_COFF 1
#define PE_IMAGE_DEBUG_TYPE_CODEVIEW 2
#define PE_IMAGE_DEBUG_TYPE_FPO 3
#define PE_IMAGE_DEBUG_TYPE_MISC 4
#define PE_IMAGE_DEBUG_TYPE_EXCEPTION 5
#define PE_IMAGE_DEBUG_TYPE_FIXUP 6
#define PE_IMAGE_DEBUG_TYPE_OMAP_TO_SRC 7
#define PE_IMAGE_DEBUG_TYPE_OMAP_FROM_SRC 8
#define PE_IMAGE_DEBUG_TYPE_BORLAND 9
#define PE_IMAGE_DEBUG_TYPE_RESERVED10 10
#define PE_IMAGE_DEBUG_TYPE_CLSID 11
 
/* Extra structure for a codeview debug record */
#define CV_INFO_SIGNATURE_LENGTH 16
 
typedef struct _CODEVIEW_INFO
{
unsigned long CVSignature;
char Signature[CV_INFO_SIGNATURE_LENGTH];
unsigned int SignatureLength;
unsigned long Age;
// char PdbFileName[];
} CODEVIEW_INFO;
 
/* Default image base for NT. */
#define NT_EXE_IMAGE_BASE 0x400000
#define NT_DLL_IMAGE_BASE 0x10000000
190,17 → 153,17
/* FIXME: The following entries are in AOUTHDR. But they aren't
available internally in bfd. We add them here so that objdump
can dump them. */
/* The state of the image file. */
/* The state of the image file */
short Magic;
/* Linker major version number. */
/* Linker major version number */
char MajorLinkerVersion;
/* Linker minor version number. */
/* Linker minor version number */
char MinorLinkerVersion;
/* Total size of all code sections. */
/* Total size of all code sections */
long SizeOfCode;
/* Total size of all initialized data sections. */
/* Total size of all initialized data sections */
long SizeOfInitializedData;
/* Total size of all uninitialized data sections. */
/* Total size of all uninitialized data sections */
long SizeOfUninitializedData;
/* Address of entry point relative to image base. */
bfd_vma AddressOfEntryPoint;
210,38 → 173,38
bfd_vma BaseOfData;
 
/* PE stuff */
bfd_vma ImageBase; /* Address of specific location in memory that
file is located, NT default 0x10000. */
bfd_vma ImageBase; /* address of specific location in memory that
file is located, NT default 0x10000 */
 
bfd_vma SectionAlignment; /* Section alignment default 0x1000. */
bfd_vma FileAlignment; /* File alignment default 0x200. */
short MajorOperatingSystemVersion; /* Minimum version of the operating. */
short MinorOperatingSystemVersion; /* System req'd for exe, default to 1. */
short MajorImageVersion; /* User defineable field to store version of */
short MinorImageVersion; /* exe or dll being created, default to 0. */
short MajorSubsystemVersion; /* Minimum subsystem version required to */
short MinorSubsystemVersion; /* run exe; default to 3.1. */
long Reserved1; /* Seems to be 0. */
long SizeOfImage; /* Size of memory to allocate for prog. */
long SizeOfHeaders; /* Size of PE header and section table. */
long CheckSum; /* Set to 0. */
bfd_vma SectionAlignment; /* section alignment default 0x1000 */
bfd_vma FileAlignment; /* file alignment default 0x200 */
short MajorOperatingSystemVersion; /* minimum version of the operating */
short MinorOperatingSystemVersion; /* system req'd for exe, default to 1*/
short MajorImageVersion; /* user defineable field to store version of */
short MinorImageVersion; /* exe or dll being created, default to 0 */
short MajorSubsystemVersion; /* minimum subsystem version required to */
short MinorSubsystemVersion; /* run exe; default to 3.1 */
long Reserved1; /* seems to be 0 */
long SizeOfImage; /* size of memory to allocate for prog */
long SizeOfHeaders; /* size of PE header and section table */
long CheckSum; /* set to 0 */
short Subsystem;
 
/* Type of subsystem exe uses for user interface,
/* type of subsystem exe uses for user interface,
possible values:
1 - NATIVE Doesn't require a subsystem
2 - WINDOWS_GUI runs in Windows GUI subsystem
3 - WINDOWS_CUI runs in Windows char sub. (console app)
5 - OS2_CUI runs in OS/2 character subsystem
7 - POSIX_CUI runs in Posix character subsystem. */
unsigned short DllCharacteristics; /* flags for DLL init. */
bfd_vma SizeOfStackReserve; /* Amount of memory to reserve. */
bfd_vma SizeOfStackCommit; /* Amount of memory initially committed for
initial thread's stack, default is 0x1000. */
bfd_vma SizeOfHeapReserve; /* Amount of virtual memory to reserve and */
bfd_vma SizeOfHeapCommit; /* commit, don't know what to defaut it to. */
long LoaderFlags; /* Can probably set to 0. */
long NumberOfRvaAndSizes; /* Number of entries in next entry, 16. */
7 - POSIX_CUI runs in Posix character subsystem */
unsigned short DllCharacteristics; /* flags for DLL init */
bfd_vma SizeOfStackReserve; /* amount of memory to reserve */
bfd_vma SizeOfStackCommit; /* amount of memory initially committed for
initial thread's stack, default is 0x1000 */
bfd_vma SizeOfHeapReserve; /* amount of virtual memory to reserve and */
bfd_vma SizeOfHeapCommit; /* commit, don't know what to defaut it to */
long LoaderFlags; /* can probably set to 0 */
long NumberOfRvaAndSizes; /* number of entries in next entry, 16 */
IMAGE_DATA_DIRECTORY DataDirectory[IMAGE_NUMBEROF_DIRECTORY_ENTRIES];
};
 
588,11 → 551,7
 
union
{
/* PR 17754: We use to FILNMLEN for the size of the x_fname
array, but that cause problems as PE targets use a larger
value. We cannot use their definition of EFILNMLEN as this
header can be used without including any PE headers. */
char x_fname[20];
char x_fname[FILNMLEN];
struct
{
long x_zeroes;
/contrib/toolchain/binutils/include/coff/m68k.h
1,6 → 1,6
/* coff information for M68K
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/m88k.h
1,6 → 1,6
/* coff information for 88k bcs
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/mcore.h
1,5 → 1,5
/* Motorola MCore support for BFD.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/coff/mips.h
1,7 → 1,7
/* ECOFF support on MIPS machines.
coff/ecoff.h must be included before this file.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2004, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/mipspe.h
1,6 → 1,6
/* coff information for Windows CE with MIPS VR4111
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/pe.h
1,6 → 1,7
/* pe.h - PE COFF header information
 
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2009, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
40,7 → 41,6
 
/* DllCharacteristics flag bits. The inconsistent naming may seem
odd, but that is how they are defined in the PE specification. */
#define IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA 0x0020
#define IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE 0x0040
#define IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY 0x0080
#define IMAGE_DLL_CHARACTERISTICS_NX_COMPAT 0x0100
102,7 → 102,7
#define IMAGE_SCN_ALIGN_4096BYTES IMAGE_SCN_ALIGN_POWER_CONST (12)
#define IMAGE_SCN_ALIGN_8192BYTES IMAGE_SCN_ALIGN_POWER_CONST (13)
 
/* Encode alignment power into IMAGE_SCN_ALIGN bits of s_flags. */
/* Encode alignment power into IMAGE_SCN_ALIGN bits of s_flags */
#define COFF_ENCODE_ALIGNMENT(SECTION, ALIGNMENT_POWER) \
((SECTION).s_flags |= IMAGE_SCN_ALIGN_POWER_CONST ((ALIGNMENT_POWER)))
 
201,7 → 201,7
 
struct external_PEI_IMAGE_hdr
{
char nt_signature[4]; /* Required NT signature, 0x4550. */
char nt_signature[4]; /* required NT signature, 0x4550. */
 
/* From standard header. */
char f_magic[2]; /* Magic number. */
240,7 → 240,7
/* Note: additional bytes may be inserted before the signature. Use
the e_lfanew field to find the actual location of the NT signature. */
 
char nt_signature[4]; /* Required NT signature, 0x4550. */
char nt_signature[4]; /* required NT signature, 0x4550. */
 
/* From standard header. */
char f_magic[2]; /* Magic number. */
359,85 → 359,6
#define IMAGE_WEAK_EXTERN_SEARCH_LIBRARY 2
#define IMAGE_WEAK_EXTERN_SEARCH_ALIAS 3
 
/* Bigobj header. */
struct external_ANON_OBJECT_HEADER_BIGOBJ
{
/* ANON_OBJECT_HEADER_V2 header. */
char Sig1[2];
char Sig2[2];
char Version[2];
char Machine[2];
char TimeDateStamp[4];
char ClassID[16];
char SizeOfData[4];
char Flags[4];
char MetaDataSize[4];
char MetaDataOffset[4];
 
/* BIGOBJ specific. */
char NumberOfSections[4];
char PointerToSymbolTable[4];
char NumberOfSymbols[4];
};
 
#define FILHSZ_BIGOBJ (14 * 4)
 
struct external_SYMBOL_EX
{
union
{
char e_name[E_SYMNMLEN];
 
struct
{
char e_zeroes[4];
char e_offset[4];
} e;
} e;
 
char e_value[4];
char e_scnum[4];
char e_type[2];
char e_sclass[1];
char e_numaux[1];
} ATTRIBUTE_PACKED ;
 
#define SYMENT_BIGOBJ struct external_SYMBOL_EX
#define SYMESZ_BIGOBJ 20
 
#define FILNMLEN_BIGOBJ 20
 
union external_AUX_SYMBOL_EX
{
struct
{
char WeakDefaultSymIndex[4];
char WeakSearchType[4];
char rgbReserved[12];
} Sym;
 
struct
{
char Name[FILNMLEN_BIGOBJ];
} File;
 
struct
{
char Length[4]; /* Section length. */
char NumberOfRelocations[2];/* # relocation entries. */
char NumberOfLinenumbers[2];/* # line numbers. */
char Checksum[4]; /* Section COMDAT checksum. */
char Number[2]; /* COMDAT associated section index. */
char Selection[1]; /* COMDAT selection number. */
char bReserved[1];
char HighNumber[2]; /* High bits of COMDAT associated sec. */
char rgbReserved[2];
} Section;
} ATTRIBUTE_PACKED;
 
#define AUXENT_BIGOBJ union external_AUX_SYMBOL_EX
#define AUXESZ_BIGOBJ 20
 
/* .pdata/.xdata defines and structures for x64 PE+ for exception handling. */
 
/* .pdata in exception directory. */
447,6 → 368,7
bfd_vma rva_BeginAddress;
bfd_vma rva_EndAddress;
bfd_vma rva_UnwindData;
unsigned int isChained : 1;
};
 
struct external_pex64_runtime_function
471,10 → 393,8
#define UWOP_SET_FPREG 3
#define UWOP_SAVE_NONVOL 4
#define UWOP_SAVE_NONVOL_FAR 5
#define UWOP_SAVE_XMM 6 /* For version 1. */
#define UWOP_EPILOG 6 /* For version 2. */
#define UWOP_SAVE_XMM_FAR 7 /* For version 1 (deprecated). */
#define UWOP_SPARE 7 /* For version 2. */
#define UWOP_SAVE_XMM 6
#define UWOP_SAVE_XMM_FAR 7
#define UWOP_SAVE_XMM128 8
#define UWOP_SAVE_XMM128_FAR 9
#define UWOP_PUSH_MACHFRAME 10
521,10 → 441,14
bfd_vma FrameOffset;
bfd_vma sizeofUnwindCodes;
bfd_byte *rawUnwindCodes;
bfd_vma rva_ExceptionHandler; /* UNW_EHANDLER or UNW_FLAG_UHANDLER. */
bfd_vma rva_BeginAddress; /* UNW_FLAG_CHAININFO. */
bfd_vma rva_EndAddress; /* UNW_FLAG_CHAININFO. */
bfd_vma rva_UnwindData; /* UNW_FLAG_CHAININFO. */
/* Valid for UNW_FLAG_EHANDLER and UNW_FLAG_UHANDLER. */
bfd_vma CountOfScopes;
bfd_byte *rawScopeEntries;
bfd_vma rva_ExceptionHandler; /* UNW_EHANDLER. */
bfd_vma rva_TerminationHandler; /* UNW_FLAG_UHANDLER. */
bfd_vma rva_FrameHandler; /* UNW_FLAG_FHANDLER. */
bfd_vma FrameHandlerArgument; /* UNW_FLAG_FHANDLER. */
bfd_vma rva_FunctionEntry; /* UNW_FLAG_CHAININFO. */
};
 
struct external_pex64_unwind_info
585,42 → 509,4
(PEX64_OFFSET_TO_SCOPE_COUNT(COUNTOFUNWINDCODES) + \
PEX64_SCOPE_ENTRY_SIZE * (IDX))
 
/* Extra structure used in debug directory. */
struct external_IMAGE_DEBUG_DIRECTORY
{
char Characteristics[4];
char TimeDateStamp[4];
char MajorVersion[2];
char MinorVersion[2];
char Type[4];
char SizeOfData[4];
char AddressOfRawData[4];
char PointerToRawData[4];
};
 
/* Extra structures used in codeview debug record. */
/* This is not part of the PE specification. */
 
#define CVINFO_PDB70_CVSIGNATURE 0x53445352 // "RSDS"
#define CVINFO_PDB20_CVSIGNATURE 0x3031424e // "NB10"
#define CVINFO_CV50_CVSIGNATURE 0x3131424e // "NB11"
#define CVINFO_CV41_CVSIGNATURE 0x3930424e // âNB09"
 
typedef struct _CV_INFO_PDB70
{
char CvSignature[4];
char Signature[16];
char Age[4];
char PdbFileName[];
} CV_INFO_PDB70;
 
typedef struct _CV_INFO_PDB20
{
char CvHeader[4];
char Offset[4];
char Signature[4];
char Age[4];
char PdbFileName[];
} CV_INFO_PDB20;
 
#endif /* _PE_H */
/contrib/toolchain/binutils/include/coff/powerpc.h
1,7 → 1,7
/* Basic coff information for the PowerPC
Based on coff/rs6000.h, coff/i386.h and others.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/rs6000.h
1,5 → 1,5
/* IBM RS/6000 "XCOFF" file definitions for BFD.
Copyright (C) 1990-2015 Free Software Foundation, Inc.
Copyright (C) 1990, 1991, 2001, 2010 Free Software Foundation, Inc.
Written by Mimi Phuong-Thao Vo of IBM
and John Gilmore of Cygnus Support.
 
/contrib/toolchain/binutils/include/coff/rs6k64.h
1,5 → 1,5
/* IBM RS/6000 "XCOFF64" file definitions for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/sh.h
1,6 → 1,6
/* coff information for Renesas SH
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2003, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/sparc.h
1,6 → 1,6
/* coff information for Sparc.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/ti.h
2,7 → 2,8
customized in a target-specific file, and then this file included (see
tic54x.h for an example).
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2001, 2002, 2003, 2005, 2008, 2009, 2010
Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/tic30.h
1,6 → 1,6
/* coff information for Texas Instruments TMS320C3X
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/tic4x.h
1,7 → 1,7
/* TI COFF information for Texas Instruments TMS320C4X/C3X.
This file customizes the settings in coff/ti.h.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright 2002, 2003, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/tic54x.h
1,7 → 1,7
/* TI COFF information for Texas Instruments TMS320C54X.
This file customizes the settings in coff/ti.h.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/tic80.h
1,6 → 1,6
/* coff information for TI TMS320C80 (MVP)
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/w65.h
1,6 → 1,6
/* coff information for WDC 65816
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/we32k.h
1,6 → 1,6
/* coff information for we32k
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/coff/x86_64.h
1,5 → 1,5
/* COFF information for AMD 64.
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2009, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/coff/xcoff.h
1,6 → 1,7
/* Internal format of XCOFF object file data structures for BFD.
 
Copyright (C) 1995-2015 Free Software Foundation, Inc.
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
2009, 2010 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>, Cygnus Support.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/coff/z80.h
1,5 → 1,5
/* coff information for Zilog Z80
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Copyright 2005, 2010 Free Software Foundation, Inc.
Contributed by Arnold Metselaar <arnold_m@operamail.com>
 
This program is free software; you can redistribute it and/or modify
/contrib/toolchain/binutils/include/coff/z8k.h
1,6 → 1,6
/* coff information for Zilog Z800N
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/demangle.h
1,5 → 1,6
/* Defs for interface to demanglers.
Copyright (C) 1992-2015 Free Software Foundation, Inc.
Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002,
2003, 2004, 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License
62,10 → 63,9
#define DMGL_EDG (1 << 13)
#define DMGL_GNU_V3 (1 << 14)
#define DMGL_GNAT (1 << 15)
#define DMGL_DLANG (1 << 16)
 
/* If none of these are set, use 'current_demangling_style' as the default. */
#define DMGL_STYLE_MASK (DMGL_AUTO|DMGL_GNU|DMGL_LUCID|DMGL_ARM|DMGL_HP|DMGL_EDG|DMGL_GNU_V3|DMGL_JAVA|DMGL_GNAT|DMGL_DLANG)
#define DMGL_STYLE_MASK (DMGL_AUTO|DMGL_GNU|DMGL_LUCID|DMGL_ARM|DMGL_HP|DMGL_EDG|DMGL_GNU_V3|DMGL_JAVA|DMGL_GNAT)
 
/* Enumeration of possible demangling styles.
 
87,8 → 87,7
edg_demangling = DMGL_EDG,
gnu_v3_demangling = DMGL_GNU_V3,
java_demangling = DMGL_JAVA,
gnat_demangling = DMGL_GNAT,
dlang_demangling = DMGL_DLANG
gnat_demangling = DMGL_GNAT
} current_demangling_style;
 
/* Define string names for the various demangling styles. */
103,7 → 102,6
#define GNU_V3_DEMANGLING_STYLE_STRING "gnu-v3"
#define JAVA_DEMANGLING_STYLE_STRING "java"
#define GNAT_DEMANGLING_STYLE_STRING "gnat"
#define DLANG_DEMANGLING_STYLE_STRING "dlang"
 
/* Some macros to test what demangling style is active. */
 
117,7 → 115,6
#define GNU_V3_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_GNU_V3)
#define JAVA_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_JAVA)
#define GNAT_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_GNAT)
#define DLANG_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_DLANG)
 
/* Provide information about the available demangle styles. This code is
pulled from gdb into libiberty because it is useful to binutils also. */
172,17 → 169,10
char *
ada_demangle (const char *mangled, int options);
 
extern char *
dlang_demangle (const char *mangled, int options);
 
enum gnu_v3_ctor_kinds {
gnu_v3_complete_object_ctor = 1,
gnu_v3_base_object_ctor,
gnu_v3_complete_object_allocating_ctor,
/* These are not part of the V3 ABI. Unified constructors are generated
as a speed-for-space optimization when the -fdeclone-ctor-dtor option
is used, and are always internal symbols. */
gnu_v3_unified_ctor,
gnu_v3_object_ctor_group
};
 
198,10 → 188,6
gnu_v3_deleting_dtor = 1,
gnu_v3_complete_object_dtor,
gnu_v3_base_object_dtor,
/* These are not part of the V3 ABI. Unified destructors are generated
as a speed-for-space optimization when the -fdeclone-ctor-dtor option
is used, and are always internal symbols. */
gnu_v3_unified_dtor,
gnu_v3_object_dtor_group
};
 
/contrib/toolchain/binutils/include/dis-asm.h
1,6 → 1,7
/* Interface between the opcode library and its callers.
 
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010,
2011, 2012 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
212,14 → 213,6
/* Command line options specific to the target disassembler. */
char * disassembler_options;
 
/* If non-zero then try not disassemble beyond this address, even if
there are values left in the buffer. This address is the address
of the nearest symbol forwards from the start of the disassembly,
and it is assumed that it lies on the boundary between instructions.
If an instruction spans this address then this is an error in the
file being disassembled. */
bfd_vma stop_vma;
 
} disassemble_info;
 
234,6 → 227,7
extern int print_insn_big_arm (bfd_vma, disassemble_info *);
extern int print_insn_big_mips (bfd_vma, disassemble_info *);
extern int print_insn_big_nios2 (bfd_vma, disassemble_info *);
extern int print_insn_big_or32 (bfd_vma, disassemble_info *);
extern int print_insn_big_powerpc (bfd_vma, disassemble_info *);
extern int print_insn_big_score (bfd_vma, disassemble_info *);
extern int print_insn_cr16 (bfd_vma, disassemble_info *);
244,7 → 238,6
extern int print_insn_epiphany (bfd_vma, disassemble_info *);
extern int print_insn_fr30 (bfd_vma, disassemble_info *);
extern int print_insn_frv (bfd_vma, disassemble_info *);
extern int print_insn_ft32 (bfd_vma, disassemble_info *);
extern int print_insn_h8300 (bfd_vma, disassemble_info *);
extern int print_insn_h8300h (bfd_vma, disassemble_info *);
extern int print_insn_h8300s (bfd_vma, disassemble_info *);
262,6 → 255,7
extern int print_insn_little_arm (bfd_vma, disassemble_info *);
extern int print_insn_little_mips (bfd_vma, disassemble_info *);
extern int print_insn_little_nios2 (bfd_vma, disassemble_info *);
extern int print_insn_little_or32 (bfd_vma, disassemble_info *);
extern int print_insn_little_powerpc (bfd_vma, disassemble_info *);
extern int print_insn_little_score (bfd_vma, disassemble_info *);
extern int print_insn_lm32 (bfd_vma, disassemble_info *);
283,9 → 277,8
extern int print_insn_moxie (bfd_vma, disassemble_info *);
extern int print_insn_msp430 (bfd_vma, disassemble_info *);
extern int print_insn_mt (bfd_vma, disassemble_info *);
extern int print_insn_nds32 (bfd_vma, disassemble_info *);
extern int print_insn_ns32k (bfd_vma, disassemble_info *);
extern int print_insn_or1k (bfd_vma, disassemble_info *);
extern int print_insn_openrisc (bfd_vma, disassemble_info *);
extern int print_insn_pdp11 (bfd_vma, disassemble_info *);
extern int print_insn_pj (bfd_vma, disassemble_info *);
extern int print_insn_rs6000 (bfd_vma, disassemble_info *);
304,7 → 297,6
extern int print_insn_tilepro (bfd_vma, disassemble_info *);
extern int print_insn_v850 (bfd_vma, disassemble_info *);
extern int print_insn_vax (bfd_vma, disassemble_info *);
extern int print_insn_visium (bfd_vma, disassemble_info *);
extern int print_insn_w65 (bfd_vma, disassemble_info *);
extern int print_insn_xc16x (bfd_vma, disassemble_info *);
extern int print_insn_xgate (bfd_vma, disassemble_info *);
315,13 → 307,9
extern int print_insn_z8002 (bfd_vma, disassemble_info *);
extern int print_insn_rx (bfd_vma, disassemble_info *);
extern int print_insn_rl78 (bfd_vma, disassemble_info *);
extern int print_insn_rl78_g10 (bfd_vma, disassemble_info *);
extern int print_insn_rl78_g13 (bfd_vma, disassemble_info *);
extern int print_insn_rl78_g14 (bfd_vma, disassemble_info *);
 
extern disassembler_ftype arc_get_disassembler (bfd *);
extern disassembler_ftype arc_get_disassembler (void *);
extern disassembler_ftype cris_get_disassembler (bfd *);
extern disassembler_ftype rl78_get_disassembler (bfd *);
 
extern void print_aarch64_disassembler_options (FILE *);
extern void print_i386_disassembler_options (FILE *);
/contrib/toolchain/binutils/include/dwarf2.def
1,7 → 1,9
/* -*- c -*-
Declarations and definitions of codes relating to the DWARF2 and
DWARF3 symbolic debugging information formats.
Copyright (C) 1992-2015 Free Software Foundation, Inc.
Copyright (C) 1992, 1993, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
 
Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
Office (AJPO), Florida State University and Silicon Graphics Inc.
131,8 → 133,6
DW_TAG (DW_TAG_type_unit, 0x41)
DW_TAG (DW_TAG_rvalue_reference_type, 0x42)
DW_TAG (DW_TAG_template_alias, 0x43)
/* DWARF 5. */
DW_TAG (DW_TAG_atomic_type, 0x47)
 
DW_TAG_DUP (DW_TAG_lo_user, 0x4080)
DW_TAG_DUP (DW_TAG_hi_user, 0xffff)
308,8 → 308,6
DW_AT (DW_AT_const_expr, 0x6c)
DW_AT (DW_AT_enum_class, 0x6d)
DW_AT (DW_AT_linkage_name, 0x6e)
/* DWARF 5. */
DW_AT (DW_AT_noreturn, 0x87)
 
DW_AT_DUP (DW_AT_lo_user, 0x2000) /* Implementation-defined range start. */
DW_AT_DUP (DW_AT_hi_user, 0x3fff) /* Implementation-defined range end. */
385,8 → 383,6
DW_AT (DW_AT_GNU_all_source_call_sites, 0x2118)
/* Section offset into .debug_macro section. */
DW_AT (DW_AT_GNU_macros, 0x2119)
/* Attribute for C++ deleted special member functions (= delete;). */
DW_AT (DW_AT_GNU_deleted, 0x211a)
/* Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFission. */
DW_AT (DW_AT_GNU_dwo_name, 0x2130)
DW_AT (DW_AT_GNU_dwo_id, 0x2131)
404,13 → 400,6
See http://gcc.gnu.org/wiki/DW_AT_GNAT_descriptive_type . */
DW_AT (DW_AT_use_GNAT_descriptive_type, 0x2301)
DW_AT (DW_AT_GNAT_descriptive_type, 0x2302)
/* Rational constant extension.
See https://gcc.gnu.org/wiki/DW_AT_GNU_numerator_denominator . */
DW_TAG (DW_AT_GNU_numerator, 0x2303)
DW_TAG (DW_AT_GNU_denominator, 0x2304)
/* Biased integer extension.
See https://gcc.gnu.org/wiki/DW_AT_GNU_bias . */
DW_TAG (DW_AT_GNU_bias, 0x2305)
/* UPC extension. */
DW_AT (DW_AT_upc_threads_scaled, 0x3210)
/* PGI (STMicroelectronics) extensions. */
417,20 → 406,6
DW_AT (DW_AT_PGI_lbase, 0x3a00)
DW_AT (DW_AT_PGI_soffset, 0x3a01)
DW_AT (DW_AT_PGI_lstride, 0x3a02)
/* Apple extensions. */
DW_AT (DW_AT_APPLE_optimized, 0x3fe1)
DW_AT (DW_AT_APPLE_flags, 0x3fe2)
DW_AT (DW_AT_APPLE_isa, 0x3fe3)
DW_AT (DW_AT_APPLE_block, 0x3fe4)
DW_AT (DW_AT_APPLE_major_runtime_vers, 0x3fe5)
DW_AT (DW_AT_APPLE_runtime_class, 0x3fe6)
DW_AT (DW_AT_APPLE_omit_frame_ptr, 0x3fe7)
DW_AT (DW_AT_APPLE_property_name, 0x3fe8)
DW_AT (DW_AT_APPLE_property_getter, 0x3fe9)
DW_AT (DW_AT_APPLE_property_setter, 0x3fea)
DW_AT (DW_AT_APPLE_property_attribute, 0x3feb)
DW_AT (DW_AT_APPLE_objc_complete_type, 0x3fec)
DW_AT (DW_AT_APPLE_property, 0x3fed)
DW_END_AT
 
DW_FIRST_OP (DW_OP_addr, 0x03)
/contrib/toolchain/binutils/include/dwarf2.h
1,6 → 1,8
/* Declarations and definitions of codes relating to the DWARF2 and
DWARF3 symbolic debugging information formats.
Copyright (C) 1992-2015 Free Software Foundation, Inc.
Copyright (C) 1992, 1993, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
 
Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
Office (AJPO), Florida State University and Silicon Graphics Inc.
307,12 → 309,6
/* DWARF 5. */
DW_LANG_Go = 0x0016,
 
DW_LANG_C_plus_plus_11 = 0x001a, /* dwarf5.20141029.pdf DRAFT */
DW_LANG_C11 = 0x001d,
DW_LANG_C_plus_plus_14 = 0x0021,
DW_LANG_Fortran03 = 0x0022,
DW_LANG_Fortran08 = 0x0023,
 
DW_LANG_lo_user = 0x8000, /* Implementation-defined range start. */
DW_LANG_hi_user = 0xffff, /* Implementation-defined range start. */
 
/contrib/toolchain/binutils/include/dyn-string.h
1,5 → 1,6
/* An abstract string datatype.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005, 2009
Free Software Foundation, Inc.
Contributed by Mark Mitchell (mark@markmitchell.com).
 
This file is part of GCC.
/contrib/toolchain/binutils/include/elf/arc-reloc.def
File deleted
/contrib/toolchain/binutils/include/elf/ft32.h
File deleted
/contrib/toolchain/binutils/include/elf/or1k.h
File deleted
/contrib/toolchain/binutils/include/elf/visium.h
File deleted
/contrib/toolchain/binutils/include/elf/nds32.h
File deleted
/contrib/toolchain/binutils/include/elf/ChangeLog
1,305 → 1,11
2015-12-10 Alan Modra <amodra@gmail.com>
 
Apply from master.
2015-12-07 Alan Modra <amodra@gmail.com>
* ppc64.h (R_PPC64_ENTRY): Define.
 
2015-11-11 Alan Modra <amodra@gmail.com>
Peter Bergner <bergner@vnet.ibm.com>
 
* ppc.h (R_PPC_REL16DX_HA): New reloction.
* ppc64.h (R_PPC64_REL16DX_HA): Likewise.
 
2015-10-28 Cupertino Miranda <cmiranda@synopsys.com>
 
* arc-reloc.def (ARC_32_PCREL): New definition.
(ARC_TLS_DTPOFF): Arrange it in order.
 
2015-10-27 Stephen Fisher <sfisher@panix.com>
 
* common.h (NT_NETBSD_MARCH): Define.
 
2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
 
* x86-64.h (R_X86_64_GOTPCRELX): New.
(R_X86_64_REX_GOTPCRELX): Likewise.
 
2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
 
* i386.h (R_386_GOT32X): New relocation.
 
2015-10-07 Cupertino Miranda <cmiranda@synopsys.com>
 
* arc-reloc.def: Macro file with definition of all relocation
types.
* arc.h: Changed macros for the newly supported ARC cpus. Altered
enum defining the supported relocations.
* common.h: Changed EM_ARC_A5 definition to EM_ARC_COMPACT. Added
macro for EM_ARC_COMPACT2.
 
2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
 
* common.h (DF_1_STUB, DF_1_PIE): Define.
 
2015-09-21 H.J. Lu <hongjiu.lu@intel.com>
 
* external.h (Elf64_External_Chdr): Change ch_type to 4 bytes
and add ch_reserved.
 
2015-08-11 Jiong Wang <jiong.wang@arm.com>
 
* aarch64.h (R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12): Define.
 
2015-08-11 Jiong Wang <jiong.wang@arm.com>
 
* aarch64.h (R_AARCH64_P32_TLSLD_ADD_LO12_NC): Define.
 
2015-08-11 Jiong Wang <jiong.wang@arm.com>
 
* aarch64.h (R_AARCH64_P32_TLSLD_ADR_PAGE21): Define.
 
2015-07-01 Sandra Loosemore <sandra@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
 
* nios2.h (R_NIOS2_R2_S12): New.
(R_NIOS2_R2_I10_1_PCREL): New.
(R_NIOS2_R2_T1I7_1_PCREL): New.
(R_NIOS2_R2_T1I7_2): New.
(R_NIOS2_R2_T2I4): New.
(R_NIOS2_R2_T2I4_1): New.
(R_NIOS2_R2_T2I4_2): New.
(R_NIOS2_R2_X1I7_2): New.
(R_NIOS2_R2_X2L5): New.
(R_NIOS2_R2_F1I5_2): New.
(R_NIOS2_R2_L5I4X1): New.
(R_NIOS2_R2_T1X1I6): New.
(R_NIOS2_R2_T1X1I6_2): New.
(R_NIOS2_ILLEGAL): Renumber.
 
2015-07-01 Sandra Loosemore <sandra@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
 
* nios2.h (EF_NIOS2_ARCH_R1, EF_NIOS2_ARCH_R2): Define.
 
2015-05-29 Roland McGrath <mcgrathr@google.com>
 
* common.h (GNU_ABI_TAG_SYLLABLE): New macro.
(GNU_ABI_TAG_NACL): New macro.
 
2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
 
* common.h (EM_486): Renamed to ...
(EM_IAMCU): This.
 
2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
 
* s390.h: Define Tag_GNU_S390_ABI_Vector.
 
2015-04-24 Alan Modra <amodra@gmail.com>
 
* internal.h (ELF_SECTION_IN_SEGMENT_1): Ensure PT_LOAD and
similar segments only contain alloc sections.
 
2015-04-24 H.J. Lu <hongjiu.lu@intel.com>
 
PR binutils/18316
* mep.h (SEC_MEP_VLIW): Removed.
 
2015-04-09 Nick Clifton <nickc@redhat.com>
 
* rx.h (E_FLAG_RX_SINSNS_SET): New bit in e_flags field.
(E_FLAG_RX_SINSNS_YES): Likewise.
(E_FLAG_RX_SINSNS_MASK): New define.
 
2015-04-03 H.J. Lu <hongjiu.lu@intel.com>
 
* external.h (Elf32_External_Chdr): New.
(Elf64_External_Chdr): Likewise.
* internal.h (Elf_Internal_Chdr): Likewise.
 
2015-03-26 H.J. Lu <hongjiu.lu@intel.com>
 
* common.h (ELFOSABI_CLOUDABI): New.
(SHF_COMPRESSED): Likewise.
(ELFCOMPRESS_ZLIB): Likewise.
(ELFCOMPRESS_LOOS): Likewise.
(ELFCOMPRESS_HIOS): Likewise.
(ELFCOMPRESS_LOPROC): Likewise.
(ELFCOMPRESS_HIPROC): Likewise.
 
2015-03-19 Nick Clifton <nickc@redhat.com>
 
* rl78.h (E_FLAG_RL78_G10): Redefine.
(E_FLAG_RL78_CPU_MASK, E_FLAG_RL78_ANY_CPU, E_FLAG_RL78_G13
E_FLAG_RL78_G14): New flags.
 
2015-02-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
 
* aarch64.h (R_AARCH64_P32_TLSGD_ADR_PREL21): Add.
 
2015-02-24 Nick Clifton <nickc@redhat.com>
 
* v850.h (EF_RH850_SIMD): Delete deprecated flag.
(EF_RH850_CACHE): Likewise.
(EF_RH850_MMU): Likewise.
(EF_RH850_DATA_ALIGN8): Likewise.
(SHT_RENESAS_IOP): Fix typo in name.
(SHT_RENESAS_INFO): Define.
(V850_NOTE_SECNAME): Define.
(SIZEOF_V850_NOTE): Define.
(V850_NOTE_NAME): Define.
(enum v850_notes): New enum.
(NUM_V850_NOTES): Define.
 
2015-02-23 Nick Clifton <nickc@redhat.com>
 
PR 17915
* score.h: Fix typo in license header.
 
2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
 
* common.h (NT_S390_VXRS_LOW): New macro.
(NT_S390_VXRS_HIGH): Likewise.
 
2015-01-28 James Bowman <james.bowman@ftdichip.com>
 
* common.h (EM_FT32): Define.
* ft32.h: New file.
 
2015-01-09 Anthony Green <green@moxielogic.com>
 
* common.h (EM_MOXIE): Redefine to official number.
(EM_MOXIE_OLD): Define (from old number).
 
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
 
* arm.h: New AEABI_FP_number_model_* and AEABI_VFP_args_* enum values.
 
2014-12-06 Eric Botcazou <ebotcazou@adacore.com>
 
* common.h (EM_VISIUM): Define.
* visium.h: New file.
 
2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
 
* x86-64.h (R_X86_64_GOTPLT64): Mark it obsolete.
 
2014-10-17 Jose E. Marchesi <jose.marchesi@oracle.com>
 
* sparc.h (ELF_SPARC_HWCAP2_VIS3B): Documentation improved.
 
2014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
 
* sparc.h (Tag_GNU_Sparc_HWCAPS2): New object attribute.
(ELF_SPARC_HWCAP2_FJATHPLUS): New HWCAP2 bitmask value.
(ELF_SPARC_HWCAP2_VIS3B): Likewise.
(ELF_SPARC_HWCAP2_ADP): Likewise.
(ELF_SPARC_HWCAP2_SPARC5): Likewise.
(ELF_SPARC_HWCAP2_MWAIT): Likewise.
(ELF_SPARC_HWCAP2_XMPMUL): Likewise.
(ELF_SPARC_HWCAP2_XMONT): Likewise.
(ELF_SPARC_HWCAP2_NSEC): Likewise.
(ELF_SPARC_HWCAP2_FJATHHPC): Likewise.
(ELF_SPARC_HWCAP2_FJDES): Likewise.
(ELF_SPARC_HWCAP2_FJAES): Likewise.
 
2014-10-08 Will Newton <will.newton@linaro.org>
 
* aarch64.h: Sync up relocations with ABI release 1.0.
 
2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
 
* nds32.h: Declare new relocations.
 
2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
Matthew Fortune <matthew.fortune@imgtec.com>
 
* mips.h: Add relocs: R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3,
R_MIPS_PC19_S2, R_MIPS_PCHI16 and R_MIPS_PCLO16.
(E_MIPS_ARCH_32R6): New define.
(E_MIPS_ARCH_64R6): New define.
 
2014-08-26 DJ Delorie <dj@redhat.com>
 
* rl78.h (RL78_RELAXA_MASK): New. Relax types are enums, not bits
 
2014-07-07 Barney Stratford <barney_stratford@fastmail.fm>
 
* avr.h: Add R_AVR_PORT5 and R_AVR_PORT6.
 
2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Pitchumani Sivanupandi <pitchumani.s@atmel.com>
Soundararajan <Sounderarajan.D@atmel.com>
 
* avr.h (E_AVR_MACH_AVRTINY): Define avrtiny machine number.
(R_AVR_LDS_STS_16): Define 16 bit lds/sts reloc number.
* include/opcode/avr.h (AVR_ISA_TINY): Define avrtiny specific ISA.
(AVR_ISA_2xxxa): Define ISA without LPM.
(AVR_ISA_AVRTINY): Define avrtiny arch ISA.
Add doc for contraint used in 16 bit lds/sts.
Adjust ISA group for icall, ijmp, pop and push.
Add 16 bit lds/sts encoding and update 32 bit lds/sts constraints.
 
2014-04-22 Christian Svensson <blue@cmd.nu>
 
* common.h: Remove openrisc and or32 support. Add support for or1k.
* or1k.h: New file.
* openrisc.h: Delete.
* or32.h: Delete.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
* ppc64.h (R_PPC64_REL24_NOTOC, R_PPC64_ADDR64_LOCAL): Define.
 
2014-02-06 Andrew Pinski <apinski@cavium.com>
 
* mips.h (E_MIPS_MACH_OCTEON3): New machine flag.
 
2014-02-03 Sandra Loosemore <sandra@codesourcery.com>
 
* nios2.h (R_NIOS2_GOT_LO, R_NIOS2_GOT_HA): New.
(R_NIOS2_CALL_LO, R_NIOS2_CALL_HA): New.
(R_NIOS2_ILLEGAL): Adjust.
 
2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
 
* nios2.h (elf_nios2_reloc_type): Add R_NIOS2_CALL26_NOAT.
 
2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
 
* common.h (AT_HWCAP2): Define.
 
2013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com>
Wei-Cheng Wang <cole945@gmail.com>
 
* nds32.h: New file for Andes NDS32.
 
2013-12-07 Mike Frysinger <vapier@gentoo.org>
 
* epiphany.h: Remove +x file mode.
 
2013-11-17 H.J. Lu <hongjiu.lu@intel.com>
 
* x86-64.h: Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND.
 
2013-11-13 Yufeng Zhang <yufeng.zhang@arm.com>
2013-11-15 Alan Modra <amodra@gmail.com>
 
* aarch64.h: Define R_AARCH64_TLS_DTPMOD64,
R_AARCH64_TLS_DTPREL64 and R_AARCH64_TLS_TPREL64; guard
R_AARCH64_TLS_DTPMOD, R_AARCH64_TLS_DTPREL and
R_AARCH64_TLS_TPREL with RELOC_MACROS_GEN_FUNC.
 
Apply changes from mainline to 2.24
2013-10-30 Alan Modra <amodra@gmail.com>
 
* ppc.h (DT_PPC_TLSOPT): Delete.
(DT_PPC_OPT, PPC_OPT_TLS): Define.
* ppc64.h (DT_PPC64_TLSOPT): Delete.
306,26 → 12,25
(DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC): Define.
 
2013-10-30 Alan Modra <amodra@gmail.com>
 
* ppc64.h (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK): Define.
(ppc64_decode_local_entry, ppc64_encode_local_entry): New functions.
(PPC64_LOCAL_ENTRY_OFFSET, PPC64_SET_LOCAL_ENTRY_OFFSET): Define.
 
2013-10-30 Alan Modra <amodra@gmail.com>
 
* ppc64.h (EF_PPC64_ABI): Define.
 
2013-10-30 Alan Modra <amodra@gmail.com>
 
* ppc64.h (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA,
R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): New.
(IS_PPC64_TLS_RELOC): Match new tls relocs.
 
2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
2013-11-13 Yufeng Zhang <yufeng.zhang@arm.com>
 
* mips.h (enum): Add Tag_GNU_MIPS_ABI_MSA.
(enum): Add Val_GNU_MIPS_ABI_MSA_ANY and Val_GNU_MIPS_ABI_MSA_128.
* aarch64.h: Define R_AARCH64_TLS_DTPMOD64,
R_AARCH64_TLS_DTPREL64 and R_AARCH64_TLS_TPREL64; guard
R_AARCH64_TLS_DTPMOD, R_AARCH64_TLS_DTPREL and
R_AARCH64_TLS_TPREL with RELOC_MACROS_GEN_FUNC.
 
2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
 
2202,7 → 1907,7
 
For older changes see ChangeLog-9103
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/elf/aarch64.h
1,6 → 1,6
/* AArch64 ELF support for BFD.
 
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
Contributed by ARM Ltd.
 
This file is part of GNU Binutils.
124,20 → 124,10
RELOC_NUMBER (R_AARCH64_P32_GOT_LD_PREL19, 25)
RELOC_NUMBER (R_AARCH64_P32_ADR_GOT_PAGE, 26)
RELOC_NUMBER (R_AARCH64_P32_LD32_GOT_LO12_NC, 27)
RELOC_NUMBER (R_AARCH64_P32_LD32_GOTPAGE_LO14, 28)
 
RELOC_NUMBER (R_AARCH64_P32_TLSGD_ADR_PREL21, 80)
 
RELOC_NUMBER (R_AARCH64_P32_TLSGD_ADR_PAGE21, 81)
RELOC_NUMBER (R_AARCH64_P32_TLSGD_ADD_LO12_NC, 82)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_ADR_PREL21, 83)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_ADR_PAGE21, 84)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_ADD_LO12_NC, 85)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_MOVW_DTPREL_G1, 87)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_MOVW_DTPREL_G0, 88)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_MOVW_DTPREL_G0_NC, 89)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_ADD_DTPREL_HI12, 90)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12, 91)
RELOC_NUMBER (R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12_NC, 92)
RELOC_NUMBER (R_AARCH64_P32_TLSIE_ADR_GOTTPREL_PAGE21, 103)
RELOC_NUMBER (R_AARCH64_P32_TLSIE_LD32_GOTTPREL_LO12_NC, 104)
RELOC_NUMBER (R_AARCH64_P32_TLSIE_LD_GOTTPREL_PREL19, 105)
279,87 → 269,20
/* LD/ST64: (S+A) & 0xff8 */
RELOC_NUMBER (R_AARCH64_LDST64_ABS_LO12_NC, 286)
 
/* Group relocations to create a 16, 32, 48, or 64 bit PC-relative
offset inline. */
 
RELOC_NUMBER (R_AARCH64_MOVW_PREL_G0, 287)
RELOC_NUMBER (R_AARCH64_MOVW_PREL_G0_NC, 288)
RELOC_NUMBER (R_AARCH64_MOVW_PREL_G1, 289)
RELOC_NUMBER (R_AARCH64_MOVW_PREL_G1_NC, 290)
RELOC_NUMBER (R_AARCH64_MOVW_PREL_G2, 291)
RELOC_NUMBER (R_AARCH64_MOVW_PREL_G2_NC, 292)
RELOC_NUMBER (R_AARCH64_MOVW_PREL_G3, 293)
 
/* LD/ST128: (S+A) & 0xff0 */
RELOC_NUMBER (R_AARCH64_LDST128_ABS_LO12_NC, 299)
 
/* Group relocations to create a 16, 32, 48, or 64 bit GOT-relative
offset inline. */
 
RELOC_NUMBER (R_AARCH64_MOVW_GOTOFF_G0, 300)
RELOC_NUMBER (R_AARCH64_MOVW_GOTOFF_G0_NC, 301)
RELOC_NUMBER (R_AARCH64_MOVW_GOTOFF_G1, 302)
RELOC_NUMBER (R_AARCH64_MOVW_GOTOFF_G1_NC, 303)
RELOC_NUMBER (R_AARCH64_MOVW_GOTOFF_G2, 304)
RELOC_NUMBER (R_AARCH64_MOVW_GOTOFF_G2_NC, 305)
RELOC_NUMBER (R_AARCH64_MOVW_GOTOFF_G3, 306)
 
/* GOT-relative data relocations. */
 
RELOC_NUMBER (R_AARCH64_GOTREL64, 307)
RELOC_NUMBER (R_AARCH64_GOTREL32, 308)
 
/* GOT-relative instruction relocations. */
 
RELOC_NUMBER (R_AARCH64_GOT_LD_PREL19, 309)
RELOC_NUMBER (R_AARCH64_LD64_GOTOFF_LO15, 310)
RELOC_NUMBER (R_AARCH64_ADR_GOT_PAGE, 311)
RELOC_NUMBER (R_AARCH64_LD64_GOT_LO12_NC, 312)
RELOC_NUMBER (R_AARCH64_LD64_GOTPAGE_LO15, 313)
 
/* General Dynamic TLS relocations. */
 
RELOC_NUMBER (R_AARCH64_TLSGD_ADR_PREL21, 512)
RELOC_NUMBER (R_AARCH64_TLSGD_ADR_PAGE21, 513)
RELOC_NUMBER (R_AARCH64_TLSGD_ADD_LO12_NC, 514)
RELOC_NUMBER (R_AARCH64_TLSGD_MOVW_G1, 515)
RELOC_NUMBER (R_AARCH64_TLSGD_MOVW_G0_NC, 516)
 
/* Local Dynamic TLS relocations. */
 
RELOC_NUMBER (R_AARCH64_TLSLD_ADR_PREL21, 517)
RELOC_NUMBER (R_AARCH64_TLSLD_ADR_PAGE21, 518)
RELOC_NUMBER (R_AARCH64_TLSLD_ADD_LO12_NC, 519)
RELOC_NUMBER (R_AARCH64_TLSLD_MOVW_G1, 520)
RELOC_NUMBER (R_AARCH64_TLSLD_MOVW_G0_NC, 521)
RELOC_NUMBER (R_AARCH64_TLSLD_LD_PREL19, 522)
RELOC_NUMBER (R_AARCH64_TLSLD_MOVW_DTPREL_G2, 523)
RELOC_NUMBER (R_AARCH64_TLSLD_MOVW_DTPREL_G1, 524)
RELOC_NUMBER (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC, 525)
RELOC_NUMBER (R_AARCH64_TLSLD_MOVW_DTPREL_G0, 526)
RELOC_NUMBER (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC, 527)
RELOC_NUMBER (R_AARCH64_TLSLD_ADD_DTPREL_HI12, 528)
RELOC_NUMBER (R_AARCH64_TLSLD_ADD_DTPREL_LO12, 529)
RELOC_NUMBER (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC, 530)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST8_DTPREL_LO12, 531)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC, 532)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST16_DTPREL_LO12, 533)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC, 534)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST32_DTPREL_LO12, 535)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC, 536)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST64_DTPREL_LO12, 537)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC, 538)
 
/* Initial Exec TLS relocations. */
 
RELOC_NUMBER (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1, 539)
RELOC_NUMBER (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC, 540)
RELOC_NUMBER (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21, 541)
RELOC_NUMBER (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC, 542)
RELOC_NUMBER (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19, 543)
 
/* Local Exec TLS relocations. */
 
RELOC_NUMBER (R_AARCH64_TLSLE_MOVW_TPREL_G2, 544)
RELOC_NUMBER (R_AARCH64_TLSLE_MOVW_TPREL_G1, 545)
RELOC_NUMBER (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC, 546)
368,17 → 291,7
RELOC_NUMBER (R_AARCH64_TLSLE_ADD_TPREL_HI12, 549)
RELOC_NUMBER (R_AARCH64_TLSLE_ADD_TPREL_LO12, 550)
RELOC_NUMBER (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC, 551)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST8_TPREL_LO12, 552)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC, 553)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST16_TPREL_LO12, 554)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, 555)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST32_TPREL_LO12, 556)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, 557)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST64_TPREL_LO12, 558)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, 559)
 
/* TLS descriptor relocations. */
 
RELOC_NUMBER (R_AARCH64_TLSDESC_LD_PREL19, 560)
RELOC_NUMBER (R_AARCH64_TLSDESC_ADR_PREL21, 561)
RELOC_NUMBER (R_AARCH64_TLSDESC_ADR_PAGE21, 562)
390,11 → 303,6
RELOC_NUMBER (R_AARCH64_TLSDESC_ADD, 568)
RELOC_NUMBER (R_AARCH64_TLSDESC_CALL, 569)
 
RELOC_NUMBER (R_AARCH64_TLSLE_LDST128_TPREL_LO12, 570)
RELOC_NUMBER (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC, 571)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST128_DTPREL_LO12, 572)
RELOC_NUMBER (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC, 573)
 
/* Dynamic relocations */
 
/* Copy symbol at runtime. */
/contrib/toolchain/binutils/include/elf/alpha.h
1,5 → 1,5
/* ALPHA ELF support for BFD.
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1998, 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
 
By Eric Youngdale, <eric@aib.com>. No processor supplement available
for this platform.
/contrib/toolchain/binutils/include/elf/arc.h
1,5 → 1,5
/* ARC ELF support for BFD.
Copyright (C) 1995-2015 Free Software Foundation, Inc.
Copyright 1995, 1997, 1998, 2000, 2001, 2010 Free Software Foundation, Inc.
Contributed by Doug Evans, (dje@cygnus.com)
 
This file is part of BFD, the Binary File Descriptor library.
28,42 → 28,26
 
/* Relocations. */
 
#define ARC_RELOC_HOWTO(TYPE, VALUE, SIZE, BITSIZE, RELOC_FUNCTION, OVERFLOW, FORMULA) \
RELOC_NUMBER(R_##TYPE, VALUE)
 
START_RELOC_NUMBERS (elf_arc_reloc_type)
#include "arc-reloc.def"
RELOC_NUMBER (R_ARC_NONE, 0)
RELOC_NUMBER (R_ARC_32, 1)
RELOC_NUMBER (R_ARC_B26, 2)
RELOC_NUMBER (R_ARC_B22_PCREL, 3)
END_RELOC_NUMBERS (R_ARC_max)
 
#undef ARC_RELOC_HOWTO
 
/* Processor specific flags for the ELF header e_flags field. */
 
/* Four bit ARC machine type field. */
#define EF_ARC_MACH_MSK 0x000000ff
#define EF_ARC_OSABI_MSK 0x00000f00
#define EF_ARC_ALL_MSK (EF_ARC_MACH_MSK | EF_ARC_OSABI_MSK)
 
/* Four bit ARC machine type field. */
 
#define EF_ARC_MACH 0x0000000f
 
/* Various CPU types. */
#define E_ARC_MACH_ARC600 0x00000002
#define E_ARC_MACH_ARC601 0x00000004
#define E_ARC_MACH_ARC700 0x00000003
 
/* Processor specific flags for the ELF header e_flags field. */
#define EF_ARC_CPU_GENERIC 0x00000000
#define EF_ARC_CPU_ARCV2EM 0x00000005
#define EF_ARC_CPU_ARCV2HS 0x00000006
#define E_ARC_MACH_ARC5 0
#define E_ARC_MACH_ARC6 1
#define E_ARC_MACH_ARC7 2
#define E_ARC_MACH_ARC8 3
 
/* ARC Linux specific ABIs. */
#define E_ARC_OSABI_ORIG 0x00000000 /* MUST be 0 for back-compat. */
#define E_ARC_OSABI_V2 0x00000200
#define E_ARC_OSABI_V3 0x00000300
#define E_ARC_OSABI_CURRENT E_ARC_OSABI_V3
 
/* Leave bits 0xf0 alone in case we ever have more than 16 cpu types. */
 
/* File contains position independent code. */
/contrib/toolchain/binutils/include/elf/arm.h
1,5 → 1,6
/* ARM ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
24,6 → 25,7
 
/* Processor specific flags for the ELF header e_flags field. */
#define EF_ARM_RELEXEC 0x01
#define EF_ARM_HASENTRY 0x02
#define EF_ARM_INTERWORK 0x04
#define EF_ARM_APCS_26 0x08
#define EF_ARM_APCS_FLOAT 0x10
318,23 → 320,6
Tag_VFP_HP_extension = Tag_FP_HP_extension
};
 
/* Values for Tag_ABI_FP_number_model. */
enum
{
AEABI_FP_number_model_none = 0,
AEABI_FP_number_model_ieee754_number = 1,
AEABI_FP_number_model_rtabi = 2,
AEABI_FP_number_model_ieee754_all = 3
};
 
/* Values for Tag_ABI_VFP_args. */
enum
{
AEABI_VFP_args_base = 0,
AEABI_VFP_args_vfp = 1,
AEABI_VFP_args_toolchain = 2,
AEABI_VFP_args_compatible = 3
};
#endif
 
/* The name of the note section used to identify arm variants. */
/contrib/toolchain/binutils/include/elf/avr.h
1,5 → 1,6
/* AVR ELF support for BFD.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2004, 2006, 2010, 2012
Free Software Foundation, Inc.
Contributed by Denis Chertykov <denisc@overta.ru>
 
This file is part of BFD, the Binary File Descriptor library.
40,7 → 41,6
#define E_AVR_MACH_AVR5 5
#define E_AVR_MACH_AVR51 51
#define E_AVR_MACH_AVR6 6
#define E_AVR_MACH_AVRTINY 100
#define E_AVR_MACH_XMEGA1 101
#define E_AVR_MACH_XMEGA2 102
#define E_AVR_MACH_XMEGA3 103
81,13 → 81,6
RELOC_NUMBER (R_AVR_8_LO8, 27)
RELOC_NUMBER (R_AVR_8_HI8, 28)
RELOC_NUMBER (R_AVR_8_HLO8, 29)
RELOC_NUMBER (R_AVR_DIFF8, 30)
RELOC_NUMBER (R_AVR_DIFF16, 31)
RELOC_NUMBER (R_AVR_DIFF32, 32)
RELOC_NUMBER (R_AVR_LDS_STS_16, 33)
RELOC_NUMBER (R_AVR_PORT6, 34)
RELOC_NUMBER (R_AVR_PORT5, 35)
RELOC_NUMBER (R_AVR_32_PCREL, 36)
END_RELOC_NUMBERS (R_AVR_max)
 
#endif /* _ELF_AVR_H */
/contrib/toolchain/binutils/include/elf/bfin.h
1,5 → 1,5
/* Blackfin ELF support for BFD.
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/common.h
1,5 → 1,5
/* ELF support for BFD.
Copyright (C) 1991-2015 Free Software Foundation, Inc.
Copyright 1991-2013 Free Software Foundation, Inc.
 
Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and
73,7 → 73,6
#define ELFOSABI_NSK 14 /* Hewlett-Packard Non-Stop Kernel */
#define ELFOSABI_AROS 15 /* AROS */
#define ELFOSABI_FENIXOS 16 /* FenixOS */
#define ELFOSABI_CLOUDABI 17 /* Nuxi CloudABI */
#define ELFOSABI_C6000_ELFABI 64 /* Bare-metal TMS320C6000 */
#define ELFOSABI_C6000_LINUX 65 /* Linux TMS320C6000 */
#define ELFOSABI_ARM 97 /* ARM */
106,7 → 105,7
#define EM_386 3 /* Intel 80386 */
#define EM_68K 4 /* Motorola m68k family */
#define EM_88K 5 /* Motorola m88k family */
#define EM_IAMCU 6 /* Intel MCU */
#define EM_486 6 /* Intel 80486 *//* Reserved for future use */
#define EM_860 7 /* Intel 80860 */
#define EM_MIPS 8 /* MIPS R3000 (officially, big-endian only) */
#define EM_S370 9 /* IBM System/370 */
193,8 → 192,8
#define EM_MN10300 89 /* Matsushita MN10300 */
#define EM_MN10200 90 /* Matsushita MN10200 */
#define EM_PJ 91 /* picoJava */
#define EM_OR1K 92 /* OpenRISC 1000 32-bit embedded processor */
#define EM_ARC_COMPACT 93 /* ARC International ARCompact processor */
#define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */
#define EM_ARC_A5 93 /* ARC Cores Tangent-A5 */
#define EM_XTENSA 94 /* Tensilica Xtensa Architecture */
#define EM_VIDEOCORE 95 /* Alphamosaic VideoCore processor */
#define EM_TMM_GPP 96 /* Thompson Multimedia General Purpose Processor */
295,7 → 294,6
#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze 32-bit RISC soft processor core */
#define EM_CUDA 190 /* NVIDIA CUDA architecture */
#define EM_TILEGX 191 /* Tilera TILE-Gx multicore architecture family */
#define EM_ARC_COMPACT2 195 /* Synopsys ARCompact V2 */
#define EM_RL78 197 /* Renesas RL78 family. */
#define EM_78K0R 199 /* Renesas 78K0R. */
#define EM_INTEL205 205 /* Reserved by Intel */
303,9 → 301,6
#define EM_INTEL207 207 /* Reserved by Intel */
#define EM_INTEL208 208 /* Reserved by Intel */
#define EM_INTEL209 209 /* Reserved by Intel */
#define EM_VISIUM 221 /* Controls and Data Services VISIUMcore processor */
#define EM_FT32 222 /* FTDI Chip FT32 high performance 32-bit RISC architecture */
#define EM_MOXIE 223 /* Moxie processor family */
 
/* If it is necessary to assign new unofficial EM_* values, please pick large
random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision
344,6 → 339,9
/* FR30 magic number - no EABI available. */
#define EM_CYGNUS_FR30 0x3330
 
/* OpenRISC magic number. Written in the absense of an ABI. */
#define EM_OPENRISC_OLD 0x3426
 
/* DLX magic number. Written in the absense of an ABI. */
#define EM_DLX 0x5aa5
 
362,6 → 360,9
/* Ubicom IP2xxx; Written in the absense of an ABI. */
#define EM_IP2K_OLD 0x8217
 
/* (Deprecated) Temporary number for the OpenRISC processor. */
#define EM_OR32 0x8472
 
/* Cygnus PowerPC ELF backend. Written in the absence of an ABI. */
#define EM_CYGNUS_POWERPC 0x9025
 
398,8 → 399,7
 
#define EM_CYGNUS_MEP 0xF00D /* Toshiba MeP */
 
/* Old, unofficial value for Moxie. */
#define EM_MOXIE_OLD 0xFEED
#define EM_MOXIE 0xFEED /* Moxie */
 
/* Old Sunplus S+core7 backend magic number. Written in the absence of an ABI. */
#define EM_SCORE_OLD 95
408,9 → 408,6
 
#define EM_ADAPTEVA_EPIPHANY 0x1223 /* Adapteva's Epiphany architecture. */
 
/* Old constant that might be in use by some software. */
#define EM_OPENRISC EM_OR1K
 
/* See the above comment before you add a new EM_* value here. */
 
/* Values for e_version. */
508,7 → 505,6
#define SHF_OS_NONCONFORMING (1 << 8) /* OS specific processing required */
#define SHF_GROUP (1 << 9) /* Member of a section group */
#define SHF_TLS (1 << 10) /* Thread local storage section */
#define SHF_COMPRESSED (1 << 11) /* Section with compressed data */
 
/* #define SHF_MASKOS 0x0F000000 *//* OS-specific semantics */
#define SHF_MASKOS 0x0FF00000 /* New value, Oct 4, 1999 Draft */
523,13 → 519,6
are not to be further
relocated. */
 
/* Compression types */
#define ELFCOMPRESS_ZLIB 1 /* Compressed with zlib. */
#define ELFCOMPRESS_LOOS 0x60000000 /* OS-specific semantics, lo */
#define ELFCOMPRESS_HIOS 0x6FFFFFFF /* OS-specific semantics, hi */
#define ELFCOMPRESS_LOPROC 0x70000000 /* Processor-specific semantics, lo */
#define ELFCOMPRESS_HIPROC 0x7FFFFFFF /* Processor-specific semantics, hi */
 
/* Values of note segment descriptor types for core files. */
 
#define NT_PRSTATUS 1 /* Contains copy of prstatus struct */
567,10 → 556,6
/* note name must be "LINUX". */
#define NT_S390_TDB 0x308 /* S390 transaction diagnostic block */
/* note name must be "LINUX". */
#define NT_S390_VXRS_LOW 0x309 /* S390 vector registers 0-15 upper half */
/* note name must be "LINUX". */
#define NT_S390_VXRS_HIGH 0x30a /* S390 vector registers 16-31 */
/* note name must be "LINUX". */
#define NT_ARM_VFP 0x400 /* ARM VFP registers */
/* The following definitions should really use NT_AARCH_..., but defined
this way for compatibility with Linux. */
636,13 → 621,10
#define GNU_ABI_TAG_SOLARIS 2
#define GNU_ABI_TAG_FREEBSD 3
#define GNU_ABI_TAG_NETBSD 4
#define GNU_ABI_TAG_SYLLABLE 5
#define GNU_ABI_TAG_NACL 6
 
/* Values for NetBSD .note.netbsd.ident notes. Note name is "NetBSD". */
 
#define NT_NETBSD_IDENT 1
#define NT_NETBSD_MARCH 5
 
/* Values for OpenBSD .note.openbsd.ident notes. Note name is "OpenBSD". */
 
869,8 → 851,6
#define DF_1_SYMINTPOSE 0x00800000
#define DF_1_GLOBAUDIT 0x01000000
#define DF_1_SINGLETON 0x02000000
#define DF_1_STUB 0x04000000
#define DF_1_PIE 0x08000000
 
/* Flag values for the DT_FLAGS entry. */
#define DF_ORIGIN (1 << 0)
979,7 → 959,6
#define AT_BASE_PLATFORM 24 /* String identifying real platform,
may differ from AT_PLATFORM. */
#define AT_RANDOM 25 /* Address of 16 random bytes. */
#define AT_HWCAP2 26 /* Extension of AT_HWCAP. */
#define AT_EXECFN 31 /* Filename of executable. */
/* Pointer to the global system page used for system calls and other
nice things. */
/contrib/toolchain/binutils/include/elf/cr16.h
1,5 → 1,5
/* CR16 ELF support for BFD.
Copyright (C) 2007-2015 Free Software Foundation, Inc.
Copyright 2007, 2010 Free Software Foundation, Inc.
Contributed by M R Swami Reddy.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/cr16c.h
1,5 → 1,5
/* CR16C ELF support for BFD.
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright 2004, 2008, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/cris.h
1,5 → 1,5
/* CRIS ELF support for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2001, 2004, 2010 Free Software Foundation, Inc.
Contributed by Axis Communications AB, Lund, Sweden.
Written by Hans-Peter Nilsson.
 
/contrib/toolchain/binutils/include/elf/crx.h
1,5 → 1,5
/* CRX ELF support for BFD.
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright 2004, 2010 Free Software Foundation, Inc.
Contributed by Tomer Levi, NSC, Israel.
Originally written for GAS 2.12 by Tomer Levi, NSC, Israel.
Updates, BFDizing, GNUifying and ELF support by Tomer Levi.
/contrib/toolchain/binutils/include/elf/d10v.h
1,5 → 1,5
/* d10v ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/d30v.h
1,5 → 1,5
/* d30v ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/dlx.h
1,5 → 1,5
/* DLX support for BFD.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright 2002, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/dwarf.h
3,7 → 3,7
 
Written by Ron Guilmette (rfg@netcom.com)
 
Copyright (C) 1992-2015 Free Software Foundation, Inc.
Copyright 1992, 1993, 1995, 1999, 2005, 2010 Free Software Foundation, Inc.
 
This file is part of both GCC and the BFD library.
 
/contrib/toolchain/binutils/include/elf/epiphany.h
1,5 → 1,5
/* Adapteva EPIPHANY ELF support for BFD.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright (C) 2009, 2011 Free Software Foundation, Inc.
Contributed by Embecosm on behalf of Adapteva, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/external.h
1,5 → 1,6
/* ELF support for BFD.
Copyright (C) 1991-2015 Free Software Foundation, Inc.
Copyright 1991, 1992, 1993, 1995, 1997, 1998, 1999, 2001, 2003, 2005,
2008, 2010 Free Software Foundation, Inc.
 
Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and
135,21 → 136,6
unsigned char sh_entsize[8]; /* Entry size if section holds table */
} Elf64_External_Shdr;
 
/* Compression header */
 
typedef struct {
unsigned char ch_type[4]; /* Type of compression */
unsigned char ch_size[4]; /* Size of uncompressed data in bytes */
unsigned char ch_addralign[4]; /* Alignment of uncompressed data */
} Elf32_External_Chdr;
 
typedef struct {
unsigned char ch_type[4]; /* Type of compression */
unsigned char ch_reserved[4]; /* Padding */
unsigned char ch_size[8]; /* Size of uncompressed data in bytes */
unsigned char ch_addralign[8]; /* Alignment of uncompressed data */
} Elf64_External_Chdr;
 
/* Symbol table entry */
 
typedef struct {
/contrib/toolchain/binutils/include/elf/fr30.h
1,5 → 1,5
/* FR30 ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/frv.h
1,5 → 1,5
/* FRV ELF support for BFD.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2004, 2005, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/h8.h
1,5 → 1,5
/* H8300/h8500 ELF support for BFD.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001-2013 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/hppa.h
1,5 → 1,6
/* HPPA ELF support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 1994, 1995, 1998, 1999, 2000, 2005, 2006, 2008, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/i370.h
1,5 → 1,5
/* i370 ELF support for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2002, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/i386.h
1,5 → 1,6
/* ix86 ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2002, 2004, 2005, 2006, 2009, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
66,8 → 67,6
RELOC_NUMBER (R_386_TLS_DESC_CALL,40)
RELOC_NUMBER (R_386_TLS_DESC, 41)
RELOC_NUMBER (R_386_IRELATIVE, 42) /* Adjust indirectly by program base */
/* Load from 32 bit GOT entry, relaxable. */
RELOC_NUMBER (R_386_GOT32X, 43)
 
/* Used by Intel. */
RELOC_NUMBER (R_386_USED_BY_INTEL_200, 200)
/contrib/toolchain/binutils/include/elf/i860.h
1,5 → 1,5
/* i860 ELF support for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2010 Free Software Foundation, Inc.
 
Contributed by Jason Eckhardt <jle@cygnus.com>.
 
/contrib/toolchain/binutils/include/elf/i960.h
1,5 → 1,5
/* Intel 960 ELF support for BFD.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/ia64.h
1,5 → 1,6
/* IA-64 ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2008, 2009, 2010
Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/internal.h
1,5 → 1,6
/* ELF support for BFD.
Copyright (C) 1991-2015 Free Software Foundation, Inc.
Copyright 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002,
2003, 2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
 
Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and
115,14 → 116,6
unsigned char *contents; /* Section contents. */
} Elf_Internal_Shdr;
 
/* Compression header */
 
typedef struct elf_internal_chdr {
unsigned int ch_type; /* Type of compression */
bfd_size_type ch_size; /* Size of uncompressed data in bytes */
bfd_vma ch_addralign; /* Alignment of uncompressed data */
} Elf_Internal_Chdr;
 
/* Symbol table entry */
 
struct elf_internal_sym {
325,13 → 318,6
|| (((sec_hdr)->sh_flags & SHF_TLS) == 0 \
&& (segment)->p_type != PT_TLS \
&& (segment)->p_type != PT_PHDR)) \
/* PT_LOAD and similar segments only have SHF_ALLOC sections. */ \
&& !(((sec_hdr)->sh_flags & SHF_ALLOC) == 0 \
&& ((segment)->p_type == PT_LOAD \
|| (segment)->p_type == PT_DYNAMIC \
|| (segment)->p_type == PT_GNU_EH_FRAME \
|| (segment)->p_type == PT_GNU_RELRO \
|| (segment)->p_type == PT_GNU_STACK)) \
/* Any section besides one of type SHT_NOBITS must have file \
offsets within the segment. */ \
&& ((sec_hdr)->sh_type == SHT_NOBITS \
/contrib/toolchain/binutils/include/elf/ip2k.h
1,5 → 1,5
/* IP2xxx ELF support for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2002, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/iq2000.h
1,5 → 1,5
/* IQ2000 ELF support for BFD.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/lm32.h
1,5 → 1,5
/* Lattice Mico32 ELF support for BFD.
Copyright (C) 2008-2015 Free Software Foundation, Inc.
Copyright 2008, 2010 Free Software Foundation, Inc.
Contributed by Jon Beniston <jon@beniston.com>
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/m32c.h
1,5 → 1,5
/* M32C ELF support for BFD.
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright (C) 2004, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/m32r.h
1,5 → 1,6
/* M32R ELF support for BFD.
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998, 1999, 2000, 2003, 2004, 2008, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/m68hc11.h
1,5 → 1,5
/* m68hc11 & m68hc12 ELF support for BFD.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2001, 2002, 2010, 2012 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/m68k.h
1,5 → 1,6
/* MC68k ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2002, 2005, 2006, 2007, 2009, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/mcore.h
1,5 → 1,5
/* Motorola MCore support for BFD.
Copyright (C) 1995-2015 Free Software Foundation, Inc.
Copyright 1995, 1999, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/mep.h
1,5 → 1,6
/* Toshiba MeP ELF support for BFD.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright (C) 2001, 2004, 2005, 2007, 2009, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
24,6 → 25,10
 
#define SHF_MEP_VLIW 0x10000000 /* contains vliw code */
 
/* This bit is reserved by BFD for processor specific stuff. Name
it properly so that we can easily stay consistent elsewhere. */
#define SEC_MEP_VLIW SEC_TIC54X_BLOCK
 
#include "elf/reloc-macros.h"
 
/* Note: The comments in this file are used by bfd/mep-relocs.pl to
/contrib/toolchain/binutils/include/elf/metag.h
1,5 → 1,5
/* Meta ELF support for BFD.
Copyright (C) 2013-2015 Free Software Foundation, Inc.
Copyright (C) 2013 Free Software Foundation, Inc.
Contributed by Imagination Technologies Ltd.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/microblaze.h
1,6 → 1,6
/* Xilinx MicroBlaze support for BFD.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright 2009, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/mips.h
1,5 → 1,7
/* MIPS ELF support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2008, 2009, 2010, 2013
Free Software Foundation, Inc.
 
By Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>, from
information in the System V Application Binary Interface, MIPS
87,14 → 89,7
RELOC_NUMBER (R_MIPS_TLS_TPREL_HI16, 49)
RELOC_NUMBER (R_MIPS_TLS_TPREL_LO16, 50)
RELOC_NUMBER (R_MIPS_GLOB_DAT, 51)
/* Space to grow */
RELOC_NUMBER (R_MIPS_PC21_S2, 60)
RELOC_NUMBER (R_MIPS_PC26_S2, 61)
RELOC_NUMBER (R_MIPS_PC18_S3, 62)
RELOC_NUMBER (R_MIPS_PC19_S2, 63)
RELOC_NUMBER (R_MIPS_PCHI16, 64)
RELOC_NUMBER (R_MIPS_PCLO16, 65)
FAKE_RELOC (R_MIPS_max, 66)
FAKE_RELOC (R_MIPS_max, 52)
/* These relocs are used for the mips16. */
FAKE_RELOC (R_MIPS16_min, 100)
RELOC_NUMBER (R_MIPS16_26, 100)
244,12 → 239,6
/* -mips64r2 code. */
#define E_MIPS_ARCH_64R2 0x80000000
 
/* -mips32r6 code. */
#define E_MIPS_ARCH_32R6 0x90000000
 
/* -mips64r6 code. */
#define E_MIPS_ARCH_64R6 0xa0000000
 
/* The ABI of the file. Also see EF_MIPS_ABI2 above. */
#define EF_MIPS_ABI 0x0000F000
 
286,7 → 275,6
#define E_MIPS_MACH_OCTEON 0x008b0000
#define E_MIPS_MACH_XLR 0x008c0000
#define E_MIPS_MACH_OCTEON2 0x008d0000
#define E_MIPS_MACH_OCTEON3 0x008e0000
#define E_MIPS_MACH_5400 0x00910000
#define E_MIPS_MACH_5900 0x00920000
#define E_MIPS_MACH_5500 0x00980000
441,8 → 429,6
/* Runtime procedure descriptor table exception information (ucode) ??? */
#define SHT_MIPS_PDR_EXCEPTION 0x70000029
 
/* ABI related flags section. */
#define SHT_MIPS_ABIFLAGS 0x7000002a
 
/* A section of type SHT_MIPS_LIBLIST contains an array of the
following structure. The sh_link field is the section index of the
609,9 → 595,6
/* .MIPS.options section. */
#define PT_MIPS_OPTIONS 0x70000002
 
/* Records ABI related flags. */
#define PT_MIPS_ABIFLAGS 0x70000003
/* Processor specific dynamic array tags. */
 
/* 32 bit version number for runtime linker interface. */
749,9 → 732,6
/* Points to the base of a writable PLT. */
#define DT_MIPS_RWPLT 0x70000034
 
/* Relative offset of run time loader map, used for debugging. */
#define DT_MIPS_RLD_MAP_REL 0x70000035
/* Flags which may appear in a DT_MIPS_FLAGS entry. */
 
/* No flags. */
1069,60 → 1049,8
bfd_vma ri_gp_value;
} Elf64_Internal_RegInfo;
 
/* ABI Flags structure version 0. */
 
typedef struct
{
/* Version of flags structure. */
unsigned char version[2];
/* The level of the ISA: 1-5, 32, 64. */
unsigned char isa_level[1];
/* The revision of ISA: 0 for MIPS V and below, 1-n otherwise. */
unsigned char isa_rev[1];
/* The size of general purpose registers. */
unsigned char gpr_size[1];
/* The size of co-processor 1 registers. */
unsigned char cpr1_size[1];
/* The size of co-processor 2 registers. */
unsigned char cpr2_size[1];
/* The floating-point ABI. */
unsigned char fp_abi[1];
/* Processor-specific extension. */
unsigned char isa_ext[4];
/* Mask of ASEs used. */
unsigned char ases[4];
/* Mask of general flags. */
unsigned char flags1[4];
unsigned char flags2[4];
} Elf_External_ABIFlags_v0;
 
typedef struct
{
/* Version of flags structure. */
unsigned short version;
/* The level of the ISA: 1-5, 32, 64. */
unsigned char isa_level;
/* The revision of ISA: 0 for MIPS V and below, 1-n otherwise. */
unsigned char isa_rev;
/* The size of general purpose registers. */
unsigned char gpr_size;
/* The size of co-processor 1 registers. */
unsigned char cpr1_size;
/* The size of co-processor 2 registers. */
unsigned char cpr2_size;
/* The floating-point ABI. */
unsigned char fp_abi;
/* Processor-specific extension. */
unsigned long isa_ext;
/* Mask of ASEs used. */
unsigned long ases;
/* Mask of general flags. */
unsigned long flags1;
unsigned long flags2;
} Elf_Internal_ABIFlags_v0;
 
typedef struct
{
/* The hash value computed from the name of the corresponding
dynamic symbol. */
unsigned char ms_hash_value[4];
1161,12 → 1089,6
extern void bfd_mips_elf64_swap_reginfo_out
(bfd *, const Elf64_Internal_RegInfo *, Elf64_External_RegInfo *);
 
/* MIPS ELF flags swapping routines. */
extern void bfd_mips_elf_swap_abiflags_v0_in
(bfd *, const Elf_External_ABIFlags_v0 *, Elf_Internal_ABIFlags_v0 *);
extern void bfd_mips_elf_swap_abiflags_v0_out
(bfd *, const Elf_Internal_ABIFlags_v0 *, Elf_External_ABIFlags_v0 *);
 
/* Masks for the info work of an ODK_EXCEPTIONS descriptor. */
#define OEX_FPU_MIN 0x1f /* FPEs which must be enabled. */
#define OEX_FPU_MAX 0x1f00 /* FPEs which may be enabled. */
1205,58 → 1127,7
#define OHWA0_R4KEOP_CHECKED 0x00000001
#define OHWA0_R4KEOP_CLEAN 0x00000002
 
/* Values for the xxx_size bytes of an ABI flags structure. */
 
#define AFL_REG_NONE 0x00 /* No registers. */
#define AFL_REG_32 0x01 /* 32-bit registers. */
#define AFL_REG_64 0x02 /* 64-bit registers. */
#define AFL_REG_128 0x03 /* 128-bit registers. */
 
/* Masks for the ases word of an ABI flags structure. */
 
#define AFL_ASE_DSP 0x00000001 /* DSP ASE. */
#define AFL_ASE_DSPR2 0x00000002 /* DSP R2 ASE. */
#define AFL_ASE_EVA 0x00000004 /* Enhanced VA Scheme. */
#define AFL_ASE_MCU 0x00000008 /* MCU (MicroController) ASE. */
#define AFL_ASE_MDMX 0x00000010 /* MDMX ASE. */
#define AFL_ASE_MIPS3D 0x00000020 /* MIPS-3D ASE. */
#define AFL_ASE_MT 0x00000040 /* MT ASE. */
#define AFL_ASE_SMARTMIPS 0x00000080 /* SmartMIPS ASE. */
#define AFL_ASE_VIRT 0x00000100 /* VZ ASE. */
#define AFL_ASE_MSA 0x00000200 /* MSA ASE. */
#define AFL_ASE_MIPS16 0x00000400 /* MIPS16 ASE. */
#define AFL_ASE_MICROMIPS 0x00000800 /* MICROMIPS ASE. */
#define AFL_ASE_XPA 0x00001000 /* XPA ASE. */
#define AFL_ASE_MASK 0x00001fff /* All ASEs. */
 
/* Values for the isa_ext word of an ABI flags structure. */
 
#define AFL_EXT_XLR 1 /* RMI Xlr instruction. */
#define AFL_EXT_OCTEON2 2 /* Cavium Networks Octeon2. */
#define AFL_EXT_OCTEONP 3 /* Cavium Networks OcteonP. */
#define AFL_EXT_LOONGSON_3A 4 /* Loongson 3A. */
#define AFL_EXT_OCTEON 5 /* Cavium Networks Octeon. */
#define AFL_EXT_5900 6 /* MIPS R5900 instruction. */
#define AFL_EXT_4650 7 /* MIPS R4650 instruction. */
#define AFL_EXT_4010 8 /* LSI R4010 instruction. */
#define AFL_EXT_4100 9 /* NEC VR4100 instruction. */
#define AFL_EXT_3900 10 /* Toshiba R3900 instruction. */
#define AFL_EXT_10000 11 /* MIPS R10000 instruction. */
#define AFL_EXT_SB1 12 /* Broadcom SB-1 instruction. */
#define AFL_EXT_4111 13 /* NEC VR4111/VR4181 instruction. */
#define AFL_EXT_4120 14 /* NEC VR4120 instruction. */
#define AFL_EXT_5400 15 /* NEC VR5400 instruction. */
#define AFL_EXT_5500 16 /* NEC VR5500 instruction. */
#define AFL_EXT_LOONGSON_2E 17 /* ST Microelectronics Loongson 2E. */
#define AFL_EXT_LOONGSON_2F 18 /* ST Microelectronics Loongson 2F. */
#define AFL_EXT_OCTEON3 19 /* Cavium Networks Octeon3. */
 
/* Masks for the flags1 word of an ABI flags structure. */
#define AFL_FLAGS1_ODDSPREG 1 /* Uses odd single-precision registers. */
 
extern unsigned int bfd_mips_isa_ext (bfd *);
 
/* Object attribute tags. */
enum
{
1264,9 → 1135,6
 
/* Floating-point ABI used by this object file. */
Tag_GNU_MIPS_ABI_FP = 4,
 
/* MSA ABI used by this object file. */
Tag_GNU_MIPS_ABI_MSA = 8,
};
 
/* Object attribute values. */
1287,28 → 1155,7
Val_GNU_MIPS_ABI_FP_SOFT = 3,
 
/* Using -mips32r2 -mfp64. */
Val_GNU_MIPS_ABI_FP_OLD_64 = 4,
 
/* Using -mfpxx */
Val_GNU_MIPS_ABI_FP_XX = 5,
 
/* Using -mips32r2 -mfp64. */
Val_GNU_MIPS_ABI_FP_64 = 6,
 
/* Using -mips32r2 -mfp64 -mno-odd-spreg. */
Val_GNU_MIPS_ABI_FP_64A = 7,
 
/* This is reserved for backward-compatibility with an earlier
implementation of the MIPS NaN2008 functionality. */
Val_GNU_MIPS_ABI_FP_NAN2008 = 8,
 
/* Values defined for Tag_GNU_MIPS_ABI_MSA. */
 
/* Not tagged or not using any ABIs affected by the differences. */
Val_GNU_MIPS_ABI_MSA_ANY = 0,
 
/* Using 128-bit MSA. */
Val_GNU_MIPS_ABI_MSA_128 = 1,
Val_GNU_MIPS_ABI_FP_64 = 4,
};
 
#endif /* _ELF_MIPS_H */
/contrib/toolchain/binutils/include/elf/mmix.h
1,5 → 1,5
/* MMIX support for BFD.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2002, 2003, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/mn10200.h
1,5 → 1,5
/* MN10200 ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/mn10300.h
1,5 → 1,5
/* MN10300 ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2003, 2007 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/moxie.h
1,5 → 1,5
/* moxie ELF support for BFD.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright 2009, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/msp430.h
1,5 → 1,5
/* MSP430 ELF support for BFD.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright (C) 2002-2013 Free Software Foundation, Inc.
Contributed by Dmitry Diky <diwil@mail.ru>
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/mt.h
1,5 → 1,5
/* MS1 ELF support for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2005, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/nios2.h
1,5 → 1,5
/* Altera Nios II ELF support for BFD.
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copyright (C) 2012, 2013 Free Software Foundation, Inc.
Contributed by Nigel Gray (ngray@altera.com).
Contributed by Mentor Graphics, Inc.
 
34,8 → 34,6
function to work properly. */
 
START_RELOC_NUMBERS (elf_nios2_reloc_type)
/* Relocs used by both R1 and R2, with different howtos to match
the respective encodings. */
RELOC_NUMBER (R_NIOS2_NONE, 0)
RELOC_NUMBER (R_NIOS2_S16, 1)
RELOC_NUMBER (R_NIOS2_U16, 2)
77,29 → 75,7
RELOC_NUMBER (R_NIOS2_JUMP_SLOT, 38)
RELOC_NUMBER (R_NIOS2_RELATIVE, 39)
RELOC_NUMBER (R_NIOS2_GOTOFF, 40)
RELOC_NUMBER (R_NIOS2_CALL26_NOAT, 41)
RELOC_NUMBER (R_NIOS2_GOT_LO, 42)
RELOC_NUMBER (R_NIOS2_GOT_HA, 43)
RELOC_NUMBER (R_NIOS2_CALL_LO, 44)
RELOC_NUMBER (R_NIOS2_CALL_HA, 45)
 
/* Relocs specific to R2. */
RELOC_NUMBER (R_NIOS2_R2_S12, 64)
RELOC_NUMBER (R_NIOS2_R2_I10_1_PCREL, 65)
RELOC_NUMBER (R_NIOS2_R2_T1I7_1_PCREL, 66)
RELOC_NUMBER (R_NIOS2_R2_T1I7_2, 67)
RELOC_NUMBER (R_NIOS2_R2_T2I4, 68)
RELOC_NUMBER (R_NIOS2_R2_T2I4_1, 69)
RELOC_NUMBER (R_NIOS2_R2_T2I4_2, 70)
RELOC_NUMBER (R_NIOS2_R2_X1I7_2, 71)
RELOC_NUMBER (R_NIOS2_R2_X2L5, 72)
RELOC_NUMBER (R_NIOS2_R2_F1I5_2, 73)
RELOC_NUMBER (R_NIOS2_R2_L5I4X1, 74)
RELOC_NUMBER (R_NIOS2_R2_T1X1I6, 75)
RELOC_NUMBER (R_NIOS2_R2_T1X1I6_2, 76)
 
/* Last reloc. */
RELOC_NUMBER (R_NIOS2_ILLEGAL, 77)
RELOC_NUMBER (R_NIOS2_ILLEGAL, 41)
END_RELOC_NUMBERS (R_NIOS2_maxext)
 
/* Processor-specific section flags. */
112,9 → 88,4
/* Address of _gp. */
#define DT_NIOS2_GP 0x70000002
 
/* Processor specific flags for the Elf header e_flags field. */
 
#define EF_NIOS2_ARCH_R1 0x00000000
#define EF_NIOS2_ARCH_R2 0x00000001
 
#endif /* _ELF_NIOS2_H */
/contrib/toolchain/binutils/include/elf/pj.h
1,5 → 1,5
/* picoJava ELF support for BFD.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/ppc.h
1,5 → 1,6
/* PPC ELF support for BFD.
Copyright (C) 1995-2015 Free Software Foundation, Inc.
Copyright 1995, 1996, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2008,
2009, 2010 Free Software Foundation, Inc.
 
By Michael Meissner, Cygnus Support, <meissner@cygnus.com>,
from information in the System V Application Binary Interface,
149,9 → 150,6
RELOC_NUMBER (R_PPC_VLE_SDAREL_HA16A, 231)
RELOC_NUMBER (R_PPC_VLE_SDAREL_HA16D, 232)
 
/* Power9 split rel16 for addpcis. */
RELOC_NUMBER (R_PPC_REL16DX_HA, 246)
 
/* Support STT_GNU_IFUNC plt calls. */
RELOC_NUMBER (R_PPC_IRELATIVE, 248)
 
/contrib/toolchain/binutils/include/elf/ppc64.h
1,5 → 1,5
/* PPC64 ELF support for BFD.
Copyright (C) 2003-2015 Free Software Foundation, Inc.
Copyright 2003, 2005, 2009, 2010, 2011 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
149,19 → 149,10
RELOC_NUMBER (R_PPC64_DTPREL16_HIGH, 114)
RELOC_NUMBER (R_PPC64_DTPREL16_HIGHA, 115)
 
/* Added for ELFv2. */
RELOC_NUMBER (R_PPC64_REL24_NOTOC, 116)
RELOC_NUMBER (R_PPC64_ADDR64_LOCAL, 117)
RELOC_NUMBER (R_PPC64_ENTRY, 118)
 
#ifndef RELOC_MACROS_GEN_FUNC
/* Fake relocation only used internally by ld. */
RELOC_NUMBER (R_PPC64_LO_DS_OPT, 128)
#endif
 
/* Power9 split rel16 for addpcis. */
RELOC_NUMBER (R_PPC64_REL16DX_HA, 246)
 
/* Support STT_GNU_IFUNC plt calls. */
RELOC_NUMBER (R_PPC64_JMP_IREL, 247)
RELOC_NUMBER (R_PPC64_IRELATIVE, 248)
/contrib/toolchain/binutils/include/elf/reloc-macros.h
1,5 → 1,5
/* Generic relocation support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2003, 2010, 2011 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/rl78.h
1,5 → 1,5
/* RL78 ELF support for BFD.
Copyright (C) 2008-2015 Free Software Foundation, Inc.
Copyright (C) 2008-2013 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
106,14 → 106,9
/* Values for the e_flags field in the ELF header. */
#define E_FLAG_RL78_64BIT_DOUBLES (1 << 0)
#define E_FLAG_RL78_DSP (1 << 1) /* Defined in the RL78 CPU Object file specification, but not explained. */
#define E_FLAG_RL78_CPU_MASK 0x0c
#define E_FLAG_RL78_ANY_CPU 0x00 /* CPU not specified. Assume no CPU specific code usage. */
#define E_FLAG_RL78_G10 0x04 /* CPU is missing register banks 1-3, so uses different ABI. */
#define E_FLAG_RL78_G13 0x08 /* CPU uses a peripheral for multiply/divide. */
#define E_FLAG_RL78_G14 0x0c /* CPU has multiply/divide instructions. */
#define E_FLAG_RL78_G10 (1 << 2) /* CPU is missing register banks 1-3, so uses different ABI. */
 
/* These define the addend field of R_RL78_RH_RELAX relocations. */
#define RL78_RELAXA_MASK 0x000000f0 /* Mask for relax types */
#define RL78_RELAXA_BRA 0x00000010 /* Any type of branch (must be decoded). */
#define RL78_RELAXA_ADDR16 0x00000020 /* addr16->sfr/saddr opportunity */
#define RL78_RELAXA_RNUM 0x0000000f /* Number of associated relocations. */
/contrib/toolchain/binutils/include/elf/rx.h
1,5 → 1,5
/* RX ELF support for BFD.
Copyright (C) 2008-2015 Free Software Foundation, Inc.
Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
120,11 → 120,6
#define E_FLAG_RX_PID (1 << 2) /* Unofficial - DJ */
#define E_FLAG_RX_ABI (1 << 3) /* Binary passes stacked arguments using natural alignment. Unofficial - NC. */
 
#define E_FLAG_RX_SINSNS_SET (1 << 6) /* Set if bit-5 is significant. */
#define E_FLAG_RX_SINSNS_YES (1 << 7) /* Set if string instructions are used in the binary. */
#define E_FLAG_RX_SINSNS_NO 0 /* Bit-5 if this binary must not be linked with a string instruction using binary. */
#define E_FLAG_RX_SINSNS_MASK (3 << 6) /* Mask of bits used to determine string instruction use. */
 
/* These define the addend field of R_RX_RH_RELAX relocations. */
#define RX_RELAXA_IMM6 0x00000010 /* Imm8/16/24/32 at bit offset 6. */
#define RX_RELAXA_IMM12 0x00000020 /* Imm8/16/24/32 at bit offset 12. */
/contrib/toolchain/binutils/include/elf/s390.h
1,5 → 1,5
/* 390 ELF support for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2001, 2003, 2010 Free Software Foundation, Inc.
Contributed by Carl B. Pedersen and Martin Schwidefsky.
 
This file is part of BFD, the Binary File Descriptor library.
129,17 → 129,6
RELOC_NUMBER (R_390_GNU_VTENTRY, 251)
END_RELOC_NUMBERS (R_390_max)
 
/* Object attribute tags. */
enum
{
/* 0-3 are generic. */
/* 4 is reserved for the FP ABI. */
#endif /* _ELF_390_H */
 
/* Vector ABI:
0 = not affected by the vector ABI, or not tagged.
1 = software vector ABI being used
2 = hardware vector ABI being used. */
Tag_GNU_S390_ABI_Vector = 8,
};
 
#endif /* _ELF_390_H */
/contrib/toolchain/binutils/include/elf/score.h
1,5 → 1,5
/* Score ELF support for BFD.
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Contributed by
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
18,9 → 18,8
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
along with this program; if not, write to the Free Software Foundation,
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
 
#ifndef _ELF_SCORE_H
#define _ELF_SCORE_H
/contrib/toolchain/binutils/include/elf/sh.h
1,5 → 1,6
/* SH ELF support for BFD.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/sparc.h
1,5 → 1,7
/* SPARC ELF support for BFD.
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2008, 2010,
2011
Free Software Foundation, Inc.
By Doug Evans, Cygnus Support, <dje@cygnus.com>.
 
This file is part of BFD, the Binary File Descriptor library.
190,19 → 192,9
{
/* 0-3 are generic. */
Tag_GNU_Sparc_HWCAPS = 4,
Tag_GNU_Sparc_HWCAPS2 = 8
};
 
/* Generally speaking the ELF_SPARC_HWCAP_* and ELF_SPARC_HWCAP2_*
values match the AV_SPARC_* and AV2_SPARC_* bits respectively.
 
However Solaris 11 introduced a backwards-incompatible change
deprecating the RANDOM, TRANS and ASI_CACHE_SPARING bits in the
AT_SUNW_CAP_HW1 flags, reusing the bits for the unrelated hwcaps
FJATHHPC, FJDES and FJAES respectively. In GNU/Linux we opted to
keep the old hwcaps in Tag_GNU_Sparc_HWCAPS and allocate bits for
FJATHHPC, FJDES and JFAES in Tag_GNU_Sparc_HWCAPS2. */
 
/* These values match the AV_SPARC_* hwcap bits defined under Solaris. */
#define ELF_SPARC_HWCAP_MUL32 0x00000001 /* umul/umulcc/smul/smulcc insns */
#define ELF_SPARC_HWCAP_DIV32 0x00000002 /* udiv/udivcc/sdiv/sdivcc insns */
#define ELF_SPARC_HWCAP_FSMULD 0x00000004 /* 'fsmuld' insn */
236,17 → 228,4
#define ELF_SPARC_HWCAP_CBCOND 0x10000000 /* Compare and Branch insns */
#define ELF_SPARC_HWCAP_CRC32C 0x20000000 /* CRC32C insn */
 
#define ELF_SPARC_HWCAP2_FJATHPLUS 0x00000001 /* Fujitsu Athena+ */
#define ELF_SPARC_HWCAP2_VIS3B 0x00000002 /* Subset of VIS3 present on sparc64 X+ */
#define ELF_SPARC_HWCAP2_ADP 0x00000004 /* Application Data Protection */
#define ELF_SPARC_HWCAP2_SPARC5 0x00000008 /* The 29 new fp and sub instructions */
#define ELF_SPARC_HWCAP2_MWAIT 0x00000010 /* mwait instruction and load/monitor ASIs */
#define ELF_SPARC_HWCAP2_XMPMUL 0x00000020 /* XOR multiple precision multiply */
#define ELF_SPARC_HWCAP2_XMONT 0x00000040 /* XOR Montgomery mult/sqr instructions */
#define ELF_SPARC_HWCAP2_NSEC \
0x00000080 /* pause insn with support for nsec timings */
#define ELF_SPARC_HWCAP2_FJATHHPC 0x00001000 /* Fujitsu HPC instrs */
#define ELF_SPARC_HWCAP2_FJDES 0x00002000 /* Fujitsu DES instrs */
#define ELF_SPARC_HWCAP2_FJAES 0x00010000 /* Fujitsu AES instrs */
 
#endif /* _ELF_SPARC_H */
/contrib/toolchain/binutils/include/elf/spu.h
1,6 → 1,6
/* SPU ELF support for BFD.
 
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/tic6x-attrs.h
1,5 → 1,6
/* TI C6X ELF attributes.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/tic6x.h
1,5 → 1,6
/* TI C6X ELF support for BFD.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010, 2011
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/tilegx.h
1,5 → 1,5
/* TILE-Gx ELF support for BFD.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/tilepro.h
1,5 → 1,5
/* TILEPro ELF support for BFD.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/v850.h
1,5 → 1,5
/* V850 ELF support for BFD.
Copyright (C) 1997-2015 Free Software Foundation, Inc.
Copyright 1997-2013 Free Software Foundation, Inc.
Created by Michael Meissner, Cygnus Support <meissner@cygnus.com>
 
This file is part of BFD, the Binary File Descriptor library.
158,8 → 158,12
 
#define EF_RH850_FPU_DOUBLE 0x00000001 /* sizeof(double) == 8. */
#define EF_RH850_FPU_SINGLE 0x00000002 /* sizeof(double) == 4. */
#define EF_RH850_SIMD 0x00000004
#define EF_RH850_CACHE 0x00000008
#define EF_RH850_MMU 0x00000010
#define EF_RH850_REGMODE22 0x00000020 /* Registers r15-r24 (inclusive) are not used. */
#define EF_RH850_REGMODE32 0x00000040
#define EF_RH850_DATA_ALIGN8 0x00000080 /* 8-byte alignment supported. */
#define EF_RH850_GP_FIX 0x00000100 /* r4 is fixed. */
#define EF_RH850_GP_NOFIX 0x00000200 /* r4 is callee save. */
#define EF_RH850_EP_FIX 0x00000400 /* r30 is fixed. */
169,7 → 173,7
#define EF_RH850_REG2_RESERVE 0x00004000 /* r2 is fixed. */
#define EF_RH850_REG2_NORESERVE 0x00008000 /* r2 is callee saved. */
 
#define SHT_RENESAS_IOP SHT_LOUSER /* Used by Renesas linker. */
#define SHT_RNESAS_IOP SHT_LOUSER /* Used by Renesas linker. */
 
#define SHF_RENESAS_ABS 0x80000000 /* Absolute section. */
#define SHF_GHS_ABS 0x00000400 /* Use unknown. */
276,54 → 280,4
 
END_RELOC_NUMBERS (R_V800_max)
 
/* Type for Renesas note sections. NB/ This is in application space
rather than processor space as it refers to the requirements of the
binary concerned. A given processor may be able to handle multiple
different types of application. */
#define SHT_RENESAS_INFO 0xa0000000
 
/* Contents of a Renesas note entry:
 
namesz +------------------+
| 4 | "REL\0"
descsz +------------------+
| 4 | Currently 4byte only
type +------------------+
| ID |
name +------------------+
| REL\0 |
desc +------------------+
| Value |
+------------------+ */
 
#define V850_NOTE_SECNAME ".note.renesas"
#define SIZEOF_V850_NOTE 20
#define V850_NOTE_NAME "REL"
 
enum v850_notes
{
V850_NOTE_ALIGNMENT = 1, /* Alignment of 8-byte entities. */
#define EF_RH850_DATA_ALIGN4 0x0001 /* Aligned to 4-byte bounadries. */
#define EF_RH850_DATA_ALIGN8 0x0002 /* Aligned to 8-byte bounadries. */
 
V850_NOTE_DATA_SIZE = 2, /* Sizeof double and long double. */
#define EF_RH850_DOUBLE32 0x0001 /* 32-bits in size. */
#define EF_RH850_DOUBLE64 0x0002 /* 64-bits in size. */
 
V850_NOTE_FPU_INFO = 3, /* Defined if extended floating point insns are used. */
#define EF_RH850_FPU20 0x0001 /* Set if [N]]M{ADD|SUB}F.S are used. */
#define EF_RH850_FPU30 0x0002 /* Set if ADSF.D or ADDF.D is used. */
 
V850_NOTE_SIMD_INFO = 4,
#define EF_RH850_SIMD 0x0001
 
V850_NOTE_CACHE_INFO = 5,
#define EF_RH850_CACHE 0x0001
 
V850_NOTE_MMU_INFO = 6
#define EF_RH850_MMU 0x0001
};
 
#define NUM_V850_NOTES V850_NOTE_MMU_INFO
 
#endif /* _ELF_V850_H */
/contrib/toolchain/binutils/include/elf/vax.h
1,5 → 1,5
/* VAX ELF support for BFD.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright (C) 2002, 2010 Free Software Foundation, Inc.
Contributed by Matt Thomas <matt@3am-software.com>.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/vxworks.h
1,5 → 1,6
/* VxWorks ELF support for BFD.
Copyright (C) 2007-2015 Free Software Foundation, Inc.
Copyright 2007, 2010
Free Software Foundation, Inc.
 
Contributed by Nathan Sidwell <nathan@codesourcery.com>
 
/contrib/toolchain/binutils/include/elf/x86-64.h
1,5 → 1,6
/* x86_64 ELF support for BFD.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2008, 2009, 2010
Free Software Foundation, Inc.
Contributed by Jan Hubicka <jh@suse.cz>
 
This file is part of BFD, the Binary File Descriptor library.
58,7 → 59,8
offset to GOT entry */
RELOC_NUMBER (R_X86_64_GOTPC64, 29) /* 64 bit signed pc relative
offset to GOT */
RELOC_NUMBER (R_X86_64_GOTPLT64, 30) /* Obsolete. The same as GOT64. */
RELOC_NUMBER (R_X86_64_GOTPLT64, 30) /* like GOT64, but indicates
that PLT entry is needed */
RELOC_NUMBER (R_X86_64_PLTOFF64, 31) /* 64 bit GOT relative offset
to PLT entry */
RELOC_NUMBER (R_X86_64_SIZE32, 32) /* 32-bit symbol size */
76,12 → 78,6
signed with BND prefix */
RELOC_NUMBER (R_X86_64_PLT32_BND, 40) /* 32 bit PLT address with
BND prefix */
/* Load from 32 bit signed pc relative offset to GOT entry without
REX prefix, relaxable. */
RELOC_NUMBER (R_X86_64_GOTPCRELX, 41)
/* Load from 32 bit signed pc relative offset to GOT entry with
REX prefix, relaxable. */
RELOC_NUMBER (R_X86_64_REX_GOTPCRELX, 42)
RELOC_NUMBER (R_X86_64_GNU_VTINHERIT, 250) /* GNU C++ hack */
RELOC_NUMBER (R_X86_64_GNU_VTENTRY, 251) /* GNU C++ hack */
END_RELOC_NUMBERS (R_X86_64_max)
/contrib/toolchain/binutils/include/elf/xc16x.h
1,5 → 1,5
/* Infineon XC16X ELF support for BFD.
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2010 Free Software Foundation, Inc.
Contributed by KPIT Cummins Infosystems
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/elf/xgate.h
1,5 → 1,5
/* XGATE ELF support for BFD.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010, 2011, 2012 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/xstormy16.h
1,5 → 1,5
/* XSTORMY16 ELF support for BFD.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/elf/xtensa.h
1,5 → 1,5
/* Xtensa ELF support for BFD.
Copyright (C) 2003-2015 Free Software Foundation, Inc.
Copyright 2003, 2004, 2007, 2008, 2010 Free Software Foundation, Inc.
Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/fibheap.h
1,5 → 1,6
/* A Fibonacci heap datatype.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009
Free Software Foundation, Inc.
Contributed by Daniel Berlin (dan@cgsoftware.com).
 
This file is part of GCC.
/contrib/toolchain/binutils/include/filenames.h
5,7 → 5,7
use forward- and back-slash in path names interchangeably, and
some of them have case-insensitive file names.
 
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2001, 2007, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
90,8 → 90,6
 
extern int filename_eq (const void *s1, const void *s2);
 
extern int canonical_filename_eq (const char *a, const char *b);
 
#ifdef __cplusplus
}
#endif
/contrib/toolchain/binutils/include/floatformat.h
1,5 → 1,6
/* IEEE floating point support declarations, for GDB, the GNU Debugger.
Copyright (C) 1991-2015 Free Software Foundation, Inc.
Copyright 1991, 1994, 1995, 1997, 2000, 2003, 2005, 2010
Free Software Foundation, Inc.
 
This file is part of GDB.
 
22,10 → 23,6
 
#include "ansidecl.h"
 
#ifdef __cplusplus
extern "C" {
#endif
 
/* A floatformat consists of a sign bit, an exponent and a mantissa. Once the
bytes are concatenated according to the byteorder flag, then each of those
fields is contiguous. We number the bits with 0 being the most significant
152,8 → 149,4
extern int
floatformat_is_valid (const struct floatformat *fmt, const void *from);
 
#ifdef __cplusplus
}
#endif
 
#endif /* defined (FLOATFORMAT_H) */
/contrib/toolchain/binutils/include/fnmatch.h
1,4 → 1,4
/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
/* Copyright 1991, 1992, 1993, 1996 Free Software Foundation, Inc.
 
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@prep.ai.mit.edu.
/contrib/toolchain/binutils/include/fopen-bin.h
7,7 → 7,7
cope with a "b" in the string, indicating binary files, but some reject this
(and thereby don't conform to ANSI C, but what else is new?).
 
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996-2012 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/fopen-same.h
7,7 → 7,7
"b" to the string, indicating binary files, but some reject this
(and thereby don't conform to ANSI C, but what else is new?).
 
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996-2012 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/fopen-vms.h
5,7 → 5,7
This version is for VMS systems, where text and binary files are
different.
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996-2012 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/gdb/section-scripts.h
File deleted
/contrib/toolchain/binutils/include/gdb/sim-ft32.h
File deleted
/contrib/toolchain/binutils/include/gdb/ChangeLog
1,56 → 1,3
2015-11-10 Mike Frysinger <vapier@gentoo.org>
 
* sim-cr16.h (sim_cr16_translate_dmap_addr): Delete.
(sim_cr16_translate_imap_addr): Likewise.
(sim_cr16_translate_addr): Likewise.
* sim-d10v.h (sim_d10v_translate_dmap_addr): Delete.
(sim_d10v_translate_imap_addr): Likewise.
(sim_d10v_translate_addr): Likewise.
 
2015-06-17 Mike Frysinger <vapier@gentoo.org>
 
* callback.h (CB_TARGET_DEFS_MAP): Add name member.
(cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
Declare.
 
2015-03-28 James Bowman <james.bowman@ftdichip.com>
 
* sim-ft32.h: New file.
 
2015-05-15 Mike Frysinger <vapier@gentoo.org>
 
* remote-sim.h (struct host_callback_struct): Define.
 
2015-01-31 Doug Evans <xdje42@gmail.com>
 
* section-scripts.h: Remove "future extension" comment.
(SECTION_SCRIPT_ID_PYTHON_TEXT): New macro.
(SECTION_SCRIPT_ID_SCHEME_TEXT): New macro.
 
2014-12-03 Joel Brobecker <brobecker@adacore.com>
 
* callback.h (struct host_callback_struct) <to_stat>: Renamed
from "stat".
<to_fstat>: Renamed from "fstat".
<to_lstat>: Renamed from "lstat".
 
2014-03-10 Mike Frysinger <vapier@gentoo.org>
 
* remote-sim.h (sim_do_command): Add const to cmd.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright notice.
 
2014-03-05 Mike Frysinger <vapier@gentoo.org>
 
* remote-sim.h (sim_load): Add const to prog.
 
2014-02-09 Doug Evans <xdje42@gmail.com>
 
* section-scripts.h: New file.
 
2013-03-15 Steve Ellcey <sellcey@mips.com>
 
* gdb/remote-sim.h (sim_command_completer): Make char arguments const.
311,7 → 258,7
* signals.h: New file, from gdb/defs.h.
 
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright (C) 2002-2013 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/gdb/callback.h
1,5 → 1,5
/* Remote target system call callback support.
Copyright (C) 1997-2015 Free Software Foundation, Inc.
Copyright 1997-2013 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
 
This file is part of GDB.
59,7 → 59,6
name of the symbol. */
 
typedef struct {
const char *name;
int host_val;
int target_val;
} CB_TARGET_DEFS_MAP;
89,9 → 88,9
void (*flush_stdout) (host_callback *);
int (*write_stderr) (host_callback *, const char *, int);
void (*flush_stderr) (host_callback *);
int (*to_stat) (host_callback *, const char *, struct stat *);
int (*to_fstat) (host_callback *, int, struct stat *);
int (*to_lstat) (host_callback *, const char *, struct stat *);
int (*stat) (host_callback *, const char *, struct stat *);
int (*fstat) (host_callback *, int, struct stat *);
int (*lstat) (host_callback *, const char *, struct stat *);
int (*ftruncate) (host_callback *, int, long);
int (*truncate) (host_callback *, const char *, long);
int (*pipe) (host_callback *, int *);
317,14 → 316,6
/* Translate host signal number to target. */
int cb_host_to_gdb_signal (host_callback *, int);
 
/* Translate symbols into human readable strings. */
const char *cb_host_str_syscall (host_callback *, int);
const char *cb_host_str_errno (host_callback *, int);
const char *cb_host_str_signal (host_callback *, int);
const char *cb_target_str_syscall (host_callback *, int);
const char *cb_target_str_errno (host_callback *, int);
const char *cb_target_str_signal (host_callback *, int);
 
/* Translate host stat struct to target.
If stat struct ptr is NULL, just compute target stat struct size.
Result is size of target stat struct or 0 if error. */
/contrib/toolchain/binutils/include/gdb/fileio.h
1,6 → 1,6
/* Hosted File I/O interface definitions, for GDB, the GNU Debugger.
 
Copyright (C) 2003-2015 Free Software Foundation, Inc.
Copyright 2003-2013 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/gdb/gdb-index.h
1,5 → 1,5
/* Public attributes of the .gdb_index section.
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copyright 2012-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
68,7 → 68,7
Give the unused bits a value so gdb will print them sensibly. */
GDB_INDEX_SYMBOL_KIND_UNUSED5 = 5,
GDB_INDEX_SYMBOL_KIND_UNUSED6 = 6,
GDB_INDEX_SYMBOL_KIND_UNUSED7 = 7
GDB_INDEX_SYMBOL_KIND_UNUSED7 = 7,
} gdb_index_symbol_kind;
 
#define GDB_INDEX_SYMBOL_KIND_SHIFT 28
/contrib/toolchain/binutils/include/gdb/remote-sim.h
1,6 → 1,6
/* This file defines the interface between the simulator and gdb.
 
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
60,10 → 60,9
} SIM_RC;
 
 
/* Some structs, as opaque types. */
/* The bfd struct, as an opaque type. */
 
struct bfd;
struct host_callback_struct;
 
 
/* Main simulator entry points. */
141,7 → 140,7
Such manipulation should probably (?) occure in
sim_create_inferior. */
 
SIM_RC sim_load (SIM_DESC sd, const char *prog, struct bfd *abfd, int from_tty);
SIM_RC sim_load (SIM_DESC sd, char *prog, struct bfd *abfd, int from_tty);
 
 
/* Prepare to run the simulated program.
274,7 → 273,7
Simulators should be prepared to deal with any combination of NULL
or empty CMD. */
 
void sim_do_command (SIM_DESC sd, const char *cmd);
void sim_do_command (SIM_DESC sd, char *cmd);
 
/* Complete a command based on the available sim commands. Returns an
array of possible matches. */
/contrib/toolchain/binutils/include/gdb/signals.def
1,5 → 1,5
/* Target signal numbers for GDB and the GDB remote protocol.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
186,15 → 186,15
/* Mach exceptions. In versions of GDB before 5.2, these were just before
GDB_SIGNAL_INFO if you were compiling on a Mach host (and missing
otherwise). */
SET (GDB_EXC_BAD_ACCESS, 145, "EXC_BAD_ACCESS", "Could not access memory")
SET (GDB_EXC_BAD_INSTRUCTION, 146, "EXC_BAD_INSTRUCTION",
SET (TARGET_EXC_BAD_ACCESS, 145, "EXC_BAD_ACCESS", "Could not access memory")
SET (TARGET_EXC_BAD_INSTRUCTION, 146, "EXC_BAD_INSTRUCTION",
"Illegal instruction/operand")
SET (GDB_EXC_ARITHMETIC, 147, "EXC_ARITHMETIC", "Arithmetic exception")
SET (GDB_EXC_EMULATION, 148, "EXC_EMULATION", "Emulation instruction")
SET (GDB_EXC_SOFTWARE, 149, "EXC_SOFTWARE", "Software generated exception")
SET (GDB_EXC_BREAKPOINT, 150, "EXC_BREAKPOINT", "Breakpoint")
SET (TARGET_EXC_ARITHMETIC, 147, "EXC_ARITHMETIC", "Arithmetic exception")
SET (TARGET_EXC_EMULATION, 148, "EXC_EMULATION", "Emulation instruction")
SET (TARGET_EXC_SOFTWARE, 149, "EXC_SOFTWARE", "Software generated exception")
SET (TARGET_EXC_BREAKPOINT, 150, "EXC_BREAKPOINT", "Breakpoint")
 
/* If you are adding a new signal, add it just above this comment. */
 
/* Last and unused enum value, for sizing arrays, etc. */
SET (GDB_SIGNAL_LAST, 151, NULL, "GDB_SIGNAL_LAST")
SET (GDB_SIGNAL_LAST, 151, NULL, "GDB_SIGNAL_MAGIC")
/contrib/toolchain/binutils/include/gdb/signals.h
1,5 → 1,5
/* Target signal numbers for GDB and the GDB remote protocol.
Copyright (C) 1986-2015 Free Software Foundation, Inc.
Copyright 1986-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/gdb/sim-arm.h
1,6 → 1,6
/* This file defines the interface between the Arm simulator and GDB.
 
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright 2002-2013 Free Software Foundation, Inc.
 
Contributed by Red Hat.
 
/contrib/toolchain/binutils/include/gdb/sim-bfin.h
1,6 → 1,6
/* This file defines the interface between the Blackfin simulator and GDB.
 
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Copyright (C) 2005-2013 Free Software Foundation, Inc.
Contributed by Analog Devices.
 
This file is part of GDB.
/contrib/toolchain/binutils/include/gdb/sim-cr16.h
1,6 → 1,6
/* This file defines the interface between the cr16 simulator and gdb.
 
Copyright (C) 2008-2015 Free Software Foundation, Inc.
Copyright 2008-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
33,6 → 33,29
SIM_CR16_MEMORY_IMAP = 0x10000000
};
 
extern unsigned long sim_cr16_translate_dmap_addr
(unsigned long offset,
int nr_bytes,
unsigned long *phys,
void *regcache,
unsigned long (*dmap_register) (void *regcache, int reg_nr));
 
extern unsigned long sim_cr16_translate_imap_addr
(unsigned long offset,
int nr_bytes,
unsigned long *phys,
void *regcache,
unsigned long (*imap_register) (void *regcache, int reg_nr));
 
extern unsigned long sim_cr16_translate_addr
(unsigned long vaddr,
int nr_bytes,
unsigned long *phys,
void *regcache,
unsigned long (*dmap_register) (void *regcache, int reg_nr),
unsigned long (*imap_register) (void *regcache, int reg_nr));
 
 
/* The simulator makes use of the following register information. */
 
enum sim_cr16_regs
/contrib/toolchain/binutils/include/gdb/sim-d10v.h
1,6 → 1,6
/* This file defines the interface between the d10v simulator and gdb.
 
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
53,6 → 53,29
SIM_D10V_MEMORY_IMAP = 0x11000000
};
 
extern unsigned long sim_d10v_translate_dmap_addr
(unsigned long offset,
int nr_bytes,
unsigned long *phys,
void *regcache,
unsigned long (*dmap_register) (void *regcache, int reg_nr));
 
extern unsigned long sim_d10v_translate_imap_addr
(unsigned long offset,
int nr_bytes,
unsigned long *phys,
void *regcache,
unsigned long (*imap_register) (void *regcache, int reg_nr));
 
extern unsigned long sim_d10v_translate_addr
(unsigned long vaddr,
int nr_bytes,
unsigned long *phys,
void *regcache,
unsigned long (*dmap_register) (void *regcache, int reg_nr),
unsigned long (*imap_register) (void *regcache, int reg_nr));
 
 
/* The simulator makes use of the following register information. */
 
enum sim_d10v_regs
/contrib/toolchain/binutils/include/gdb/sim-frv.h
1,6 → 1,6
/* This file defines the interface between the FR-V simulator and GDB.
 
Copyright (C) 2003-2015 Free Software Foundation, Inc.
Copyright 2003-2013 Free Software Foundation, Inc.
 
Contributed by Red Hat.
 
/contrib/toolchain/binutils/include/gdb/sim-h8300.h
1,5 → 1,5
/* This file defines the interface between the h8300 simulator and gdb.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright (C) 2002-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/gdb/sim-lm32.h
1,7 → 1,7
/* This file defines the interface between the LM32 simulator and GDB.
Contributed by Jon Beniston <jon@beniston.com>
 
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright (C) 2009-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/gdb/sim-m32c.h
1,5 → 1,5
/* This file defines the interface between the m32c simulator and gdb.
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Copyright (C) 2005-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/gdb/sim-ppc.h
1,6 → 1,6
/* sim-ppc.h --- interface between PowerPC simulator and GDB.
 
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright 2004-2013 Free Software Foundation, Inc.
 
Contributed by Red Hat.
 
/contrib/toolchain/binutils/include/gdb/sim-rl78.h
1,6 → 1,6
/* sim-rx.h --- interface between rl78 simulator and GDB.
 
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011-2013 Free Software Foundation, Inc.
 
Contributed by Red Hat.
 
/contrib/toolchain/binutils/include/gdb/sim-rx.h
1,6 → 1,6
/* sim-rx.h --- interface between RX simulator and GDB.
 
Copyright (C) 2008-2015 Free Software Foundation, Inc.
Copyright 2008-2013 Free Software Foundation, Inc.
 
Contributed by Red Hat.
 
/contrib/toolchain/binutils/include/gdb/sim-sh.h
1,5 → 1,5
/* This file defines the interface between the sh simulator and gdb.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000-2013 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/getopt.h
1,5 → 1,6
/* Declarations for getopt.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000,
2002 Free Software Foundation, Inc.
 
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@gnu.org.
/contrib/toolchain/binutils/include/hashtab.h
1,5 → 1,6
/* An expandable hash tables datatype.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2009, 2010
Free Software Foundation, Inc.
Contributed by Vladimir Makarov (vmakarov@cygnus.com).
 
This program is free software; you can redistribute it and/or modify
38,6 → 39,10
 
#include "ansidecl.h"
 
#ifndef GTY
#define GTY(X)
#endif
 
/* The type for a hash code. */
typedef unsigned int hashval_t;
 
92,7 → 97,7
functions mentioned below. The size of this structure is subject to
change. */
 
struct htab {
struct GTY(()) htab {
/* Pointer to hash function. */
htab_hash hash_f;
 
103,7 → 108,7
htab_del del_f;
 
/* Table itself. */
void **entries;
void ** GTY ((use_param, length ("%h.size"))) entries;
 
/* Current size (in entries) of the hash table. */
size_t size;
127,7 → 132,7
htab_free free_f;
 
/* Alternate allocate/free functions, which take an extra argument. */
void *alloc_arg;
void * GTY((skip)) alloc_arg;
htab_alloc_with_arg alloc_with_arg_f;
htab_free_with_arg free_with_arg_f;
 
/contrib/toolchain/binutils/include/hp-symtab.h
4,7 → 4,7
Written by the Center for Software Science at the University of Utah
and by Cygnus Support.
 
Copyright (C) 1994-2015 Free Software Foundation, Inc.
Copyright 1994, 1995, 1998, 1999, 2003 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/ieee.h
1,6 → 1,6
/* IEEE Standard 695-1980 "Universal Format for Object Modules" header file
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/leb128.h
1,5 → 1,5
/* Utilities for reading leb128 values.
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copyright (C) 2012 Free Software Foundation, Inc.
 
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
/contrib/toolchain/binutils/include/libiberty.h
1,6 → 1,7
/* Function declarations for libiberty.
 
Copyright (C) 1997-2015 Free Software Foundation, Inc.
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 
Note - certain prototypes declared in this header file are for
functions whoes implementation copyright does not belong to the
45,7 → 46,6
#include <stddef.h>
/* Get a definition for va_list. */
#include <stdarg.h>
#include <libgen.h>
 
#include <stdio.h>
 
85,11 → 85,11
 
/* Expand "@file" arguments in argv. */
 
extern void expandargv (int *, char ***);
extern void expandargv PARAMS ((int *, char ***));
 
/* Write argv to an @-file, inserting necessary quoting. */
 
extern int writeargv (char **, FILE *);
extern int writeargv PARAMS ((char **, FILE *));
 
/* Return the number of elements in argv. */
 
105,13 → 105,9
declaration without arguments. If it is 0, we checked and failed
to find the declaration so provide a fully prototyped one. If it
is 1, we found it so don't provide any declaration at all. */
 
#if !HAVE_DECL_BASENAME
#if defined (__GNU_LIBRARY__ ) || defined (__linux__) \
|| defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) \
|| defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) \
|| defined (__DragonFly__) || defined (HAVE_DECL_BASENAME)
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (HAVE_DECL_BASENAME)
extern char *basename (const char *);
#else
/* Do not allow basename to be used if there is no prototype seen. We
either need to use the above prototype or have one from
122,18 → 118,18
 
/* A well-defined basename () that is always compiled in. */
 
extern const char *lbasename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
extern const char *lbasename (const char *);
 
/* Same, but assumes DOS semantics (drive name, backslash is also a
dir separator) regardless of host. */
 
extern const char *dos_lbasename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
extern const char *dos_lbasename (const char *);
 
/* Same, but assumes Unix semantics (absolute paths always start with
a slash, only forward slash is accepted as dir separator)
regardless of host. */
 
extern const char *unix_lbasename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
extern const char *unix_lbasename (const char *);
 
/* A well-defined realpath () that is always compiled in. */
 
143,7 → 139,7
the last argument of this function, to terminate the list of
strings. Allocates memory using xmalloc. */
 
extern char *concat (const char *, ...) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_SENTINEL;
extern char *concat (const char *, ...) ATTRIBUTE_MALLOC ATTRIBUTE_SENTINEL;
 
/* Concatenate an arbitrary number of strings. You must pass NULL as
the last argument of this function, to terminate the list of
152,7 → 148,7
pointer to be freed after the new string is created, similar to the
way xrealloc works. */
 
extern char *reconcat (char *, const char *, ...) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_SENTINEL;
extern char *reconcat (char *, const char *, ...) ATTRIBUTE_MALLOC ATTRIBUTE_SENTINEL;
 
/* Determine the length of concatenating an arbitrary number of
strings. You must pass NULL as the last argument of this function,
165,7 → 161,7
to terminate the list of strings. The supplied memory is assumed
to be large enough. */
 
extern char *concat_copy (char *, const char *, ...) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1) ATTRIBUTE_SENTINEL;
extern char *concat_copy (char *, const char *, ...) ATTRIBUTE_SENTINEL;
 
/* Concatenate an arbitrary number of strings into a GLOBAL area of
memory. You must pass NULL as the last argument of this function,
172,7 → 168,7
to terminate the list of strings. The supplied memory is assumed
to be large enough. */
 
extern char *concat_copy2 (const char *, ...) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_SENTINEL;
extern char *concat_copy2 (const char *, ...) ATTRIBUTE_SENTINEL;
 
/* This is the global area used by concat_copy2. */
 
228,14 → 224,9
extern char *make_relative_prefix_ignore_links (const char *, const char *,
const char *) ATTRIBUTE_MALLOC;
 
/* Returns a pointer to a directory path suitable for creating temporary
files in. */
 
extern const char *choose_tmpdir (void) ATTRIBUTE_RETURNS_NONNULL;
 
/* Choose a temporary directory to use for scratch files. */
 
extern char *choose_temp_base (void) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL;
extern char *choose_temp_base (void) ATTRIBUTE_MALLOC;
 
/* Return a temporary file name or NULL if unable to create one. */
 
265,7 → 256,7
 
/* ANSI's strerror(), but more robust. */
 
extern char *xstrerror (int) ATTRIBUTE_RETURNS_NONNULL;
extern char *xstrerror (int);
 
/* Return the maximum signal number for which strsignal will return a
string. */
307,30 → 298,30
message to stderr (using the name set by xmalloc_set_program_name,
if any) and then call xexit. */
 
extern void *xmalloc (size_t) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL;
extern void *xmalloc (size_t) ATTRIBUTE_MALLOC;
 
/* Reallocate memory without fail. This works like xmalloc. Note,
realloc type functions are not suitable for attribute malloc since
they may return the same address across multiple calls. */
 
extern void *xrealloc (void *, size_t) ATTRIBUTE_RETURNS_NONNULL;
extern void *xrealloc (void *, size_t);
 
/* Allocate memory without fail and set it to zero. This works like
xmalloc. */
 
extern void *xcalloc (size_t, size_t) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL;
extern void *xcalloc (size_t, size_t) ATTRIBUTE_MALLOC;
 
/* Copy a string into a memory buffer without fail. */
 
extern char *xstrdup (const char *) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL;
extern char *xstrdup (const char *) ATTRIBUTE_MALLOC;
 
/* Copy at most N characters from string into a buffer without fail. */
 
extern char *xstrndup (const char *, size_t) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL;
extern char *xstrndup (const char *, size_t) ATTRIBUTE_MALLOC;
 
/* Copy an existing memory buffer to a new memory buffer without fail. */
 
extern void *xmemdup (const void *, size_t, size_t) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL;
extern void *xmemdup (const void *, size_t, size_t) ATTRIBUTE_MALLOC;
 
/* Physical memory routines. Return values are in BYTES. */
extern double physmem_total (void);
408,7 → 399,7
Returns NULL on error. */
 
extern struct pex_obj *pex_init (int flags, const char *pname,
const char *tempbase) ATTRIBUTE_RETURNS_NONNULL;
const char *tempbase);
 
/* Flags for pex_run. These are bits to be or'ed together. */
 
451,12 → 442,7
on Unix. */
#define PEX_BINARY_ERROR 0x80
 
/* Append stdout to existing file instead of truncating it. */
#define PEX_STDOUT_APPEND 0x100
 
/* Thes same as PEX_STDOUT_APPEND, but for STDERR. */
#define PEX_STDERR_APPEND 0x200
 
/* Execute one program. Returns NULL on success. On error returns an
error string (typically just the name of a system call); the error
string is statically allocated.
623,7 → 609,7
 
extern int pwait (int, int *, int);
 
#if defined(HAVE_DECL_ASPRINTF) && !HAVE_DECL_ASPRINTF
#if !HAVE_DECL_ASPRINTF
/* Like sprintf but provides a pointer to malloc'd storage, which must
be freed by the caller. */
 
630,11 → 616,6
extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
#endif
 
/* Like asprintf but allocates memory without fail. This works like
xmalloc. */
 
extern char *xasprintf (const char *, ...) ATTRIBUTE_MALLOC ATTRIBUTE_PRINTF_1;
 
#if !HAVE_DECL_VASPRINTF
/* Like vsprintf but provides a pointer to malloc'd storage, which
must be freed by the caller. */
642,11 → 623,6
extern int vasprintf (char **, const char *, va_list) ATTRIBUTE_PRINTF(2,0);
#endif
 
/* Like vasprintf but allocates memory without fail. This works like
xmalloc. */
 
extern char *xvasprintf (const char *, va_list) ATTRIBUTE_MALLOC ATTRIBUTE_PRINTF(1,0);
 
#if defined(HAVE_DECL_SNPRINTF) && !HAVE_DECL_SNPRINTF
/* Like sprintf but prints at most N characters. */
extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3;
657,42 → 633,11
extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0);
#endif
 
#if defined (HAVE_DECL_STRNLEN) && !HAVE_DECL_STRNLEN
extern size_t strnlen (const char *, size_t);
#endif
 
#if defined(HAVE_DECL_STRVERSCMP) && !HAVE_DECL_STRVERSCMP
/* Compare version strings. */
extern int strverscmp (const char *, const char *);
#endif
 
#if defined(HAVE_DECL_STRTOL) && !HAVE_DECL_STRTOL
extern long int strtol (const char *nptr,
char **endptr, int base);
#endif
 
#if defined(HAVE_DECL_STRTOUL) && !HAVE_DECL_STRTOUL
extern unsigned long int strtoul (const char *nptr,
char **endptr, int base);
#endif
 
#if defined(HAVE_LONG_LONG) && defined(HAVE_DECL_STRTOLL) && !HAVE_DECL_STRTOLL
__extension__
extern long long int strtoll (const char *nptr,
char **endptr, int base);
#endif
 
#if defined(HAVE_LONG_LONG) && defined(HAVE_DECL_STRTOULL) && !HAVE_DECL_STRTOULL
__extension__
extern unsigned long long int strtoull (const char *nptr,
char **endptr, int base);
#endif
 
#if defined(HAVE_DECL_STRVERSCMP) && !HAVE_DECL_STRVERSCMP
/* Compare version strings. */
extern int strverscmp (const char *, const char *);
#endif
 
/* Set the title of a process */
extern void setproctitle (const char *name, ...);
 
/contrib/toolchain/binutils/include/lto-symtab.h
1,5 → 1,5
/* Data types used in the IL symbol table.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright (C) 2009 Free Software Foundation, Inc.
Contributed by Rafael Espindola <espindola@google.com>
 
This file is part of GCC.
/contrib/toolchain/binutils/include/mach-o/unwind.h
File deleted
/contrib/toolchain/binutils/include/mach-o/ChangeLog
1,38 → 1,3
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-04-16 Tristan Gingold <gingold@adacore.com>
 
* loader.h: Add macros for rebase, bind and export constants.
 
2014-04-16 Tristan Gingold <gingold@adacore.com>
 
* loader.h (BFD_MACH_O_CPU_ARCH_MASK, BFD_MACH_O_CPU_ARCH_ABI64)
(BFD_MACH_O_CPU_SUBTYPE_MASK, BFD_MACH_O_CPU_SUBTYPE_LIB64): Define.
 
2014-04-03 Tristan Gingold <gingold@adacore.com>
 
* unwind.h (mach_o_compact_unwind_64): Fix typo in personality.
 
2014-04-02 Tristan Gingold <gingold@adacore.com>
 
* external.h (mach_o_prebound_dylib_command_external)
(mach_o_prebind_cksum_command_external)
(mach_o_twolevel_hints_command_external): New types.
 
2014-03-26 Tristan Gingold <gingold@adacore.com>
 
* loader.h (bfd_mach_o_cpu_type): Add BFD_MACH_O_CPU_TYPE_ARM64.
 
2014-03-17 Tristan Gingold <gingold@adacore.com>
 
* unwind.h: New file.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2012-11-14 Tristan Gingold <gingold@adacore.com>
 
* external.h (mach_o_entry_point_command_external)
102,7 → 67,7
 
* loader.h: New file.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright (C) 2011-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/mach-o/arm.h
1,5 → 1,6
/* Mach-O arm declarations for BFD.
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copyright 2012
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/mach-o/codesign.h
1,5 → 1,6
/* Mach-O support for BFD.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/mach-o/external.h
1,5 → 1,6
/* Mach-O support for BFD.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011, 2012
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
287,24 → 288,6
unsigned char export_size[4];
};
 
struct mach_o_prebound_dylib_command_external
{
unsigned char name[4];
unsigned char nmodules[4];
unsigned char linked_modules[4];
};
 
struct mach_o_prebind_cksum_command_external
{
unsigned char cksum[4];
};
 
struct mach_o_twolevel_hints_command_external
{
unsigned char offset[4];
unsigned char nhints[4];
};
 
struct mach_o_version_min_command_external
{
unsigned char version[4];
/contrib/toolchain/binutils/include/mach-o/loader.h
1,5 → 1,6
/* Mach-O support for BFD.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011, 2012
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
32,10 → 33,7
}
bfd_mach_o_mach_header_magic;
 
/* Capability bits in cpu type. */
#define BFD_MACH_O_CPU_ARCH_MASK 0xff000000
#define BFD_MACH_O_CPU_ARCH_ABI64 0x01000000
#define BFD_MACH_O_CPU_IS64BIT 0x01000000
#define BFD_MACH_O_CPU_IS64BIT 0x1000000
 
typedef enum bfd_mach_o_cpu_type
{
51,19 → 49,11
BFD_MACH_O_CPU_TYPE_I860 = 15,
BFD_MACH_O_CPU_TYPE_ALPHA = 16,
BFD_MACH_O_CPU_TYPE_POWERPC = 18,
BFD_MACH_O_CPU_TYPE_POWERPC_64 =
(BFD_MACH_O_CPU_TYPE_POWERPC | BFD_MACH_O_CPU_IS64BIT),
BFD_MACH_O_CPU_TYPE_X86_64 =
(BFD_MACH_O_CPU_TYPE_I386 | BFD_MACH_O_CPU_IS64BIT),
BFD_MACH_O_CPU_TYPE_ARM64 =
(BFD_MACH_O_CPU_TYPE_ARM | BFD_MACH_O_CPU_IS64BIT)
BFD_MACH_O_CPU_TYPE_POWERPC_64 = (BFD_MACH_O_CPU_TYPE_POWERPC | BFD_MACH_O_CPU_IS64BIT),
BFD_MACH_O_CPU_TYPE_X86_64 = (BFD_MACH_O_CPU_TYPE_I386 | BFD_MACH_O_CPU_IS64BIT)
}
bfd_mach_o_cpu_type;
 
/* Capability bits in cpu subtype. */
#define BFD_MACH_O_CPU_SUBTYPE_MASK 0xff000000
#define BFD_MACH_O_CPU_SUBTYPE_LIB64 0x80000000
 
typedef enum bfd_mach_o_cpu_subtype
{
/* i386. */
342,63 → 332,6
#define BFD_MACH_O_INDIRECT_SYM_LOCAL 0x80000000
#define BFD_MACH_O_INDIRECT_SYM_ABS 0x40000000
/* Constants for dyld info rebase. */
#define BFD_MACH_O_REBASE_OPCODE_MASK 0xf0
#define BFD_MACH_O_REBASE_IMMEDIATE_MASK 0x0f
 
/* The rebase opcodes. */
#define BFD_MACH_O_REBASE_OPCODE_DONE 0x00
#define BFD_MACH_O_REBASE_OPCODE_SET_TYPE_IMM 0x10
#define BFD_MACH_O_REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 0x20
#define BFD_MACH_O_REBASE_OPCODE_ADD_ADDR_ULEB 0x30
#define BFD_MACH_O_REBASE_OPCODE_ADD_ADDR_IMM_SCALED 0x40
#define BFD_MACH_O_REBASE_OPCODE_DO_REBASE_IMM_TIMES 0x50
#define BFD_MACH_O_REBASE_OPCODE_DO_REBASE_ULEB_TIMES 0x60
#define BFD_MACH_O_REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB 0x70
#define BFD_MACH_O_REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB 0x80
 
/* The rebase type. */
#define BFD_MACH_O_REBASE_TYPE_POINTER 1
#define BFD_MACH_O_REBASE_TYPE_TEXT_ABSOLUTE32 2
#define BFD_MACH_O_REBASE_TYPE_TEXT_PCREL32 3
 
/* Constants for dyld info bind. */
#define BFD_MACH_O_BIND_OPCODE_MASK 0xf0
#define BFD_MACH_O_BIND_IMMEDIATE_MASK 0x0f
 
/* The bind opcodes. */
#define BFD_MACH_O_BIND_OPCODE_DONE 0x00
#define BFD_MACH_O_BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 0x10
#define BFD_MACH_O_BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB 0x20
#define BFD_MACH_O_BIND_OPCODE_SET_DYLIB_SPECIAL_IMM 0x30
#define BFD_MACH_O_BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 0x40
#define BFD_MACH_O_BIND_OPCODE_SET_TYPE_IMM 0x50
#define BFD_MACH_O_BIND_OPCODE_SET_ADDEND_SLEB 0x60
#define BFD_MACH_O_BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 0x70
#define BFD_MACH_O_BIND_OPCODE_ADD_ADDR_ULEB 0x80
#define BFD_MACH_O_BIND_OPCODE_DO_BIND 0x90
#define BFD_MACH_O_BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB 0xa0
#define BFD_MACH_O_BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED 0xb0
#define BFD_MACH_O_BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB 0xc0
 
/* The bind types. */
#define BFD_MACH_O_BIND_TYPE_POINTER 1
#define BFD_MACH_O_BIND_TYPE_TEXT_ABSOLUTE32 2
#define BFD_MACH_O_BIND_TYPE_TEXT_PCREL32 3
 
/* The special dylib. */
#define BFD_MACH_O_BIND_SPECIAL_DYLIB_SELF 0
#define BFD_MACH_O_BIND_SPECIAL_DYLIB_MAIN_EXECUTABLE -1
#define BFD_MACH_O_BIND_SPECIAL_DYLIB_FLAT_LOOKUP -2
 
/* Constants for dyld info export. */
#define BFD_MACH_O_EXPORT_SYMBOL_FLAGS_KIND_MASK 0x03
#define BFD_MACH_O_EXPORT_SYMBOL_FLAGS_KIND_REGULAR 0x00
#define BFD_MACH_O_EXPORT_SYMBOL_FLAGS_KIND_THREAD_LOCAL 0x01
#define BFD_MACH_O_EXPORT_SYMBOL_FLAGS_WEAK_DEFINITION 0x04
#define BFD_MACH_O_EXPORT_SYMBOL_FLAGS_REEXPORT 0x08
#define BFD_MACH_O_EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER 0x10
 
/* Constants for DATA_IN_CODE entries. */
typedef enum bfd_mach_o_data_in_code_entry_kind
{
/contrib/toolchain/binutils/include/mach-o/reloc.h
1,5 → 1,6
/* Mach-O support for BFD.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011, 2012
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/mach-o/x86-64.h
1,5 → 1,6
/* Mach-O support for BFD.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011
Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/md5.h
1,6 → 1,6
/* md5.h - Declaration of functions and data types used for MD5 sum
computing library functions.
Copyright (C) 1995-2015 Free Software Foundation, Inc.
Copyright 1995, 1996, 2000 Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
 
/contrib/toolchain/binutils/include/nlm/ChangeLog
1,11 → 1,3
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2010-04-15 Nick Clifton <nickc@redhat.com>
 
* alpha-ext.h: Update copyright notice to use GPLv3.
113,7 → 105,7
support.
 
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright (C) 1993-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/nlm/alpha-ext.h
1,5 → 1,5
/* Alpha NLM (NetWare Loadable Module) support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 2005, 2010 Free Software Foundation, Inc.
By Ian Lance Taylor, Cygnus Support
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/nlm/common.h
1,5 → 1,5
/* NLM (NetWare Loadable Module) support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 2001, 2005, 2010 Free Software Foundation, Inc.
 
Written by Fred Fish @ Cygnus Support
 
/contrib/toolchain/binutils/include/nlm/external.h
1,5 → 1,5
/* NLM (NetWare Loadable Module) support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 1994, 2005, 2010 Free Software Foundation, Inc.
 
Written by Fred Fish @ Cygnus Support
 
/contrib/toolchain/binutils/include/nlm/i386-ext.h
1,5 → 1,5
/* i386 NLM (NetWare Loadable Module) support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 2005, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/nlm/internal.h
1,5 → 1,5
/* NLM (NetWare Loadable Module) support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 1994, 2003, 2005, 2010 Free Software Foundation, Inc.
 
Written by Fred Fish @ Cygnus Support.
 
/contrib/toolchain/binutils/include/nlm/ppc-ext.h
1,5 → 1,5
/* PowerPC NLM (NetWare Loadable Module) support for BFD.
Copyright (C) 1994-2015 Free Software Foundation, Inc.
Copyright (C) 1994, 2005, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/nlm/sparc32-ext.h
1,5 → 1,5
/* SPARC NLM (NetWare Loadable Module) support for BFD.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 2005, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/oasys.h
1,6 → 1,6
/* Oasys object format header file for BFD.
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/objalloc.h
1,5 → 1,5
/* objalloc.h -- routines to allocate memory for objects
Copyright (C) 1997-2015 Free Software Foundation, Inc.
Copyright 1997-2012 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Solutions.
 
This program is free software; you can redistribute it and/or modify it
/contrib/toolchain/binutils/include/obstack.h
1,20 → 1,26
/* obstack.h - object stack macros
Copyright (C) 1988-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
Free Software Foundation, Inc.
 
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
 
The GNU C Library is distributed in the hope that it will be useful,
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@gnu.org.
 
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
USA. */
 
/* Summary:
 
32,11 → 38,11
stack is of mature, fixed size and fixed address objects.
 
These routines grab large chunks of memory, using a function you
supply, called 'obstack_chunk_alloc'. On occasion, they free chunks,
by calling 'obstack_chunk_free'. You must define them and declare
supply, called `obstack_chunk_alloc'. On occasion, they free chunks,
by calling `obstack_chunk_free'. You must define them and declare
them before using any obstack macros.
 
Each independent stack is represented by a 'struct obstack'.
Each independent stack is represented by a `struct obstack'.
Each of the obstack macros expects a pointer to such a structure
as the first argument.
 
93,7 → 99,7
Exactly one object is growing in an obstack at any one time.
You can run one obstack per control block.
You may have as many control blocks as you dare.
Because of the way we do it, you can "unwind" an obstack
Because of the way we do it, you can `unwind' an obstack
back to a previous state. (You may remove objects much
as you would with a stack.)
*/
104,54 → 110,49
#ifndef _OBSTACK_H
#define _OBSTACK_H 1
 
#ifndef _OBSTACK_INTERFACE_VERSION
# define _OBSTACK_INTERFACE_VERSION 2
#ifdef __cplusplus
extern "C" {
#endif
 
#include <stddef.h> /* For size_t and ptrdiff_t. */
#include <string.h> /* For __GNU_LIBRARY__, and memcpy. */
/* We use subtraction of (char *) 0 instead of casting to int
because on word-addressable machines a simple cast to int
may ignore the byte-within-word field of the pointer. */
 
#if _OBSTACK_INTERFACE_VERSION == 1
/* For binary compatibility with obstack version 1, which used "int"
and "long" for these two types. */
# define _OBSTACK_SIZE_T unsigned int
# define _CHUNK_SIZE_T unsigned long
# define _OBSTACK_CAST(type, expr) ((type) (expr))
#else
/* Version 2 with sane types, especially for 64-bit hosts. */
# define _OBSTACK_SIZE_T size_t
# define _CHUNK_SIZE_T size_t
# define _OBSTACK_CAST(type, expr) (expr)
#ifndef __PTR_TO_INT
# define __PTR_TO_INT(P) ((P) - (char *) 0)
#endif
 
/* If B is the base of an object addressed by P, return the result of
aligning P to the next multiple of A + 1. B and P must be of type
char *. A + 1 must be a power of 2. */
#ifndef __INT_TO_PTR
# define __INT_TO_PTR(P) ((P) + (char *) 0)
#endif
 
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
/* We need the type of the resulting object. If __PTRDIFF_TYPE__ is
defined, as with GNU C, use that; that way we don't pollute the
namespace with <stddef.h>'s symbols. Otherwise, if <stddef.h> is
available, include it and use ptrdiff_t. In traditional C, long is
the best that we can do. */
 
/* Similar to __BPTR_ALIGN (B, P, A), except optimize the common case
where pointers can be converted to integers, aligned as integers,
and converted back again. If ptrdiff_t is narrower than a
pointer (e.g., the AS/400), play it safe and compute the alignment
relative to B. Otherwise, use the faster strategy of computing the
alignment relative to 0. */
 
#define __PTR_ALIGN(B, P, A) \
__BPTR_ALIGN (sizeof (ptrdiff_t) < sizeof (void *) ? (B) : (char *) 0, \
P, A)
 
#ifndef __attribute_pure__
# if defined __GNUC_MINOR__ && __GNUC__ * 1000 + __GNUC_MINOR__ >= 2096
# define __attribute_pure__ __attribute__ ((__pure__))
#ifdef __PTRDIFF_TYPE__
# define PTR_INT_TYPE __PTRDIFF_TYPE__
# else
# define __attribute_pure__
# ifdef HAVE_STDDEF_H
# include <stddef.h>
# define PTR_INT_TYPE ptrdiff_t
# else
# define PTR_INT_TYPE long
# endif
#endif
 
#ifdef __cplusplus
extern "C" {
#if defined _LIBC || defined HAVE_STRING_H
# include <string.h>
# define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N))
#else
# ifdef memcpy
# define _obstack_memcpy(To, From, N) memcpy ((To), (char *)(From), (N))
# else
# define _obstack_memcpy(To, From, N) bcopy ((char *)(From), (To), (N))
#endif
#endif
 
struct _obstack_chunk /* Lives at front of each chunk. */
{
162,30 → 163,18
 
struct obstack /* control current object in current chunk */
{
_CHUNK_SIZE_T chunk_size; /* preferred size to allocate chunks in */
long chunk_size; /* preferred size to allocate chunks in */
struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */
char *object_base; /* address of object we are building */
char *next_free; /* where to add next char to current object */
char *chunk_limit; /* address of char after current chunk */
union
{
_OBSTACK_SIZE_T i;
void *p;
} temp; /* Temporary for some macros. */
_OBSTACK_SIZE_T alignment_mask; /* Mask of alignment for each object. */
 
/* These prototypes vary based on 'use_extra_arg'. */
union
{
void *(*plain) (size_t);
void *(*extra) (void *, size_t);
} chunkfun;
union
{
void (*plain) (void *);
void (*extra) (void *, void *);
} freefun;
 
PTR_INT_TYPE temp; /* Temporary for some macros. */
int alignment_mask; /* Mask of alignment for each object. */
/* These prototypes vary based on `use_extra_arg', and we use
casts to the prototypeless function type in all assignments,
but having prototypes here quiets -Wstrict-prototypes. */
struct _obstack_chunk *(*chunkfun) (void *, long);
void (*freefun) (void *, struct _obstack_chunk *);
void *extra_arg; /* first arg for chunk alloc/dealloc funcs */
unsigned use_extra_arg : 1; /* chunk alloc/dealloc funcs take extra arg */
unsigned maybe_empty_object : 1; /* There is a possibility that the current
199,26 → 188,59
 
/* Declare the external functions we use; they are in obstack.c. */
 
extern void _obstack_newchunk (struct obstack *, _OBSTACK_SIZE_T);
extern void _obstack_newchunk (struct obstack *, int);
extern void _obstack_free (struct obstack *, void *);
extern int _obstack_begin (struct obstack *,
_OBSTACK_SIZE_T, _OBSTACK_SIZE_T,
void *(*) (size_t), void (*) (void *));
extern int _obstack_begin_1 (struct obstack *,
_OBSTACK_SIZE_T, _OBSTACK_SIZE_T,
void *(*) (void *, size_t),
extern int _obstack_begin (struct obstack *, int, int,
void *(*) (long), void (*) (void *));
extern int _obstack_begin_1 (struct obstack *, int, int,
void *(*) (void *, long),
void (*) (void *, void *), void *);
extern _OBSTACK_SIZE_T _obstack_memory_used (struct obstack *)
__attribute_pure__;
extern int _obstack_memory_used (struct obstack *);
 
/* Do the function-declarations after the structs
but before defining the macros. */
 
/* Error handler called when 'obstack_chunk_alloc' failed to allocate
more memory. This can be set to a user defined function which
should either abort gracefully or use longjump - but shouldn't
return. The default action is to print a message and abort. */
void obstack_init (struct obstack *obstack);
 
void * obstack_alloc (struct obstack *obstack, int size);
 
void * obstack_copy (struct obstack *obstack, void *address, int size);
void * obstack_copy0 (struct obstack *obstack, void *address, int size);
 
void obstack_free (struct obstack *obstack, void *block);
 
void obstack_blank (struct obstack *obstack, int size);
 
void obstack_grow (struct obstack *obstack, void *data, int size);
void obstack_grow0 (struct obstack *obstack, void *data, int size);
 
void obstack_1grow (struct obstack *obstack, int data_char);
void obstack_ptr_grow (struct obstack *obstack, void *data);
void obstack_int_grow (struct obstack *obstack, int data);
 
void * obstack_finish (struct obstack *obstack);
 
int obstack_object_size (struct obstack *obstack);
 
int obstack_room (struct obstack *obstack);
void obstack_make_room (struct obstack *obstack, int size);
void obstack_1grow_fast (struct obstack *obstack, int data_char);
void obstack_ptr_grow_fast (struct obstack *obstack, void *data);
void obstack_int_grow_fast (struct obstack *obstack, int data);
void obstack_blank_fast (struct obstack *obstack, int size);
 
void * obstack_base (struct obstack *obstack);
void * obstack_next_free (struct obstack *obstack);
int obstack_alignment_mask (struct obstack *obstack);
int obstack_chunk_size (struct obstack *obstack);
int obstack_memory_used (struct obstack *obstack);
 
/* Error handler called when `obstack_chunk_alloc' failed to allocate
more memory. This can be set to a user defined function. The
default action is to print a message and abort. */
extern void (*obstack_alloc_failed_handler) (void);
 
/* Exit value used when 'print_and_abort' is used. */
/* Exit value used when `print_and_abort' is used. */
extern int obstack_exit_failure;
 
/* Pointer to beginning of object being allocated or to be allocated next.
225,7 → 247,7
Note that this might not be the final address of the object
because a new chunk might be needed to hold the final size. */
 
#define obstack_base(h) ((void *) (h)->object_base)
#define obstack_base(h) ((h)->object_base)
 
/* Size for allocating ordinary chunks. */
 
233,47 → 255,48
 
/* Pointer to next byte not yet allocated in current chunk. */
 
#define obstack_next_free(h) ((void *) (h)->next_free)
#define obstack_next_free(h) ((h)->next_free)
 
/* Mask specifying low bits that should be clear in address of an object. */
 
#define obstack_alignment_mask(h) ((h)->alignment_mask)
 
/* To prevent prototype warnings provide complete argument list. */
/* To prevent prototype warnings provide complete argument list in
standard C version. */
#define obstack_init(h) \
_obstack_begin ((h), 0, 0, \
_OBSTACK_CAST (void *(*) (size_t), obstack_chunk_alloc), \
_OBSTACK_CAST (void (*) (void *), obstack_chunk_free))
(void *(*) (long)) obstack_chunk_alloc, (void (*) (void *)) obstack_chunk_free)
 
#define obstack_begin(h, size) \
_obstack_begin ((h), (size), 0, \
_OBSTACK_CAST (void *(*) (size_t), obstack_chunk_alloc), \
_OBSTACK_CAST (void (*) (void *), obstack_chunk_free))
(void *(*) (long)) obstack_chunk_alloc, (void (*) (void *)) obstack_chunk_free)
 
#define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \
_obstack_begin ((h), (size), (alignment), \
_OBSTACK_CAST (void *(*) (size_t), chunkfun), \
_OBSTACK_CAST (void (*) (void *), freefun))
(void *(*) (long)) (chunkfun), (void (*) (void *)) (freefun))
 
#define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \
_obstack_begin_1 ((h), (size), (alignment), \
_OBSTACK_CAST (void *(*) (void *, size_t), chunkfun), \
_OBSTACK_CAST (void (*) (void *, void *), freefun), arg)
(void *(*) (void *, long)) (chunkfun), \
(void (*) (void *, void *)) (freefun), (arg))
 
#define obstack_chunkfun(h, newchunkfun) \
((void) ((h)->chunkfun.extra = (void *(*) (void *, size_t)) (newchunkfun)))
((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun))
 
#define obstack_freefun(h, newfreefun) \
((void) ((h)->freefun.extra = (void *(*) (void *, void *)) (newfreefun)))
((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun))
 
#define obstack_1grow_fast(h, achar) ((void) (*((h)->next_free)++ = (achar)))
#define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = (achar))
 
#define obstack_blank_fast(h, n) ((void) ((h)->next_free += (n)))
#define obstack_blank_fast(h,n) ((h)->next_free += (n))
 
#define obstack_memory_used(h) _obstack_memory_used (h)
 
#if defined __GNUC__
# if !defined __GNUC_MINOR__ || __GNUC__ * 1000 + __GNUC_MINOR__ < 2008
#if defined __GNUC__ && defined __STDC__ && __STDC__
/* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
does not implement __extension__. But that compiler doesn't define
__GNUC_MINOR__. */
# if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
# define __extension__
# endif
 
280,43 → 303,38
/* For GNU C, if not -traditional,
we can define these macros to compute all args only once
without using a global variable.
Also, we can avoid using the 'temp' slot, to make faster code. */
Also, we can avoid using the `temp' slot, to make faster code. */
 
# define obstack_object_size(OBSTACK) \
__extension__ \
({ struct obstack const *__o = (OBSTACK); \
(_OBSTACK_SIZE_T) (__o->next_free - __o->object_base); })
({ struct obstack *__o = (OBSTACK); \
(unsigned) (__o->next_free - __o->object_base); })
 
/* The local variable is named __o1 to avoid a shadowed variable
warning when invoked from other obstack macros. */
# define obstack_room(OBSTACK) \
__extension__ \
({ struct obstack const *__o1 = (OBSTACK); \
(_OBSTACK_SIZE_T) (__o1->chunk_limit - __o1->next_free); })
({ struct obstack *__o = (OBSTACK); \
(unsigned) (__o->chunk_limit - __o->next_free); })
 
# define obstack_make_room(OBSTACK, length) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
_OBSTACK_SIZE_T __len = (length); \
if (obstack_room (__o) < __len) \
int __len = (length); \
if (__o->chunk_limit - __o->next_free < __len) \
_obstack_newchunk (__o, __len); \
(void) 0; })
 
# define obstack_empty_p(OBSTACK) \
__extension__ \
({ struct obstack const *__o = (OBSTACK); \
(__o->chunk->prev == 0 \
&& __o->next_free == __PTR_ALIGN ((char *) __o->chunk, \
__o->chunk->contents, \
__o->alignment_mask)); })
({ struct obstack *__o = (OBSTACK); \
(__o->chunk->prev == 0 && __o->next_free - __o->chunk->contents == 0); })
 
# define obstack_grow(OBSTACK, where, length) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
_OBSTACK_SIZE_T __len = (length); \
if (obstack_room (__o) < __len) \
int __len = (length); \
if (__o->next_free + __len > __o->chunk_limit) \
_obstack_newchunk (__o, __len); \
memcpy (__o->next_free, where, __len); \
_obstack_memcpy (__o->next_free, (where), __len); \
__o->next_free += __len; \
(void) 0; })
 
323,10 → 341,10
# define obstack_grow0(OBSTACK, where, length) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
_OBSTACK_SIZE_T __len = (length); \
if (obstack_room (__o) < __len + 1) \
int __len = (length); \
if (__o->next_free + __len + 1 > __o->chunk_limit) \
_obstack_newchunk (__o, __len + 1); \
memcpy (__o->next_free, where, __len); \
_obstack_memcpy (__o->next_free, (where), __len); \
__o->next_free += __len; \
*(__o->next_free)++ = 0; \
(void) 0; })
334,18 → 352,19
# define obstack_1grow(OBSTACK, datum) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
if (obstack_room (__o) < 1) \
if (__o->next_free + 1 > __o->chunk_limit) \
_obstack_newchunk (__o, 1); \
obstack_1grow_fast (__o, datum); })
obstack_1grow_fast (__o, datum); \
(void) 0; })
 
/* These assume that the obstack alignment is good enough for pointers
or ints, and that the data added so far to the current object
/* These assume that the obstack alignment is good enough for pointers or ints,
and that the data added so far to the current object
shares that much alignment. */
 
# define obstack_ptr_grow(OBSTACK, datum) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
if (obstack_room (__o) < sizeof (void *)) \
if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
_obstack_newchunk (__o, sizeof (void *)); \
obstack_ptr_grow_fast (__o, datum); })
 
352,7 → 371,7
# define obstack_int_grow(OBSTACK, datum) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
if (obstack_room (__o) < sizeof (int)) \
if (__o->next_free + sizeof (int) > __o->chunk_limit) \
_obstack_newchunk (__o, sizeof (int)); \
obstack_int_grow_fast (__o, datum); })
 
359,8 → 378,7
# define obstack_ptr_grow_fast(OBSTACK, aptr) \
__extension__ \
({ struct obstack *__o1 = (OBSTACK); \
void *__p1 = __o1->next_free; \
*(const void **) __p1 = (aptr); \
*(const void **) __o1->next_free = (aptr); \
__o1->next_free += sizeof (const void *); \
(void) 0; })
 
367,8 → 385,7
# define obstack_int_grow_fast(OBSTACK, aint) \
__extension__ \
({ struct obstack *__o1 = (OBSTACK); \
void *__p1 = __o1->next_free; \
*(int *) __p1 = (aint); \
*(int *) __o1->next_free = (aint); \
__o1->next_free += sizeof (int); \
(void) 0; })
 
375,10 → 392,11
# define obstack_blank(OBSTACK, length) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
_OBSTACK_SIZE_T __len = (length); \
if (obstack_room (__o) < __len) \
int __len = (length); \
if (__o->chunk_limit - __o->next_free < __len) \
_obstack_newchunk (__o, __len); \
obstack_blank_fast (__o, __len); })
obstack_blank_fast (__o, __len); \
(void) 0; })
 
# define obstack_alloc(OBSTACK, length) \
__extension__ \
398,22 → 416,23
obstack_grow0 (__h, (where), (length)); \
obstack_finish (__h); })
 
/* The local variable is named __o1 to avoid a shadowed variable
warning when invoked from other obstack macros, typically obstack_free. */
/* The local variable is named __o1 to avoid a name conflict
when obstack_blank is called. */
# define obstack_finish(OBSTACK) \
__extension__ \
({ struct obstack *__o1 = (OBSTACK); \
void *__value = (void *) __o1->object_base; \
if (__o1->next_free == __value) \
void *value; \
value = (void *) __o1->object_base; \
if (__o1->next_free == value) \
__o1->maybe_empty_object = 1; \
__o1->next_free \
= __PTR_ALIGN (__o1->object_base, __o1->next_free, \
__o1->alignment_mask); \
if ((size_t) (__o1->next_free - (char *) __o1->chunk) \
> (size_t) (__o1->chunk_limit - (char *) __o1->chunk)) \
= __INT_TO_PTR ((__PTR_TO_INT (__o1->next_free)+__o1->alignment_mask)\
& ~ (__o1->alignment_mask)); \
if (__o1->next_free - (char *)__o1->chunk \
> __o1->chunk_limit - (char *)__o1->chunk) \
__o1->next_free = __o1->chunk_limit; \
__o1->object_base = __o1->next_free; \
__value; })
value; })
 
# define obstack_free(OBSTACK, OBJ) \
__extension__ \
421,22 → 440,18
void *__obj = (void *) (OBJ); \
if (__obj > (void *) __o->chunk && __obj < (void *) __o->chunk_limit) \
__o->next_free = __o->object_base = (char *) __obj; \
else \
_obstack_free (__o, __obj); })
else (obstack_free) (__o, __obj); })
 
#else /* not __GNUC__ */
#else /* not __GNUC__ or not __STDC__ */
 
# define obstack_object_size(h) \
((_OBSTACK_SIZE_T) ((h)->next_free - (h)->object_base))
(unsigned) ((h)->next_free - (h)->object_base)
 
# define obstack_room(h) \
((_OBSTACK_SIZE_T) ((h)->chunk_limit - (h)->next_free))
(unsigned) ((h)->chunk_limit - (h)->next_free)
 
# define obstack_empty_p(h) \
((h)->chunk->prev == 0 \
&& (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \
(h)->chunk->contents, \
(h)->alignment_mask))
((h)->chunk->prev == 0 && (h)->next_free - (h)->chunk->contents == 0)
 
/* Note that the call to _obstack_newchunk is enclosed in (..., 0)
so that we can avoid having void expressions
445,56 → 460,51
but some compilers won't accept it. */
 
# define obstack_make_room(h, length) \
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i) \
? (_obstack_newchunk (h, (h)->temp.i), 0) : 0), \
(void) 0)
( (h)->temp = (length), \
(((h)->next_free + (h)->temp > (h)->chunk_limit) \
? (_obstack_newchunk ((h), (h)->temp), 0) : 0))
 
# define obstack_grow(h, where, length) \
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i) \
? (_obstack_newchunk ((h), (h)->temp.i), 0) : 0), \
memcpy ((h)->next_free, where, (h)->temp.i), \
(h)->next_free += (h)->temp.i, \
(void) 0)
( (h)->temp = (length), \
(((h)->next_free + (h)->temp > (h)->chunk_limit) \
? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \
_obstack_memcpy ((h)->next_free, (where), (h)->temp), \
(h)->next_free += (h)->temp)
 
# define obstack_grow0(h, where, length) \
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i + 1) \
? (_obstack_newchunk ((h), (h)->temp.i + 1), 0) : 0), \
memcpy ((h)->next_free, where, (h)->temp.i), \
(h)->next_free += (h)->temp.i, \
*((h)->next_free)++ = 0, \
(void) 0)
( (h)->temp = (length), \
(((h)->next_free + (h)->temp + 1 > (h)->chunk_limit) \
? (_obstack_newchunk ((h), (h)->temp + 1), 0) : 0), \
_obstack_memcpy ((h)->next_free, (where), (h)->temp), \
(h)->next_free += (h)->temp, \
*((h)->next_free)++ = 0)
 
# define obstack_1grow(h, datum) \
(((obstack_room (h) < 1) \
( (((h)->next_free + 1 > (h)->chunk_limit) \
? (_obstack_newchunk ((h), 1), 0) : 0), \
obstack_1grow_fast (h, datum))
 
# define obstack_ptr_grow(h, datum) \
(((obstack_room (h) < sizeof (char *)) \
( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \
? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \
obstack_ptr_grow_fast (h, datum))
 
# define obstack_int_grow(h, datum) \
(((obstack_room (h) < sizeof (int)) \
( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \
? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \
obstack_int_grow_fast (h, datum))
 
# define obstack_ptr_grow_fast(h, aptr) \
(((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr), \
(void) 0)
(((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr))
 
# define obstack_int_grow_fast(h, aint) \
(((int *) ((h)->next_free += sizeof (int)))[-1] = (aint), \
(void) 0)
(((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr))
 
# define obstack_blank(h, length) \
((h)->temp.i = (length), \
((obstack_room (h) < (h)->temp.i) \
? (_obstack_newchunk ((h), (h)->temp.i), 0) : 0), \
obstack_blank_fast (h, (h)->temp.i))
( (h)->temp = (length), \
(((h)->chunk_limit - (h)->next_free < (h)->temp) \
? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \
obstack_blank_fast (h, (h)->temp))
 
# define obstack_alloc(h, length) \
(obstack_blank ((h), (length)), obstack_finish ((h)))
509,27 → 519,27
(((h)->next_free == (h)->object_base \
? (((h)->maybe_empty_object = 1), 0) \
: 0), \
(h)->temp.p = (h)->object_base, \
(h)->temp = __PTR_TO_INT ((h)->object_base), \
(h)->next_free \
= __PTR_ALIGN ((h)->object_base, (h)->next_free, \
(h)->alignment_mask), \
(((size_t) ((h)->next_free - (char *) (h)->chunk) \
> (size_t) ((h)->chunk_limit - (char *) (h)->chunk)) \
= __INT_TO_PTR ((__PTR_TO_INT ((h)->next_free)+(h)->alignment_mask) \
& ~ ((h)->alignment_mask)), \
(((h)->next_free - (char *) (h)->chunk \
> (h)->chunk_limit - (char *) (h)->chunk) \
? ((h)->next_free = (h)->chunk_limit) : 0), \
(h)->object_base = (h)->next_free, \
(h)->temp.p)
(void *) __INT_TO_PTR ((h)->temp))
 
# define obstack_free(h, obj) \
((h)->temp.p = (void *) (obj), \
(((h)->temp.p > (void *) (h)->chunk \
&& (h)->temp.p < (void *) (h)->chunk_limit) \
? (void) ((h)->next_free = (h)->object_base = (char *) (h)->temp.p) \
: _obstack_free ((h), (h)->temp.p)))
( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \
(((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\
? (((h)->next_free = (h)->object_base \
= (h)->temp + (char *) (h)->chunk), 0) \
: ((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0)))
 
#endif /* not __GNUC__ */
#endif /* not __GNUC__ or not __STDC__ */
 
#ifdef __cplusplus
} /* C++ */
#endif
 
#endif /* _OBSTACK_H */
#endif /* obstack.h */
/contrib/toolchain/binutils/include/opcode/ft32.h
File deleted
/contrib/toolchain/binutils/include/opcode/nios2r1.h
File deleted
/contrib/toolchain/binutils/include/opcode/visium.h
File deleted
/contrib/toolchain/binutils/include/opcode/arc-func.h
File deleted
/contrib/toolchain/binutils/include/opcode/nds32.h
File deleted
/contrib/toolchain/binutils/include/opcode/nios2r2.h
File deleted
/contrib/toolchain/binutils/include/opcode/ChangeLog
1,452 → 1,3
2015-12-15 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (enum aarch64_opnd_qualifier): Add
AARCH64_OPND_QLF_V_2H.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (aarch64_opnd): Add AARCH64_OPND_BARRIER_PSB.
* aarch64-asm-2.c: Regenerate.
* aarch64-dis-2.c: Regenerate.
* aarch64-opc-2.c: Regenerate.
* aarch64-opc.c (aarch64_hint_options): Add "csync".
(aarch64_print_operands): Handle AARCH64_OPND_BARRIER_PSB.
* aarch64-tbl.h (aarch64_feature_stat_profile): New.
(STAT_PROFILE): New.
(aarch64_opcode_table): Add "psb".
(AARCH64_OPERANDS): Add "BARRIER_PSB".
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (aarch64_hint_options): Declare.
(aarch64_opnd_info): Add field hint_option.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_PROFILE): New.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (aarch64_sys_ins_reg_supported_p): Declare.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (aarch64_sys_ins_reg): Replace has_xt with flags.
(aarch64_sys_ins_reg_has_xt): Declare.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_RAS): New.
(AARCH64_ARCH_V8_2): Add AARCH64_FEATURE_RAS.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_F16): Fix clash with
AARCH64_FEATURE_V8_1.
(AARCH64_ARCH_V8_1): Add AARCH64_FEATURE_CRC.
(AARCH64_ARCH_V8_2): Add AARCH64_FEATURE_CRC and
AARCH64_FEATURE_V8_1.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_F16): New.
(AARCH64_ARCH_V8_2): Add AARCH64_FEATURE_F16 to ARMv8.2
features.
 
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (aarch64_op): Add OP_BFC.
 
2015-12-09 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_V8_2): New.
(AARCH64_ARCH_V8_2): New.
 
2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_V8_1): New.
(AARCH64_ARCH_v8_1): Add AARCH64_FEATURE_V8_1.
 
2015-11-11 Alan Modra <amodra@gmail.com>
Peter Bergner <bergner@vnet.ibm.com>
 
* ppc.h (PPC_OPCODE_POWER9): New define.
(PPC_OPCODE_VSX3): Likewise.
 
2015-11-02 Nick Clifton <nickc@redhat.com>
 
* rx.h (enum RX_Opcode_ID): Add more NOP opcodes.
 
2015-11-02 Nick Clifton <nickc@redhat.com>
 
* rx.h (enum RX_Operand_Type): Add RX_Operand_Zero_Indirect.
 
2015-10-28 Yao Qi <yao.qi@linaro.org>
 
* aarch64.h (aarch64_decode_insn): Update declaration.
 
2015-10-07 Yao Qi <yao.qi@linaro.org>
 
* aarch64.h (aarch64_sys_ins_reg) <template>: Removed.
<name>: New field.
 
2015-10-07 Yao Qi <yao.qi@linaro.org>
 
* aarch64.h [__cplusplus]: Wrap in extern "C".
 
2015-10-07 Claudiu Zissulescu <claziss@synopsys.com>
Cupertino Miranda <cmiranda@synopsys.com>
 
* arc-func.h: New file.
* arc.h: Likewise.
 
2015-10-02 Yao Qi <yao.qi@linaro.org>
 
* aarch64.h (aarch64_zero_register_p): Move the declaration
to column one.
 
2015-10-02 Yao Qi <yao.qi@linaro.org>
 
* aarch64.h (aarch64_decode_insn): Declare it.
 
2015-09-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
 
* s390.h (S390_INSTR_FLAG_HTM): New flag.
(S390_INSTR_FLAG_VX): New flag.
(S390_INSTR_FLAG_FACILITY_MASK): New flag mask.
 
2015-09-23 Nick Clifton <nickc@redhat.com>
 
* ppc.h (PPC_OPSHIFT_INV): Use an unsigned constant when left
shifting.
 
2015-09-22 Nick Clifton <nickc@redhat.com>
 
* rx.h (enum RX_Size): Add RX_Bad_Size entry.
 
2015-09-09 Daniel Santos <daniel.santos@pobox.com>
 
* visium.h (gen_reg_table): Make static.
(fp_reg_table): Likewise.
(cc_table): Likewise.
 
2015-07-20 Matthew Wahab <matthew.wahab@arm.com>
 
* arm.h (ARM_AEXT_V6ZK): Rename to ARM_AEXT_V6KZ.
(ARM_AEXT_V6ZKT2): Rename to ARM_AEXT_V6KZT2.
(ARM_ARCH_V6ZK): Rename to ARM_ARCH_V6KZ.
(ARM_ARCH_V6ZKT2): Rename to ARM_ARCH_V6KZT2.
 
2015-07-03 Alan Modra <amodra@gmail.com>
 
* ppc.h (PPC_OPCODE_750, PPC_OPCODE_7450, PPC_OPCODE_860): Define.
 
2015-07-01 Sandra Loosemore <sandra@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
 
* nios2.h (enum iw_format_type): Add R2 formats.
(enum overflow_type): Add signed_immed12_overflow and
enumeration_overflow for R2.
(struct nios2_opcode): Document new argument letters for R2.
(REG_3BIT, REG_LDWM, REG_POP): Define.
(includes): Include nios2r2.h.
(nios2_r2_opcodes, nios2_num_r2_opcodes): Declare.
(nios2_r2_asi_n_mappings, nios2_num_r2_asi_n_mappings): Declare.
(nios2_r2_shi_n_mappings, nios2_num_r2_shi_n_mappings): Declare.
(nios2_r2_andi_n_mappings, nios2_num_r2_andi_n_mappings): Declare.
(nios2_r2_reg3_mappings, nios2_num_r2_reg3_mappings): Declare.
(nios2_r2_reg_range_mappings, nios2_num_r2_reg_range_mappings):
Declare.
* nios2r2.h: New file.
 
2015-06-19 Peter Bergner <bergner@vnet.ibm.com>
 
* ppc.h (PPC_OPERAND_OPTIONAL_VALUE): New.
(ppc_optional_operand_value): New inline function.
 
2015-06-04 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_V8_1): New.
 
2015-06-03 Matthew Wahab <matthew.wahab@arm.com>
 
* arm.h (FPU_ARCH_CRYPTO_NEON_VFP_ARMV8_1): New.
(ARM_ARCH_V8_1A): New.
(ARM_ARCH_V8_1A_FP): New.
(ARM_ARCH_V8_1A_SIMD): New.
(ARM_ARCH_V8_1A_CRYPTOV1): New.
(ARM_FEATURE_CORE): New.
 
2015-06-02 Matthew Wahab <matthew.wahab@arm.com>
 
* arm.h (ARM_EXT2_PAN): New.
(ARM_FEATURE_CORE_HIGH): New.
 
2015-06-02 Matthew Wahab <matthew.wahab@arm.com>
 
* arm.h (ARM_FEATURE_ALL): New.
 
2015-06-02 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_RDMA): New.
 
2015-06-02 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_LOR): New.
 
2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
 
* aarch64.h (AARCH64_FEATURE_PAN): New.
(aarch64_sys_reg_supported_p): Declare.
(aarch64_pstatefield_supported_p): Declare.
 
2015-04-30 DJ Delorie <dj@redhat.com>
 
* rl78.h (RL78_Dis_Isa): New.
(rl78_decode_opcode): Add ISA parameter.
 
2015-03-24 Terry Guo <terry.guo@arm.com>
 
* arm.h (arm_feature_set): Extended to provide more available bits.
(ARM_ANY): Updated to follow above new definition.
(ARM_CPU_HAS_FEATURE): Likewise.
(ARM_CPU_IS_ANY): Likewise.
(ARM_MERGE_FEATURE_SETS): Likewise.
(ARM_CLEAR_FEATURE): Likewise.
(ARM_FEATURE): Likewise.
(ARM_FEATURE_COPY): New macro.
(ARM_FEATURE_EQUAL): Likewise.
(ARM_FEATURE_ZERO): Likewise.
(ARM_FEATURE_CORE_EQUAL): Likewise.
(ARM_FEATURE_LOW): Likewise.
(ARM_FEATURE_CORE_LOW): Likewise.
(ARM_FEATURE_CORE_COPROC): Likewise.
 
2015-02-19 Pedro Alves <palves@redhat.com>
 
* cgen.h [__cplusplus]: Wrap in extern "C".
* msp430-decode.h [__cplusplus]: Likewise.
* nios2.h [__cplusplus]: Likewise.
* rl78.h [__cplusplus]: Likewise.
* rx.h [__cplusplus]: Likewise.
* tilegx.h [__cplusplus]: Likewise.
 
2015-01-28 James Bowman <james.bowman@ftdichip.com>
 
* ft32.h: New file.
 
2015-01-16 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
 
* s390.h (s390_opcode_cpu_val): Add S390_OPCODE_Z13.
 
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-12-27 Anthony Green <green@moxielogic.com>
 
* moxie.h (MOXIE_F1_AiB2, MOXIE_F1_ABi2): Renamed from
MOXIE_F1_AiB4 and MOXIE_F1_ABi2.
 
2014-12-06 Eric Botcazou <ebotcazou@adacore.com>
 
* visium.h: New file.
 
2014-11-28 Sandra Loosemore <sandra@codesourcery.com>
 
* nios2.h (NIOS2_INSN_ADDI, NIOS2_INSN_ANDI): Delete.
(NIOS2_INSN_ORI, NIOS2_INSN_XORI): Delete.
(NIOS2_INSN_OPTARG): Renumber.
 
2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
 
* nios2.h (nios2_find_opcode_hash): Add mach parameter to
declaration. Fix obsolete comment.
 
2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
 
* nios2.h (enum iw_format_type): New.
(struct nios2_opcode): Update comments. Add size and format fields.
(NIOS2_INSN_OPTARG): New.
(REG_NORMAL, REG_CONTROL, REG_COPROCESSOR): New.
(struct nios2_reg): Add regtype field.
(GET_INSN_FIELD, SET_INSN_FIELD): Delete.
(IW_A_LSB, IW_A_MSB, IW_A_SZ, IW_A_MASK): Delete.
(IW_B_LSB, IW_B_MSB, IW_B_SZ, IW_B_MASK): Delete.
(IW_C_LSB, IW_C_MSB, IW_C_SZ, IW_C_MASK): Delete.
(IW_IMM16_LSB, IW_IMM16_MSB, IW_IMM16_SZ, IW_IMM16_MASK): Delete.
(IW_IMM26_LSB, IW_IMM26_MSB, IW_IMM26_SZ, IW_IMM26_MASK): Delete.
(IW_OP_LSB, IW_OP_MSB, IW_OP_SZ, IW_OP_MASK): Delete.
(IW_OPX_LSB, IW_OPX_MSB, IW_OPX_SZ, IW_OPX_MASK): Delete.
(IW_SHIFT_IMM5_LSB, IW_SHIFT_IMM5_MSB): Delete.
(IW_SHIFT_IMM5_SZ, IW_SHIFT_IMM5_MASK): Delete.
(IW_CONTROL_REGNUM_LSB, IW_CONTROL_REGNUM_MSB): Delete.
(IW_CONTROL_REGNUM_SZ, IW_CONTROL_REGNUM_MASK): Delete.
(OP_MASK_OP, OP_SH_OP): Delete.
(OP_MASK_IOP, OP_SH_IOP): Delete.
(OP_MASK_IRD, OP_SH_IRD): Delete.
(OP_MASK_IRT, OP_SH_IRT): Delete.
(OP_MASK_IRS, OP_SH_IRS): Delete.
(OP_MASK_ROP, OP_SH_ROP): Delete.
(OP_MASK_RRD, OP_SH_RRD): Delete.
(OP_MASK_RRT, OP_SH_RRT): Delete.
(OP_MASK_RRS, OP_SH_RRS): Delete.
(OP_MASK_JOP, OP_SH_JOP): Delete.
(OP_MASK_IMM26, OP_SH_IMM26): Delete.
(OP_MASK_RCTL, OP_SH_RCTL): Delete.
(OP_MASK_IMM5, OP_SH_IMM5): Delete.
(OP_MASK_CACHE_OPX, OP_SH_CACHE_OPX): Delete.
(OP_MASK_CACHE_RRS, OP_SH_CACHE_RRS): Delete.
(OP_MASK_CUSTOM_A, OP_SH_CUSTOM_A): Delete.
(OP_MASK_CUSTOM_B, OP_SH_CUSTOM_B): Delete.
(OP_MASK_CUSTOM_C, OP_SH_CUSTOM_C): Delete.
(OP_MASK_CUSTOM_N, OP_SH_CUSTOM_N): Delete.
(OP_<insn>, OPX_<insn>, OP_MATCH_<insn>, OPX_MATCH_<insn>): Delete.
(OP_MASK_<insn>, OP_MASK): Delete.
(GET_IW_A, GET_IW_B, GET_IW_C, GET_IW_CONTROL_REGNUM): Delete.
(GET_IW_IMM16, GET_IW_IMM26, GET_IW_OP, GET_IW_OPX): Delete.
Include nios2r1.h to define new instruction opcode constants
and accessors.
(nios2_builtin_opcodes): Rename to nios2_r1_opcodes.
(bfd_nios2_num_builtin_opcodes): Rename to nios2_num_r1_opcodes.
(bfd_nios2_num_opcodes): Rename to nios2_num_opcodes.
(NUMOPCODES, NUMREGISTERS): Delete.
* nios2r1.h: New file.
 
2014-10-17 Jose E. Marchesi <jose.marchesi@oracle.com>
 
* sparc.h (HWCAP2_VIS3B): Documentation improved.
 
2014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
 
* sparc.h (sparc_opcode): new field `hwcaps2'.
(HWCAP2_FJATHPLUS): New define.
(HWCAP2_VIS3B): Likewise.
(HWCAP2_ADP): Likewise.
(HWCAP2_SPARC5): Likewise.
(HWCAP2_MWAIT): Likewise.
(HWCAP2_XMPMUL): Likewise.
(HWCAP2_XMONT): Likewise.
(HWCAP2_NSEC): Likewise.
(HWCAP2_FJATHHPC): Likewise.
(HWCAP2_FJDES): Likewise.
(HWCAP2_FJAES): Likewise.
Document the new operand kind `{', corresponding to the mcdper
ancillary state register.
Document the new operand kind }, which represents frsd floating
point registers (double precision) which must be the same than
frs1 in its containing instruction.
 
2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
 
* nds32.h: Add new opcode declaration.
 
2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
Matthew Fortune <matthew.fortune@imgtec.com>
 
* mips.h (mips_operand_type): Add new entries: OP_SAME_RS_RT,
OP_CHECK_PREV and OP_NON_ZERO_REG. Add descriptions for the MIPS R6
instruction arguments: -a, -b, -d, -s, -t, -u, -v, -w, -x, -y, -A, -B,
+I, +O, +R, +:, +\, +", +;
(mips_check_prev_operand): New struct.
(INSN2_FORBIDDEN_SLOT): New define.
(INSN_ISA32R6): New define.
(INSN_ISA64R6): New define.
(INSN_UPTO32R6): New define.
(INSN_UPTO64R6): New define.
(mips_isa_table): Add INSN_UPTO32R6 and INSN_UPTO64R6.
(ISA_MIPS32R6): New define.
(ISA_MIPS64R6): New define.
(CPU_MIPS32R6): New define.
(CPU_MIPS64R6): New define.
(cpu_is_member): Add cases for CPU_MIPS32R6, and CPU_MIPS64R6.
 
2014-09-03 Jiong Wang <jiong.wang@arm.com>
 
* aarch64.h (AARCH64_FEATURE_LSE): New feature added.
(aarch64_opnd): Add AARCH64_OPND_PAIRREG.
(aarch64_insn_class): Add lse_atomic.
(F_LSE_SZ): New field added.
(opcode_has_special_coder): Recognize F_LSE_SZ.
 
2014-08-26 Maciej W. Rozycki <macro@codesourcery.com>
 
* mips.h: Document the move of `MICROMIPSOP_*_CODE10' from `B'
over to `+J'.
 
2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
 
* mips.h (INSN_LOAD_COPROC_DELAY): Rename to...
(INSN_LOAD_COPROC): New define.
(INSN_COPROC_MOVE_DELAY): Rename to...
(INSN_COPROC_MOVE): New define.
 
2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Pitchumani Sivanupandi <pitchumani.s@atmel.com>
Soundararajan <Sounderarajan.D@atmel.com>
 
* avr.h (AVR_ISA_TINY): Define avrtiny specific ISA.
(AVR_ISA_2xxxa): Define ISA without LPM.
(AVR_ISA_AVRTINY): Define avrtiny arch ISA.
Add doc for contraint used in 16 bit lds/sts.
Adjust ISA group for icall, ijmp, pop and push.
Add 16 bit lds/sts encoding and update 32 bit lds/sts constraints.
 
2014-05-19 Nick Clifton <nickc@redhat.com>
 
* msp430.h (struct msp430_operand_s): Add vshift field.
 
2014-05-07 Andrew Bennett <andrew.bennett@imgtec.com>
 
* mips.h (INSN_ISA_MASK): Updated.
(INSN_ISA32R3): New define.
(INSN_ISA32R5): New define.
(INSN_ISA64R3): New define.
(INSN_ISA64R5): New define.
(INSN_ISA64, INSN_ISA64R2, INSN_ISA3_32, INSN_ISA3_32R2, INSN_ISA4_32
INSN_ISA4_32R2, INSN_ISA5_32R2): Renumbered.
(mips_isa_table): Add entries for mips32r3, mips32r5, mips64r3 and
mips64r5.
(INSN_UPTO32R3): New define.
(INSN_UPTO32R5): New define.
(INSN_UPTO64R3): New define.
(INSN_UPTO64R5): New define.
(ISA_MIPS32R3): New define.
(ISA_MIPS32R5): New define.
(ISA_MIPS64R3): New define.
(ISA_MIPS64R5): New define.
(CPU_MIPS32R3): New define.
(CPU_MIPS32R5): New define.
(CPU_MIPS64R3): New define.
(CPU_MIPS64R5): New define.
 
2014-05-01 Richard Sandiford <rdsandiford@googlemail.com>
 
* mips.h (mips_isa_table): Avoid hard-coding INSN_ISA* values.
 
2014-04-22 Christian Svensson <blue@cmd.nu>
 
* or32.h: Delete.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2013-12-16 Andrew Bennett <andrew.bennett@imgtec.com>
 
* mips.h: Updated description of +o, +u, +v and +w for MIPS and
microMIPS.
 
2013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com>
Wei-Cheng Wang <cole945@gmail.com>
 
* nds32.h: New file for Andes NDS32.
 
2013-12-07 Mike Frysinger <vapier@gentoo.org>
 
* bfin.h: Remove +x file mode.
 
2013-11-20 Yufeng Zhang <yufeng.zhang@arm.com>
 
* aarch64.h (aarch64_pstatefields): Change element type to
483,19 → 34,6
* aarch64.h (enum aarch64_operand_class): Add AARCH64_OPND_CLASS_COND.
(enum aarch64_opnd): Add AARCH64_OPND_COND1.
 
2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
 
* mips.h (mips_operand_type): Add OP_IMM_INDEX and OP_REG_INDEX.
(mips_reg_operand_type): Add OP_REG_MSA and OP_REG_MSA_CTRL.
For MIPS, add comments for +d, +e, +h, +k, +l, +n, +o, +u, +v, +w,
+T, +U, +V, +W, +~, +!, +@, +#, +$, +%, +^, +&, +*, +|.
For MIPS, update extension character sequences after +.
(ASE_MSA): New define.
(ASE_MSA64): New define.
For microMIPS, add comments for +d, +e, +h, +k, +l, +n, +o, +u, +v, +w,
+x, +T, +U, +V, +W, +~, +!, +@, +#, +$, +%, +^, +&, +*, +|.
For microMIPS, update extension character sequences after +.
 
2013-08-23 Yuri Chornoivan <yurchor@ukr.net>
 
PR binutils/15834
2387,7 → 1925,7
 
For older changes see ChangeLog-9103
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/opcode/aarch64.h
1,6 → 1,6
/* AArch64 assembler/disassembler support.
 
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
Contributed by ARM Ltd.
 
This file is part of GNU Binutils.
27,10 → 27,6
#include <assert.h>
#include <stdlib.h>
 
#ifdef __cplusplus
extern "C" {
#endif
 
/* The offset for pc-relative addressing is currently defined to be 0. */
#define AARCH64_PCREL_OFFSET 0
 
38,46 → 34,15
 
/* The following bitmasks control CPU features. */
#define AARCH64_FEATURE_V8 0x00000001 /* All processors. */
#define AARCH64_FEATURE_V8_2 0x00000020 /* ARMv8.2 processors. */
#define AARCH64_FEATURE_CRYPTO 0x00010000 /* Crypto instructions. */
#define AARCH64_FEATURE_FP 0x00020000 /* FP instructions. */
#define AARCH64_FEATURE_SIMD 0x00040000 /* SIMD instructions. */
#define AARCH64_FEATURE_CRC 0x00080000 /* CRC instructions. */
#define AARCH64_FEATURE_LSE 0x00100000 /* LSE instructions. */
#define AARCH64_FEATURE_PAN 0x00200000 /* PAN instructions. */
#define AARCH64_FEATURE_LOR 0x00400000 /* LOR instructions. */
#define AARCH64_FEATURE_RDMA 0x00800000 /* v8.1 SIMD instructions. */
#define AARCH64_FEATURE_V8_1 0x01000000 /* v8.1 features. */
#define AARCH64_FEATURE_F16 0x02000000 /* v8.2 FP16 instructions. */
#define AARCH64_FEATURE_RAS 0x04000000 /* RAS Extensions. */
#define AARCH64_FEATURE_PROFILE 0x08000000 /* Statistical Profiling. */
 
/* Architectures are the sum of the base and extensions. */
#define AARCH64_ARCH_V8 AARCH64_FEATURE (AARCH64_FEATURE_V8, \
AARCH64_FEATURE_FP \
| AARCH64_FEATURE_SIMD)
#define AARCH64_ARCH_V8_1 AARCH64_FEATURE (AARCH64_FEATURE_V8, \
AARCH64_FEATURE_FP \
| AARCH64_FEATURE_SIMD \
| AARCH64_FEATURE_CRC \
| AARCH64_FEATURE_V8_1 \
| AARCH64_FEATURE_LSE \
| AARCH64_FEATURE_PAN \
| AARCH64_FEATURE_LOR \
| AARCH64_FEATURE_RDMA)
#define AARCH64_ARCH_V8_2 AARCH64_FEATURE (AARCH64_FEATURE_V8, \
AARCH64_FEATURE_V8_2 \
| AARCH64_FEATURE_F16 \
| AARCH64_FEATURE_RAS \
| AARCH64_FEATURE_FP \
| AARCH64_FEATURE_SIMD \
| AARCH64_FEATURE_CRC \
| AARCH64_FEATURE_V8_1 \
| AARCH64_FEATURE_LSE \
| AARCH64_FEATURE_PAN \
| AARCH64_FEATURE_LOR \
| AARCH64_FEATURE_RDMA)
 
#define AARCH64_ARCH_NONE AARCH64_FEATURE (0, 0)
#define AARCH64_ANY AARCH64_FEATURE (-1, 0) /* Any basic core. */
 
141,7 → 106,6
 
AARCH64_OPND_Rd_SP, /* Integer Rd or SP. */
AARCH64_OPND_Rn_SP, /* Integer Rn or SP. */
AARCH64_OPND_PAIRREG, /* Paired register operand. */
AARCH64_OPND_Rm_EXT, /* Integer Rm extended. */
AARCH64_OPND_Rm_SFT, /* Integer Rm shifted. */
 
237,7 → 201,6
AARCH64_OPND_BARRIER, /* Barrier operand. */
AARCH64_OPND_BARRIER_ISB, /* Barrier operand for ISB. */
AARCH64_OPND_PRFOP, /* Prefetch operation. */
AARCH64_OPND_BARRIER_PSB, /* Barrier operand for PSB. */
};
 
/* Qualifier constrains an operand. It either specifies a variant of an
282,7 → 245,6
constraint qualifiers for immediate operands wherever possible. */
AARCH64_OPND_QLF_V_8B,
AARCH64_OPND_QLF_V_16B,
AARCH64_OPND_QLF_V_2H,
AARCH64_OPND_QLF_V_4H,
AARCH64_OPND_QLF_V_8H,
AARCH64_OPND_QLF_V_2S,
378,7 → 340,6
loadlit,
log_imm,
log_shift,
lse_atomic,
movewide,
pcreladdr,
ic_system,
446,7 → 407,6
OP_SBFX,
OP_SBFIZ,
OP_BFI,
OP_BFC, /* ARMv8.2. */
OP_UBFIZ,
OP_UXTB,
OP_UXTH,
590,9 → 550,7
#define F_N (1 << 23)
/* Opcode dependent field. */
#define F_OD(X) (((X) & 0x7) << 24)
/* Instruction has the field of 'sz'. */
#define F_LSE_SZ (1 << 27)
/* Next bit is 28. */
/* Next bit is 27. */
 
static inline bfd_boolean
alias_opcode_p (const aarch64_opcode *opcode)
641,7 → 599,7
static inline bfd_boolean
opcode_has_special_coder (const aarch64_opcode *opcode)
{
return (opcode->flags & (F_SF | F_LSE_SZ | F_SIZEQ | F_FPTYPE | F_SSIZE | F_T
return (opcode->flags & (F_SF | F_SIZEQ | F_FPTYPE | F_SSIZE | F_T
| F_GPRSIZE_IN_Q | F_LDS_SIZE | F_MISC | F_N | F_COND)) ? TRUE
: FALSE;
}
655,7 → 613,6
extern const struct aarch64_name_value_pair aarch64_operand_modifiers [];
extern const struct aarch64_name_value_pair aarch64_barrier_options [16];
extern const struct aarch64_name_value_pair aarch64_prfops [32];
extern const struct aarch64_name_value_pair aarch64_hint_options [];
 
typedef struct
{
667,23 → 624,14
extern const aarch64_sys_reg aarch64_sys_regs [];
extern const aarch64_sys_reg aarch64_pstatefields [];
extern bfd_boolean aarch64_sys_reg_deprecated_p (const aarch64_sys_reg *);
extern bfd_boolean aarch64_sys_reg_supported_p (const aarch64_feature_set,
const aarch64_sys_reg *);
extern bfd_boolean aarch64_pstatefield_supported_p (const aarch64_feature_set,
const aarch64_sys_reg *);
 
typedef struct
{
const char *name;
const char *template;
uint32_t value;
uint32_t flags ;
int has_xt;
} aarch64_sys_ins_reg;
 
extern bfd_boolean aarch64_sys_ins_reg_has_xt (const aarch64_sys_ins_reg *);
extern bfd_boolean
aarch64_sys_ins_reg_supported_p (const aarch64_feature_set,
const aarch64_sys_ins_reg *);
 
extern const aarch64_sys_ins_reg aarch64_sys_regs_ic [];
extern const aarch64_sys_ins_reg aarch64_sys_regs_dc [];
extern const aarch64_sys_ins_reg aarch64_sys_regs_at [];
789,7 → 737,6
aarch64_insn pstatefield;
const aarch64_sys_ins_reg *sysins_op;
const struct aarch64_name_value_pair *barrier;
const struct aarch64_name_value_pair *hint_option;
const struct aarch64_name_value_pair *prfop;
};
 
954,12 → 901,9
extern int
aarch64_stack_pointer_p (const aarch64_opnd_info *);
 
extern int
aarch64_zero_register_p (const aarch64_opnd_info *);
extern
int aarch64_zero_register_p (const aarch64_opnd_info *);
 
extern int
aarch64_decode_insn (aarch64_insn, aarch64_inst *, bfd_boolean);
 
/* Given an operand qualifier, return the expected data element size
of a qualified operand. */
extern unsigned char
996,8 → 940,4
#define DEBUG_TRACE_IF(C, M, ...) ;
#endif /* DEBUG_AARCH64 */
 
#ifdef __cplusplus
}
#endif
 
#endif /* OPCODE_AARCH64_H */
/contrib/toolchain/binutils/include/opcode/alpha.h
1,5 → 1,5
/* alpha.h -- Header file for Alpha opcode table
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1999, 2001, 2003, 2010 Free Software Foundation, Inc.
Contributed by Richard Henderson <rth@tamu.edu>,
patterned after the PPC opcode table written by Ian Lance Taylor.
 
/contrib/toolchain/binutils/include/opcode/arc.h
1,8 → 1,8
/* Opcode table for the ARC.
Copyright 1994-2015 Free Software Foundation, Inc.
Copyright 1994, 1995, 1997, 2001, 2002, 2003, 2010
Free Software Foundation, Inc.
Contributed by Doug Evans (dje@cygnus.com).
 
Contributed by Claudiu Zissulescu (claziss@synopsys.com)
 
This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and
the GNU Binutils.
 
21,182 → 21,201
the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
 
#ifndef OPCODE_ARC_H
#define OPCODE_ARC_H
/* List of the various cpu types.
The tables currently use bit masks to say whether the instruction or
whatever is supported by a particular cpu. This lets us have one entry
apply to several cpus.
 
#define MAX_INSN_ARGS 6
#define MAX_INSN_FLGS 3
The `base' cpu must be 0. The cpu type is treated independently of
endianness. The complete `mach' number includes endianness.
These values are internal to opcodes/bfd/binutils/gas. */
#define ARC_MACH_5 0
#define ARC_MACH_6 1
#define ARC_MACH_7 2
#define ARC_MACH_8 4
 
/* Instruction Class. */
typedef enum
{
ARITH,
AUXREG,
BRANCH,
CONTROL,
DSP,
FLOAT,
INVALID,
JUMP,
KERNEL,
LOGICAL,
MEMORY,
} insn_class_t;
/* Additional cpu values can be inserted here and ARC_MACH_BIG moved down. */
#define ARC_MACH_BIG 16
 
/* Instruction Subclass. */
typedef enum
{
NONE,
CVT,
BTSCN,
CD1,
CD2,
DIV,
DP,
MPY1E,
MPY6E,
MPY7E,
MPY8E,
MPY9E,
SHFT1,
SHFT2,
SWAP,
SP
} insn_subclass_t;
/* Mask of number of bits necessary to record cpu type. */
#define ARC_MACH_CPU_MASK (ARC_MACH_BIG - 1)
 
/* Flags class. */
typedef enum
{
FNONE,
CND, /* Conditional flags. */
WBM, /* Write-back modes. */
FLG, /* F Flag. */
SBP, /* Static branch prediction. */
DLY, /* Delay slot. */
DIF, /* Bypass caches. */
SGX, /* Sign extend modes. */
SZM /* Data size modes. */
} flag_class_t;
/* Mask of number of bits necessary to record cpu type + endianness. */
#define ARC_MACH_MASK ((ARC_MACH_BIG << 1) - 1)
 
/* The opcode table is an array of struct arc_opcode. */
struct arc_opcode
{
/* The opcode name. */
const char *name;
/* Type to denote an ARC instruction (at least a 32 bit unsigned int). */
 
/* The opcode itself. Those bits which will be filled in with
operands are zeroes. */
unsigned opcode;
typedef unsigned int arc_insn;
 
/* The opcode mask. This is used by the disassembler. This is a
mask containing ones indicating those bits which must match the
opcode field, and zeroes indicating those bits which need not
match (and are presumably filled in by operands). */
unsigned mask;
struct arc_opcode {
char *syntax; /* syntax of insn */
unsigned long mask, value; /* recognize insn if (op&mask) == value */
int flags; /* various flag bits */
 
/* One bit flags for the opcode. These are primarily used to
indicate specific processors and environments support the
instructions. The defined values are listed below. */
unsigned cpu;
/* Values for `flags'. */
 
/* The instruction class. This is used by gdb. */
insn_class_t class;
/* Return CPU number, given flag bits. */
#define ARC_OPCODE_CPU(bits) ((bits) & ARC_MACH_CPU_MASK)
 
/* The instruction subclass. */
insn_subclass_t subclass;
/* Return MACH number, given flag bits. */
#define ARC_OPCODE_MACH(bits) ((bits) & ARC_MACH_MASK)
 
/* An array of operand codes. Each code is an index into the
operand table. They appear in the order which the operands must
appear in assembly code, and are terminated by a zero. */
unsigned char operands[MAX_INSN_ARGS + 1];
/* First opcode flag bit available after machine mask. */
#define ARC_OPCODE_FLAG_START (ARC_MACH_MASK + 1)
 
/* An array of flag codes. Each code is an index into the flag
table. They appear in the order which the flags must appear in
assembly code, and are terminated by a zero. */
unsigned char flags[MAX_INSN_FLGS + 1];
/* This insn is a conditional branch. */
#define ARC_OPCODE_COND_BRANCH (ARC_OPCODE_FLAG_START)
#define SYNTAX_3OP (ARC_OPCODE_COND_BRANCH << 1)
#define SYNTAX_LENGTH (SYNTAX_3OP )
#define SYNTAX_2OP (SYNTAX_3OP << 1)
#define OP1_MUST_BE_IMM (SYNTAX_2OP << 1)
#define OP1_IMM_IMPLIED (OP1_MUST_BE_IMM << 1)
#define SYNTAX_VALID (OP1_IMM_IMPLIED << 1)
 
#define I(x) (((x) & 31) << 27)
#define A(x) (((x) & ARC_MASK_REG) << ARC_SHIFT_REGA)
#define B(x) (((x) & ARC_MASK_REG) << ARC_SHIFT_REGB)
#define C(x) (((x) & ARC_MASK_REG) << ARC_SHIFT_REGC)
#define R(x,b,m) (((x) & (m)) << (b)) /* value X, mask M, at bit B */
 
/* These values are used to optimize assembly and disassembly. Each insn
is on a list of related insns (same first letter for assembly, same
insn code for disassembly). */
 
struct arc_opcode *next_asm; /* Next instr to try during assembly. */
struct arc_opcode *next_dis; /* Next instr to try during disassembly. */
 
/* Macros to create the hash values for the lists. */
#define ARC_HASH_OPCODE(string) \
((string)[0] >= 'a' && (string)[0] <= 'z' ? (string)[0] - 'a' : 26)
#define ARC_HASH_ICODE(insn) \
((unsigned int) (insn) >> 27)
 
/* Macros to access `next_asm', `next_dis' so users needn't care about the
underlying mechanism. */
#define ARC_OPCODE_NEXT_ASM(op) ((op)->next_asm)
#define ARC_OPCODE_NEXT_DIS(op) ((op)->next_dis)
};
 
/* The table itself is sorted by major opcode number, and is otherwise
in the order in which the disassembler should consider
instructions. */
extern const struct arc_opcode arc_opcodes[];
extern const unsigned arc_num_opcodes;
/* this is an "insert at front" linked list per Metaware spec
that new definitions override older ones. */
extern struct arc_opcode *arc_ext_opcodes;
 
/* CPU Availability. */
#define ARC_OPCODE_ARC600 0x0001 /* ARC 600 specific insns. */
#define ARC_OPCODE_ARC700 0x0002 /* ARC 700 specific insns. */
#define ARC_OPCODE_ARCv2EM 0x0004 /* ARCv2 EM specific insns. */
#define ARC_OPCODE_ARCv2HS 0x0008 /* ARCv2 HS specific insns. */
struct arc_operand_value {
char *name; /* eg: "eq" */
short value; /* eg: 1 */
unsigned char type; /* index into `arc_operands' */
unsigned char flags; /* various flag bits */
 
/* CPU extensions. */
#define ARC_EA 0x0001
#define ARC_CD 0x0001 /* Mutual exclusive with EA. */
#define ARC_LLOCK 0x0002
#define ARC_ATOMIC 0x0002 /* Mutual exclusive with LLOCK. */
#define ARC_MPY 0x0004
#define ARC_MULT 0x0004
/* Values for `flags'. */
 
/* Floating point support. */
#define ARC_DPFP 0x0010
#define ARC_SPFP 0x0020
#define ARC_FPU 0x0030
/* Return CPU number, given flag bits. */
#define ARC_OPVAL_CPU(bits) ((bits) & ARC_MACH_CPU_MASK)
/* Return MACH number, given flag bits. */
#define ARC_OPVAL_MACH(bits) ((bits) & ARC_MACH_MASK)
};
 
/* NORM & SWAP. */
#define ARC_SWAP 0x0100
#define ARC_NORM 0x0200
#define ARC_BSCAN 0x0200
struct arc_ext_operand_value {
struct arc_ext_operand_value *next;
struct arc_operand_value operand;
};
 
/* A7 specific. */
#define ARC_UIX 0x1000
#define ARC_TSTAMP 0x1000
extern struct arc_ext_operand_value *arc_ext_operands;
 
/* A6 specific. */
#define ARC_VBFDW 0x1000
#define ARC_BARREL 0x1000
#define ARC_DSPA 0x1000
struct arc_operand {
/* One of the insn format chars. */
unsigned char fmt;
 
/* EM specific. */
#define ARC_SHIFT 0x1000
/* The number of bits in the operand (may be unused for a modifier). */
unsigned char bits;
 
/* V2 specific. */
#define ARC_INTR 0x1000
#define ARC_DIV 0x1000
/* How far the operand is left shifted in the instruction, or
the modifier's flag bit (may be unused for a modifier. */
unsigned char shift;
 
/* V1 specific. */
#define ARC_XMAC 0x1000
#define ARC_CRC 0x1000
/* Various flag bits. */
int flags;
 
/* Base architecture -- all cpus. */
#define ARC_OPCODE_BASE \
(ARC_OPCODE_ARC600 | ARC_OPCODE_ARC700 \
| ARC_OPCODE_ARCv2EM | ARC_OPCODE_ARCv2HS)
/* Values for `flags'. */
 
/* A macro to check for short instructions. */
#define ARC_SHORT(mask) \
(((mask) & 0xFFFF0000) ? 0 : 1)
/* This operand is a suffix to the opcode. */
#define ARC_OPERAND_SUFFIX 1
 
/* The operands table is an array of struct arc_operand. */
struct arc_operand
{
/* The number of bits in the operand. */
unsigned int bits;
/* This operand is a relative branch displacement. The disassembler
prints these symbolically if possible. */
#define ARC_OPERAND_RELATIVE_BRANCH 2
 
/* How far the operand is left shifted in the instruction. */
unsigned int shift;
/* This operand is an absolute branch address. The disassembler
prints these symbolically if possible. */
#define ARC_OPERAND_ABSOLUTE_BRANCH 4
 
/* The default relocation type for this operand. */
signed int default_reloc;
/* This operand is an address. The disassembler
prints these symbolically if possible. */
#define ARC_OPERAND_ADDRESS 8
 
/* One bit syntax flags. */
unsigned int flags;
/* This operand is a long immediate value. */
#define ARC_OPERAND_LIMM 0x10
 
/* This operand takes signed values. */
#define ARC_OPERAND_SIGNED 0x20
 
/* This operand takes signed values, but also accepts a full positive
range of values. That is, if bits is 16, it takes any value from
-0x8000 to 0xffff. */
#define ARC_OPERAND_SIGNOPT 0x40
 
/* This operand should be regarded as a negative number for the
purposes of overflow checking (i.e., the normal most negative
number is disallowed and one more than the normal most positive
number is allowed). This flag will only be set for a signed
operand. */
#define ARC_OPERAND_NEGATIVE 0x80
 
/* This operand doesn't really exist. The program uses these operands
in special ways. */
#define ARC_OPERAND_FAKE 0x100
 
/* separate flags operand for j and jl instructions */
#define ARC_OPERAND_JUMPFLAGS 0x200
 
/* allow warnings and errors to be issued after call to insert_xxxxxx */
#define ARC_OPERAND_WARN 0x400
#define ARC_OPERAND_ERROR 0x800
 
/* this is a load operand */
#define ARC_OPERAND_LOAD 0x8000
 
/* this is a store operand */
#define ARC_OPERAND_STORE 0x10000
 
/* Modifier values. */
/* A dot is required before a suffix. Eg: .le */
#define ARC_MOD_DOT 0x1000
 
/* A normal register is allowed (not used, but here for completeness). */
#define ARC_MOD_REG 0x2000
 
/* An auxiliary register name is expected. */
#define ARC_MOD_AUXREG 0x4000
 
/* Sum of all ARC_MOD_XXX bits. */
#define ARC_MOD_BITS 0x7000
 
/* Non-zero if the operand type is really a modifier. */
#define ARC_MOD_P(X) ((X) & ARC_MOD_BITS)
 
/* enforce read/write only register restrictions */
#define ARC_REGISTER_READONLY 0x01
#define ARC_REGISTER_WRITEONLY 0x02
#define ARC_REGISTER_NOSHORT_CUT 0x04
 
/* Insertion function. This is used by the assembler. To insert an
operand value into an instruction, check this field.
 
If it is NULL, execute
i |= (op & ((1 << o->bits) - 1)) << o->shift;
(i is the instruction which we are filling in, o is a pointer to
this structure, and op is the opcode value; this assumes twos
i |= (p & ((1 << o->bits) - 1)) << o->shift;
(I is the instruction which we are filling in, O is a pointer to
this structure, and OP is the opcode value; this assumes twos
complement arithmetic).
 
If this field is not NULL, then simply call it with the
204,10 → 223,14
of the instruction. If the ERRMSG argument is not NULL, then if
the operand value is illegal, *ERRMSG will be set to a warning
string (the operand will be inserted in any case). If the
operand value is legal, *ERRMSG will be unchanged (most operands
can accept any value). */
unsigned (*insert) (unsigned instruction, int op, const char **errmsg);
operand value is legal, *ERRMSG will be unchanged.
 
REG is non-NULL when inserting a register value. */
 
arc_insn (*insert)
(arc_insn insn, const struct arc_operand *operand, int mods,
const struct arc_operand_value *reg, long value, const char **errmsg);
 
/* Extraction function. This is used by the disassembler. To
extract this operand type from an instruction, check this field.
 
216,198 → 239,84
if ((o->flags & ARC_OPERAND_SIGNED) != 0
&& (op & (1 << (o->bits - 1))) != 0)
op -= 1 << o->bits;
(i is the instruction, o is a pointer to this structure, and op
(I is the instruction, O is a pointer to this structure, and OP
is the result; this assumes twos complement arithmetic).
 
If this field is not NULL, then simply call it with the
instruction value. It will return the value of the operand. If
the INVALID argument is not NULL, *INVALID will be set to
TRUE if this operand type can not actually be extracted from
non-zero if this operand type can not actually be extracted from
this operand (i.e., the instruction does not match). If the
operand is valid, *INVALID will not be changed. */
int (*extract) (unsigned instruction, bfd_boolean *invalid);
};
operand is valid, *INVALID will not be changed.
 
/* Elements in the table are retrieved by indexing with values from
the operands field of the arc_opcodes table. */
extern const struct arc_operand arc_operands[];
extern const unsigned arc_num_operands;
extern const unsigned arc_Toperand;
extern const unsigned arc_NToperand;
INSN is a pointer to an array of two `arc_insn's. The first element is
the insn, the second is the limm if present.
 
/* Values defined for the flags field of a struct arc_operand. */
Operands that have a printable form like registers and suffixes have
their struct arc_operand_value pointer stored in OPVAL. */
 
/* This operand does not actually exist in the assembler input. This
is used to support extended mnemonics, for which two operands fields
are identical. The assembler should call the insert function with
any op value. The disassembler should call the extract function,
ignore the return value, and check the value placed in the invalid
argument. */
#define ARC_OPERAND_FAKE 0x0001
 
/* This operand names an integer register. */
#define ARC_OPERAND_IR 0x0002
 
/* This operand takes signed values. */
#define ARC_OPERAND_SIGNED 0x0004
 
/* This operand takes unsigned values. This exists primarily so that
a flags value of 0 can be treated as end-of-arguments. */
#define ARC_OPERAND_UNSIGNED 0x0008
 
/* This operand takes long immediate values. */
#define ARC_OPERAND_LIMM 0x0010
 
/* This operand is identical like the previous one. */
#define ARC_OPERAND_DUPLICATE 0x0020
 
/* This operand is PC relative. Used for internal relocs. */
#define ARC_OPERAND_PCREL 0x0040
 
/* This operand is truncated. The truncation is done accordingly to
operand alignment attribute. */
#define ARC_OPERAND_TRUNCATE 0x0080
 
/* This operand is 16bit aligned. */
#define ARC_OPERAND_ALIGNED16 0x0100
 
/* This operand is 32bit aligned. */
#define ARC_OPERAND_ALIGNED32 0x0200
 
/* This operand can be ignored by matching process if it is not
present. */
#define ARC_OPERAND_IGNORE 0x0400
 
/* Don't check the range when matching. */
#define ARC_OPERAND_NCHK 0x0800
 
/* Mark the braket possition. */
#define ARC_OPERAND_BRAKET 0x1000
 
/* Mask for selecting the type for typecheck purposes. */
#define ARC_OPERAND_TYPECHECK_MASK \
(ARC_OPERAND_IR | \
ARC_OPERAND_LIMM | ARC_OPERAND_SIGNED | \
ARC_OPERAND_UNSIGNED | ARC_OPERAND_BRAKET)
 
/* The flags structure. */
struct arc_flag_operand
{
/* The flag name. */
const char *name;
 
/* The flag code. */
unsigned code;
 
/* The number of bits in the operand. */
unsigned int bits;
 
/* How far the operand is left shifted in the instruction. */
unsigned int shift;
 
/* Available for disassembler. */
unsigned char favail;
long (*extract)
(arc_insn *insn, const struct arc_operand *operand, int mods,
const struct arc_operand_value **opval, int *invalid);
};
 
/* The flag operands table. */
extern const struct arc_flag_operand arc_flag_operands[];
extern const unsigned arc_num_flag_operands;
/* Bits that say what version of cpu we have. These should be passed to
arc_init_opcode_tables. At present, all there is is the cpu type. */
 
/* The flag's class structure. */
struct arc_flag_class
{
/* Flag class. */
flag_class_t class;
/* CPU number, given value passed to `arc_init_opcode_tables'. */
#define ARC_HAVE_CPU(bits) ((bits) & ARC_MACH_CPU_MASK)
/* MACH number, given value passed to `arc_init_opcode_tables'. */
#define ARC_HAVE_MACH(bits) ((bits) & ARC_MACH_MASK)
 
/* List of valid flags (codes). */
unsigned flags[256];
};
/* Special register values: */
#define ARC_REG_SHIMM_UPDATE 61
#define ARC_REG_SHIMM 63
#define ARC_REG_LIMM 62
 
extern const struct arc_flag_class arc_flag_classes[];
/* Non-zero if REG is a constant marker. */
#define ARC_REG_CONSTANT_P(REG) ((REG) >= 61)
 
/* Structure for special cases. */
struct arc_flag_special
{
/* Name of special case instruction. */
const char *name;
/* Positions and masks of various fields: */
#define ARC_SHIFT_REGA 21
#define ARC_SHIFT_REGB 15
#define ARC_SHIFT_REGC 9
#define ARC_MASK_REG 63
 
/* List of flags applicable for special case instruction. */
unsigned flags[32];
};
/* Delay slot types. */
#define ARC_DELAY_NONE 0 /* no delay slot */
#define ARC_DELAY_NORMAL 1 /* delay slot in both cases */
#define ARC_DELAY_JUMP 2 /* delay slot only if branch taken */
 
extern const struct arc_flag_special arc_flag_special_cases[];
extern const unsigned arc_num_flag_special;
/* Non-zero if X will fit in a signed 9 bit field. */
#define ARC_SHIMM_CONST_P(x) ((long) (x) >= -256 && (long) (x) <= 255)
 
/* Relocation equivalence structure. */
struct arc_reloc_equiv_tab
{
const char * name; /* String to lookup. */
const char * mnemonic; /* Extra matching condition. */
unsigned flagcode; /* Extra matching condition. */
signed int oldreloc; /* Old relocation. */
signed int newreloc; /* New relocation. */
};
extern const struct arc_operand arc_operands[];
extern const int arc_operand_count;
extern struct arc_opcode arc_opcodes[];
extern const int arc_opcodes_count;
extern const struct arc_operand_value arc_suffixes[];
extern const int arc_suffixes_count;
extern const struct arc_operand_value arc_reg_names[];
extern const int arc_reg_names_count;
extern unsigned char arc_operand_map[];
 
extern const struct arc_reloc_equiv_tab arc_reloc_equiv[];
extern const unsigned arc_num_equiv_tab;
/* Utility fns in arc-opc.c. */
int arc_get_opcode_mach (int, int);
 
/* Structure for operand operations for pseudo/alias instructions. */
struct arc_operand_operation
{
/* The index for operand from operand array. */
unsigned operand_idx;
 
/* Defines if it needs the operand inserted by the assembler or
whether this operand comes from the pseudo instruction's
operands. */
unsigned char needs_insert;
 
/* Count we have to add to the operand. Use negative number to
subtract from the operand. Also use this number to add to 0 if
the operand needs to be inserted (i.e. needs_insert == 1). */
int count;
 
/* Index of the operand to swap with. To be done AFTER applying
inc_count. */
unsigned swap_operand_idx;
};
 
/* Structure for pseudo/alias instructions. */
struct arc_pseudo_insn
{
/* Mnemonic for pseudo/alias insn. */
const char *mnemonic_p;
 
/* Mnemonic for real instruction. */
const char *mnemonic_r;
 
/* Flag that will have to be added (if any). */
const char *flag_r;
 
/* Amount of operands. */
unsigned operand_cnt;
 
/* Array of operand operations. */
struct arc_operand_operation operand[6];
};
 
extern const struct arc_pseudo_insn arc_pseudo_insns[];
extern const unsigned arc_num_pseudo_insn;
 
/* Structure for AUXILIARY registers. */
struct arc_aux_reg
{
/* Register address. */
int address;
 
/* Register name. */
const char *name;
 
/* Size of the string. */
size_t length;
};
 
extern const struct arc_aux_reg arc_aux_regs[];
extern const unsigned arc_num_aux_regs;
 
#endif /* OPCODE_ARC_H */
/* `arc_opcode_init_tables' must be called before `arc_xxx_supported'. */
void arc_opcode_init_tables (int);
void arc_opcode_init_insert (void);
void arc_opcode_init_extract (void);
const struct arc_opcode *arc_opcode_lookup_asm (const char *);
const struct arc_opcode *arc_opcode_lookup_dis (unsigned int);
int arc_opcode_limm_p (long *);
const struct arc_operand_value *arc_opcode_lookup_suffix
(const struct arc_operand *type, int value);
int arc_opcode_supported (const struct arc_opcode *);
int arc_opval_supported (const struct arc_operand_value *);
int arc_limm_fixup_adjust (arc_insn);
int arc_insn_is_j (arc_insn);
int arc_insn_not_jl (arc_insn);
int arc_operand_type (int);
struct arc_operand_value *get_ext_suffix (char *);
int arc_get_noshortcut_flag (void);
/contrib/toolchain/binutils/include/opcode/arm.h
1,5 → 1,5
/* ARM assembler/disassembler support.
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright 2004, 2010, 2011 Free Software Foundation, Inc.
 
This file is part of GDB and GAS.
 
57,8 → 57,6
state. */
#define ARM_EXT_VIRT 0x80000000 /* Virtualization extensions. */
 
#define ARM_EXT2_PAN 0x00000001 /* PAN extension. */
 
/* Co-processor space extensions. */
#define ARM_CEXT_XSCALE 0x00000001 /* Allow MIA etc. */
#define ARM_CEXT_MAVERICK 0x00000002 /* Use Cirrus/DSP coprocessor. */
80,12 → 78,10
#define FPU_VFP_EXT_FP16 0x00100000 /* Half-precision extensions. */
#define FPU_NEON_EXT_FMA 0x00080000 /* Neon fused multiply-add */
#define FPU_VFP_EXT_FMA 0x00040000 /* VFP fused multiply-add */
#define FPU_VFP_EXT_ARMV8 0x00020000 /* Double-precision FP for ARMv8. */
#define FPU_VFP_EXT_ARMV8 0x00020000 /* FP for ARMv8. */
#define FPU_NEON_EXT_ARMV8 0x00010000 /* Neon for ARMv8. */
#define FPU_CRYPTO_EXT_ARMV8 0x00008000 /* Crypto for ARMv8. */
#define CRC_EXT_ARMV8 0x00004000 /* CRC32 for ARMv8. */
#define FPU_VFP_EXT_ARMV8xD 0x00002000 /* Single-precision FP for ARMv8. */
#define FPU_NEON_EXT_RDMA 0x00001000 /* v8.1 Adv.SIMD extensions. */
 
/* Architectures are the sum of the base and extensions. The ARM ARM (rev E)
defines the following: ARMv3, ARMv3M, ARMv4xM, ARMv4, ARMv4TxM, ARMv4T,
111,13 → 107,13
#define ARM_AEXT_V6 (ARM_AEXT_V5TEJ | ARM_EXT_V6)
#define ARM_AEXT_V6K (ARM_AEXT_V6 | ARM_EXT_V6K)
#define ARM_AEXT_V6Z (ARM_AEXT_V6K | ARM_EXT_SEC)
#define ARM_AEXT_V6KZ (ARM_AEXT_V6K | ARM_EXT_SEC)
#define ARM_AEXT_V6ZK (ARM_AEXT_V6K | ARM_EXT_SEC)
#define ARM_AEXT_V6T2 (ARM_AEXT_V6 \
| ARM_EXT_V6T2 | ARM_EXT_V6_NOTM | ARM_EXT_THUMB_MSR \
| ARM_EXT_V6_DSP )
#define ARM_AEXT_V6KT2 (ARM_AEXT_V6T2 | ARM_EXT_V6K)
#define ARM_AEXT_V6ZT2 (ARM_AEXT_V6T2 | ARM_EXT_SEC)
#define ARM_AEXT_V6KZT2 (ARM_AEXT_V6T2 | ARM_EXT_V6K | ARM_EXT_SEC)
#define ARM_AEXT_V6ZKT2 (ARM_AEXT_V6T2 | ARM_EXT_V6K | ARM_EXT_SEC)
#define ARM_AEXT_V7_ARM (ARM_AEXT_V6KT2 | ARM_EXT_V7 | ARM_EXT_BARRIER)
#define ARM_AEXT_V7A (ARM_AEXT_V7_ARM | ARM_EXT_V7A)
#define ARM_AEXT_V7VE (ARM_AEXT_V7A | ARM_EXT_DIV | ARM_EXT_ADIV \
142,12 → 138,11
| ARM_EXT_VIRT | ARM_EXT_V8)
 
/* Processors with specific extensions in the co-processor space. */
#define ARM_ARCH_XSCALE ARM_FEATURE_LOW (ARM_AEXT_V5TE, ARM_CEXT_XSCALE)
#define ARM_ARCH_XSCALE ARM_FEATURE (ARM_AEXT_V5TE, ARM_CEXT_XSCALE)
#define ARM_ARCH_IWMMXT \
ARM_FEATURE_LOW (ARM_AEXT_V5TE, ARM_CEXT_XSCALE | ARM_CEXT_IWMMXT)
ARM_FEATURE (ARM_AEXT_V5TE, ARM_CEXT_XSCALE | ARM_CEXT_IWMMXT)
#define ARM_ARCH_IWMMXT2 \
ARM_FEATURE_LOW (ARM_AEXT_V5TE, ARM_CEXT_XSCALE | ARM_CEXT_IWMMXT \
| ARM_CEXT_IWMMXT2)
ARM_FEATURE (ARM_AEXT_V5TE, ARM_CEXT_XSCALE | ARM_CEXT_IWMMXT | ARM_CEXT_IWMMXT2)
 
#define FPU_VFP_V1xD (FPU_VFP_EXT_V1xD | FPU_ENDIAN_PURE)
#define FPU_VFP_V1 (FPU_VFP_V1xD | FPU_VFP_EXT_V1)
158,9 → 153,7
#define FPU_VFP_V4D16 (FPU_VFP_V3D16 | FPU_VFP_EXT_FP16 | FPU_VFP_EXT_FMA)
#define FPU_VFP_V4 (FPU_VFP_V3 | FPU_VFP_EXT_FP16 | FPU_VFP_EXT_FMA)
#define FPU_VFP_V4_SP_D16 (FPU_VFP_V3xD | FPU_VFP_EXT_FP16 | FPU_VFP_EXT_FMA)
#define FPU_VFP_V5D16 (FPU_VFP_V4D16 | FPU_VFP_EXT_ARMV8xD | FPU_VFP_EXT_ARMV8)
#define FPU_VFP_V5_SP_D16 (FPU_VFP_V4_SP_D16 | FPU_VFP_EXT_ARMV8xD)
#define FPU_VFP_ARMV8 (FPU_VFP_V4 | FPU_VFP_EXT_ARMV8 | FPU_VFP_EXT_ARMV8xD)
#define FPU_VFP_ARMV8 (FPU_VFP_V4 | FPU_VFP_EXT_ARMV8)
#define FPU_NEON_ARMV8 (FPU_NEON_EXT_V1 | FPU_NEON_EXT_FMA | FPU_NEON_EXT_ARMV8)
#define FPU_CRYPTO_ARMV8 (FPU_CRYPTO_EXT_ARMV8)
#define FPU_VFP_HARD (FPU_VFP_EXT_V1xD | FPU_VFP_EXT_V1 | FPU_VFP_EXT_V2 \
169,183 → 162,126
#define FPU_FPA (FPU_FPA_EXT_V1 | FPU_FPA_EXT_V2)
 
/* Deprecated. */
#define FPU_ARCH_VFP ARM_FEATURE_COPROC (FPU_ENDIAN_PURE)
#define FPU_ARCH_VFP ARM_FEATURE (0, FPU_ENDIAN_PURE)
 
#define FPU_ARCH_FPE ARM_FEATURE_COPROC (FPU_FPA_EXT_V1)
#define FPU_ARCH_FPA ARM_FEATURE_COPROC (FPU_FPA)
#define FPU_ARCH_FPE ARM_FEATURE (0, FPU_FPA_EXT_V1)
#define FPU_ARCH_FPA ARM_FEATURE (0, FPU_FPA)
 
#define FPU_ARCH_VFP_V1xD ARM_FEATURE_COPROC (FPU_VFP_V1xD)
#define FPU_ARCH_VFP_V1 ARM_FEATURE_COPROC (FPU_VFP_V1)
#define FPU_ARCH_VFP_V2 ARM_FEATURE_COPROC (FPU_VFP_V2)
#define FPU_ARCH_VFP_V3D16 ARM_FEATURE_COPROC (FPU_VFP_V3D16)
#define FPU_ARCH_VFP_V1xD ARM_FEATURE (0, FPU_VFP_V1xD)
#define FPU_ARCH_VFP_V1 ARM_FEATURE (0, FPU_VFP_V1)
#define FPU_ARCH_VFP_V2 ARM_FEATURE (0, FPU_VFP_V2)
#define FPU_ARCH_VFP_V3D16 ARM_FEATURE (0, FPU_VFP_V3D16)
#define FPU_ARCH_VFP_V3D16_FP16 \
ARM_FEATURE_COPROC (FPU_VFP_V3D16 | FPU_VFP_EXT_FP16)
#define FPU_ARCH_VFP_V3 ARM_FEATURE_COPROC (FPU_VFP_V3)
#define FPU_ARCH_VFP_V3_FP16 ARM_FEATURE_COPROC (FPU_VFP_V3 | FPU_VFP_EXT_FP16)
#define FPU_ARCH_VFP_V3xD ARM_FEATURE_COPROC (FPU_VFP_V3xD)
#define FPU_ARCH_VFP_V3xD_FP16 ARM_FEATURE_COPROC (FPU_VFP_V3xD \
| FPU_VFP_EXT_FP16)
#define FPU_ARCH_NEON_V1 ARM_FEATURE_COPROC (FPU_NEON_EXT_V1)
ARM_FEATURE (0, FPU_VFP_V3D16 | FPU_VFP_EXT_FP16)
#define FPU_ARCH_VFP_V3 ARM_FEATURE (0, FPU_VFP_V3)
#define FPU_ARCH_VFP_V3_FP16 ARM_FEATURE (0, FPU_VFP_V3 | FPU_VFP_EXT_FP16)
#define FPU_ARCH_VFP_V3xD ARM_FEATURE (0, FPU_VFP_V3xD)
#define FPU_ARCH_VFP_V3xD_FP16 ARM_FEATURE (0, FPU_VFP_V3xD | FPU_VFP_EXT_FP16)
#define FPU_ARCH_NEON_V1 ARM_FEATURE (0, FPU_NEON_EXT_V1)
#define FPU_ARCH_VFP_V3_PLUS_NEON_V1 \
ARM_FEATURE_COPROC (FPU_VFP_V3 | FPU_NEON_EXT_V1)
ARM_FEATURE (0, FPU_VFP_V3 | FPU_NEON_EXT_V1)
#define FPU_ARCH_NEON_FP16 \
ARM_FEATURE_COPROC (FPU_VFP_V3 | FPU_NEON_EXT_V1 | FPU_VFP_EXT_FP16)
#define FPU_ARCH_VFP_HARD ARM_FEATURE_COPROC (FPU_VFP_HARD)
#define FPU_ARCH_VFP_V4 ARM_FEATURE_COPROC (FPU_VFP_V4)
#define FPU_ARCH_VFP_V4D16 ARM_FEATURE_COPROC (FPU_VFP_V4D16)
#define FPU_ARCH_VFP_V4_SP_D16 ARM_FEATURE_COPROC (FPU_VFP_V4_SP_D16)
#define FPU_ARCH_VFP_V5D16 ARM_FEATURE_COPROC (FPU_VFP_V5D16)
#define FPU_ARCH_VFP_V5_SP_D16 ARM_FEATURE_COPROC (FPU_VFP_V5_SP_D16)
ARM_FEATURE (0, FPU_VFP_V3 | FPU_NEON_EXT_V1 | FPU_VFP_EXT_FP16)
#define FPU_ARCH_VFP_HARD ARM_FEATURE (0, FPU_VFP_HARD)
#define FPU_ARCH_VFP_V4 ARM_FEATURE(0, FPU_VFP_V4)
#define FPU_ARCH_VFP_V4D16 ARM_FEATURE(0, FPU_VFP_V4D16)
#define FPU_ARCH_VFP_V4_SP_D16 ARM_FEATURE(0, FPU_VFP_V4_SP_D16)
#define FPU_ARCH_NEON_VFP_V4 \
ARM_FEATURE_COPROC (FPU_VFP_V4 | FPU_NEON_EXT_V1 | FPU_NEON_EXT_FMA)
#define FPU_ARCH_VFP_ARMV8 ARM_FEATURE_COPROC (FPU_VFP_ARMV8)
#define FPU_ARCH_NEON_VFP_ARMV8 ARM_FEATURE_COPROC (FPU_NEON_ARMV8 \
| FPU_VFP_ARMV8)
ARM_FEATURE(0, FPU_VFP_V4 | FPU_NEON_EXT_V1 | FPU_NEON_EXT_FMA)
#define FPU_ARCH_VFP_ARMV8 ARM_FEATURE(0, FPU_VFP_ARMV8)
#define FPU_ARCH_NEON_VFP_ARMV8 ARM_FEATURE(0, FPU_NEON_ARMV8 | FPU_VFP_ARMV8)
#define FPU_ARCH_CRYPTO_NEON_VFP_ARMV8 \
ARM_FEATURE_COPROC (FPU_CRYPTO_ARMV8 | FPU_NEON_ARMV8 | FPU_VFP_ARMV8)
#define ARCH_CRC_ARMV8 ARM_FEATURE_COPROC (CRC_EXT_ARMV8)
#define FPU_ARCH_NEON_VFP_ARMV8_1 \
ARM_FEATURE_COPROC (FPU_NEON_ARMV8 \
| FPU_VFP_ARMV8 \
| FPU_NEON_EXT_RDMA)
#define FPU_ARCH_CRYPTO_NEON_VFP_ARMV8_1 \
ARM_FEATURE_COPROC (FPU_CRYPTO_ARMV8 | FPU_NEON_ARMV8 | FPU_VFP_ARMV8 \
| FPU_NEON_EXT_RDMA)
ARM_FEATURE(0, FPU_CRYPTO_ARMV8 | FPU_NEON_ARMV8 | FPU_VFP_ARMV8)
#define ARCH_CRC_ARMV8 ARM_FEATURE(0, CRC_EXT_ARMV8)
 
#define FPU_ARCH_ENDIAN_PURE ARM_FEATURE (0, FPU_ENDIAN_PURE)
 
#define FPU_ARCH_ENDIAN_PURE ARM_FEATURE_COPROC (FPU_ENDIAN_PURE)
#define FPU_ARCH_MAVERICK ARM_FEATURE (0, FPU_MAVERICK)
 
#define FPU_ARCH_MAVERICK ARM_FEATURE_COPROC (FPU_MAVERICK)
#define ARM_ARCH_V1 ARM_FEATURE (ARM_AEXT_V1, 0)
#define ARM_ARCH_V2 ARM_FEATURE (ARM_AEXT_V2, 0)
#define ARM_ARCH_V2S ARM_FEATURE (ARM_AEXT_V2S, 0)
#define ARM_ARCH_V3 ARM_FEATURE (ARM_AEXT_V3, 0)
#define ARM_ARCH_V3M ARM_FEATURE (ARM_AEXT_V3M, 0)
#define ARM_ARCH_V4xM ARM_FEATURE (ARM_AEXT_V4xM, 0)
#define ARM_ARCH_V4 ARM_FEATURE (ARM_AEXT_V4, 0)
#define ARM_ARCH_V4TxM ARM_FEATURE (ARM_AEXT_V4TxM, 0)
#define ARM_ARCH_V4T ARM_FEATURE (ARM_AEXT_V4T, 0)
#define ARM_ARCH_V5xM ARM_FEATURE (ARM_AEXT_V5xM, 0)
#define ARM_ARCH_V5 ARM_FEATURE (ARM_AEXT_V5, 0)
#define ARM_ARCH_V5TxM ARM_FEATURE (ARM_AEXT_V5TxM, 0)
#define ARM_ARCH_V5T ARM_FEATURE (ARM_AEXT_V5T, 0)
#define ARM_ARCH_V5TExP ARM_FEATURE (ARM_AEXT_V5TExP, 0)
#define ARM_ARCH_V5TE ARM_FEATURE (ARM_AEXT_V5TE, 0)
#define ARM_ARCH_V5TEJ ARM_FEATURE (ARM_AEXT_V5TEJ, 0)
#define ARM_ARCH_V6 ARM_FEATURE (ARM_AEXT_V6, 0)
#define ARM_ARCH_V6K ARM_FEATURE (ARM_AEXT_V6K, 0)
#define ARM_ARCH_V6Z ARM_FEATURE (ARM_AEXT_V6Z, 0)
#define ARM_ARCH_V6ZK ARM_FEATURE (ARM_AEXT_V6ZK, 0)
#define ARM_ARCH_V6T2 ARM_FEATURE (ARM_AEXT_V6T2, 0)
#define ARM_ARCH_V6KT2 ARM_FEATURE (ARM_AEXT_V6KT2, 0)
#define ARM_ARCH_V6ZT2 ARM_FEATURE (ARM_AEXT_V6ZT2, 0)
#define ARM_ARCH_V6ZKT2 ARM_FEATURE (ARM_AEXT_V6ZKT2, 0)
#define ARM_ARCH_V6M ARM_FEATURE (ARM_AEXT_V6M, 0)
#define ARM_ARCH_V6SM ARM_FEATURE (ARM_AEXT_V6SM, 0)
#define ARM_ARCH_V7 ARM_FEATURE (ARM_AEXT_V7, 0)
#define ARM_ARCH_V7A ARM_FEATURE (ARM_AEXT_V7A, 0)
#define ARM_ARCH_V7VE ARM_FEATURE (ARM_AEXT_V7VE, 0)
#define ARM_ARCH_V7R ARM_FEATURE (ARM_AEXT_V7R, 0)
#define ARM_ARCH_V7M ARM_FEATURE (ARM_AEXT_V7M, 0)
#define ARM_ARCH_V7EM ARM_FEATURE (ARM_AEXT_V7EM, 0)
#define ARM_ARCH_V8A ARM_FEATURE (ARM_AEXT_V8A, 0)
 
#define ARM_ARCH_V1 ARM_FEATURE_CORE_LOW (ARM_AEXT_V1)
#define ARM_ARCH_V2 ARM_FEATURE_CORE_LOW (ARM_AEXT_V2)
#define ARM_ARCH_V2S ARM_FEATURE_CORE_LOW (ARM_AEXT_V2S)
#define ARM_ARCH_V3 ARM_FEATURE_CORE_LOW (ARM_AEXT_V3)
#define ARM_ARCH_V3M ARM_FEATURE_CORE_LOW (ARM_AEXT_V3M)
#define ARM_ARCH_V4xM ARM_FEATURE_CORE_LOW (ARM_AEXT_V4xM)
#define ARM_ARCH_V4 ARM_FEATURE_CORE_LOW (ARM_AEXT_V4)
#define ARM_ARCH_V4TxM ARM_FEATURE_CORE_LOW (ARM_AEXT_V4TxM)
#define ARM_ARCH_V4T ARM_FEATURE_CORE_LOW (ARM_AEXT_V4T)
#define ARM_ARCH_V5xM ARM_FEATURE_CORE_LOW (ARM_AEXT_V5xM)
#define ARM_ARCH_V5 ARM_FEATURE_CORE_LOW (ARM_AEXT_V5)
#define ARM_ARCH_V5TxM ARM_FEATURE_CORE_LOW (ARM_AEXT_V5TxM)
#define ARM_ARCH_V5T ARM_FEATURE_CORE_LOW (ARM_AEXT_V5T)
#define ARM_ARCH_V5TExP ARM_FEATURE_CORE_LOW (ARM_AEXT_V5TExP)
#define ARM_ARCH_V5TE ARM_FEATURE_CORE_LOW (ARM_AEXT_V5TE)
#define ARM_ARCH_V5TEJ ARM_FEATURE_CORE_LOW (ARM_AEXT_V5TEJ)
#define ARM_ARCH_V6 ARM_FEATURE_CORE_LOW (ARM_AEXT_V6)
#define ARM_ARCH_V6K ARM_FEATURE_CORE_LOW (ARM_AEXT_V6K)
#define ARM_ARCH_V6Z ARM_FEATURE_CORE_LOW (ARM_AEXT_V6Z)
#define ARM_ARCH_V6KZ ARM_FEATURE_CORE_LOW (ARM_AEXT_V6KZ)
#define ARM_ARCH_V6T2 ARM_FEATURE_CORE_LOW (ARM_AEXT_V6T2)
#define ARM_ARCH_V6KT2 ARM_FEATURE_CORE_LOW (ARM_AEXT_V6KT2)
#define ARM_ARCH_V6ZT2 ARM_FEATURE_CORE_LOW (ARM_AEXT_V6ZT2)
#define ARM_ARCH_V6KZT2 ARM_FEATURE_CORE_LOW (ARM_AEXT_V6KZT2)
#define ARM_ARCH_V6M ARM_FEATURE_CORE_LOW (ARM_AEXT_V6M)
#define ARM_ARCH_V6SM ARM_FEATURE_CORE_LOW (ARM_AEXT_V6SM)
#define ARM_ARCH_V7 ARM_FEATURE_CORE_LOW (ARM_AEXT_V7)
#define ARM_ARCH_V7A ARM_FEATURE_CORE_LOW (ARM_AEXT_V7A)
#define ARM_ARCH_V7VE ARM_FEATURE_CORE_LOW (ARM_AEXT_V7VE)
#define ARM_ARCH_V7R ARM_FEATURE_CORE_LOW (ARM_AEXT_V7R)
#define ARM_ARCH_V7M ARM_FEATURE_CORE_LOW (ARM_AEXT_V7M)
#define ARM_ARCH_V7EM ARM_FEATURE_CORE_LOW (ARM_AEXT_V7EM)
#define ARM_ARCH_V8A ARM_FEATURE_CORE_LOW (ARM_AEXT_V8A)
#define ARM_ARCH_V8_1A ARM_FEATURE_CORE (ARM_AEXT_V8A, ARM_EXT2_PAN)
 
/* Some useful combinations: */
#define ARM_ARCH_NONE ARM_FEATURE_LOW (0, 0)
#define FPU_NONE ARM_FEATURE_LOW (0, 0)
#define ARM_ANY ARM_FEATURE (-1, -1, 0) /* Any basic core. */
#define ARM_FEATURE_ALL ARM_FEATURE (-1, -1, -1)/* All CPU and FPU features. */
#define FPU_ANY_HARD ARM_FEATURE_COPROC (FPU_FPA | FPU_VFP_HARD | FPU_MAVERICK)
#define ARM_ARCH_THUMB2 ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2 | ARM_EXT_V7 \
| ARM_EXT_V7A | ARM_EXT_V7R \
| ARM_EXT_V7M | ARM_EXT_DIV \
| ARM_EXT_V8)
#define ARM_ARCH_NONE ARM_FEATURE (0, 0)
#define FPU_NONE ARM_FEATURE (0, 0)
#define ARM_ANY ARM_FEATURE (-1, 0) /* Any basic core. */
#define FPU_ANY_HARD ARM_FEATURE (0, FPU_FPA | FPU_VFP_HARD | FPU_MAVERICK)
#define ARM_ARCH_THUMB2 ARM_FEATURE (ARM_EXT_V6T2 | ARM_EXT_V7 | ARM_EXT_V7A | ARM_EXT_V7R | ARM_EXT_V7M | ARM_EXT_DIV, 0)
/* v7-a+sec. */
#define ARM_ARCH_V7A_SEC ARM_FEATURE_CORE_LOW (ARM_AEXT_V7A | ARM_EXT_SEC)
#define ARM_ARCH_V7A_SEC ARM_FEATURE (ARM_AEXT_V7A | ARM_EXT_SEC, 0)
/* v7-a+mp+sec. */
#define ARM_ARCH_V7A_MP_SEC \
ARM_FEATURE_CORE_LOW (ARM_AEXT_V7A | ARM_EXT_MP | ARM_EXT_SEC)
ARM_FEATURE (ARM_AEXT_V7A | ARM_EXT_MP | ARM_EXT_SEC, \
0)
/* v7-r+idiv. */
#define ARM_ARCH_V7R_IDIV ARM_FEATURE_CORE_LOW (ARM_AEXT_V7R | ARM_EXT_ADIV)
#define ARM_ARCH_V7R_IDIV ARM_FEATURE (ARM_AEXT_V7R | ARM_EXT_ADIV, 0)
/* Features that are present in v6M and v6S-M but not other v6 cores. */
#define ARM_ARCH_V6M_ONLY ARM_FEATURE_CORE_LOW (ARM_AEXT_V6M_ONLY)
#define ARM_ARCH_V6M_ONLY ARM_FEATURE (ARM_AEXT_V6M_ONLY, 0)
/* v8-a+fp. */
#define ARM_ARCH_V8A_FP ARM_FEATURE_LOW (ARM_AEXT_V8A, FPU_ARCH_VFP_ARMV8)
#define ARM_ARCH_V8A_FP ARM_FEATURE (ARM_AEXT_V8A, FPU_ARCH_VFP_ARMV8)
/* v8-a+simd (implies fp). */
#define ARM_ARCH_V8A_SIMD ARM_FEATURE_LOW (ARM_AEXT_V8A, \
#define ARM_ARCH_V8A_SIMD ARM_FEATURE (ARM_AEXT_V8A, \
FPU_ARCH_NEON_VFP_ARMV8)
/* v8-a+crypto (implies simd+fp). */
#define ARM_ARCH_V8A_CRYPTOV1 ARM_FEATURE_LOW (ARM_AEXT_V8A, \
#define ARM_ARCH_V8A_CRYPTOV1 ARM_FEATURE (ARM_AEXT_V8A, \
FPU_ARCH_CRYPTO_NEON_VFP_ARMV8)
 
/* v8.1-a+fp. */
#define ARM_ARCH_V8_1A_FP ARM_FEATURE (ARM_AEXT_V8A, ARM_EXT2_PAN, \
FPU_ARCH_VFP_ARMV8)
/* v8.1-a+simd (implies fp). */
#define ARM_ARCH_V8_1A_SIMD ARM_FEATURE (ARM_AEXT_V8A, ARM_EXT2_PAN, \
FPU_ARCH_NEON_VFP_ARMV8_1)
/* v8.1-a+crypto (implies simd+fp). */
#define ARM_ARCH_V8_1A_CRYPTOV1 ARM_FEATURE (ARM_AEXT_V8A, ARM_EXT2_PAN, \
FPU_ARCH_CRYPTO_NEON_VFP_ARMV8_1)
 
 
/* There are too many feature bits to fit in a single word, so use a
structure. For simplicity we put all core features in array CORE
and everything else in the other. All the bits in element core[0]
have been occupied, so new feature should use bit in element core[1]
and use macro ARM_FEATURE to initialize the feature set variable. */
structure. For simplicity we put all core features in one word and
everything else in the other. */
typedef struct
{
unsigned long core[2];
unsigned long core;
unsigned long coproc;
} arm_feature_set;
 
#define ARM_CPU_HAS_FEATURE(CPU,FEAT) \
(((CPU).core[0] & (FEAT).core[0]) != 0 \
|| ((CPU).core[1] & (FEAT).core[1]) != 0 \
|| ((CPU).coproc & (FEAT).coproc) != 0)
(((CPU).core & (FEAT).core) != 0 || ((CPU).coproc & (FEAT).coproc) != 0)
 
#define ARM_CPU_IS_ANY(CPU) \
((CPU).core[0] == ((arm_feature_set)ARM_ANY).core[0] \
&& (CPU).core[1] == ((arm_feature_set)ARM_ANY).core[1])
((CPU).core == ((arm_feature_set)ARM_ANY).core)
 
#define ARM_MERGE_FEATURE_SETS(TARG,F1,F2) \
do { \
(TARG).core[0] = (F1).core[0] | (F2).core[0];\
(TARG).core[1] = (F1).core[1] | (F2).core[1];\
(TARG).core = (F1).core | (F2).core; \
(TARG).coproc = (F1).coproc | (F2).coproc; \
} while (0)
 
#define ARM_CLEAR_FEATURE(TARG,F1,F2) \
do { \
(TARG).core[0] = (F1).core[0] &~ (F2).core[0];\
(TARG).core[1] = (F1).core[1] &~ (F2).core[1];\
(TARG).core = (F1).core &~ (F2).core; \
(TARG).coproc = (F1).coproc &~ (F2).coproc; \
} while (0)
 
#define ARM_FEATURE_COPY(F1, F2) \
do { \
(F1).core[0] = (F2).core[0]; \
(F1).core[1] = (F2).core[1]; \
(F1).coproc = (F2).coproc; \
} while (0)
 
#define ARM_FEATURE_EQUAL(T1,T2) \
((T1).core[0] == (T2).core[0] \
&& (T1).core[1] == (T2).core[1] \
&& (T1).coproc == (T2).coproc)
 
#define ARM_FEATURE_ZERO(T) \
((T).core[0] == 0 && (T).core[1] == 0 && (T).coproc == 0)
 
#define ARM_FEATURE_CORE_EQUAL(T1, T2) \
((T1).core[0] == (T2).core[0] && (T1).core[1] == (T2).core[1])
 
#define ARM_FEATURE_LOW(core, coproc) {{(core), 0}, (coproc)}
#define ARM_FEATURE_CORE(core1, core2) {{(core1), (core2)}, 0}
#define ARM_FEATURE_CORE_LOW(core) {{(core), 0}, 0}
#define ARM_FEATURE_CORE_HIGH(core) {{0, (core)}, 0}
#define ARM_FEATURE_COPROC(coproc) {{0, 0}, (coproc)}
#define ARM_FEATURE(core1, core2, coproc) {{(core1), (core2)}, (coproc)}
#define ARM_FEATURE(core, coproc) {(core), (coproc)}
/contrib/toolchain/binutils/include/opcode/avr.h
1,6 → 1,6
/* Opcode table for the Atmel AVR micro controllers.
 
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2001, 2004, 2006, 2008, 2010, 2012 Free Software Foundation, Inc.
Contributed by Denis Chertykov <denisc@overta.ru>
This program is free software; you can redistribute it and/or modify
22,7 → 22,6
#define AVR_ISA_LPM 0x0002 /* device has LPM */
#define AVR_ISA_LPMX 0x0004 /* device has LPM Rd,Z[+] */
#define AVR_ISA_SRAM 0x0008 /* device has SRAM (LD, ST, PUSH, POP, ...) */
#define AVR_ISA_TINY 0x0010 /* device has Tiny core specific encodings */
#define AVR_ISA_MEGA 0x0020 /* device has >8K program memory (JMP and CALL
supported, no 8K wrap on RJMP and RCALL) */
#define AVR_ISA_MUL 0x0040 /* device has new core (MUL, FMUL, ...) */
38,7 → 37,6
 
#define AVR_ISA_TINY1 (AVR_ISA_1200 | AVR_ISA_LPM)
#define AVR_ISA_2xxx (AVR_ISA_TINY1 | AVR_ISA_SRAM)
#define AVR_ISA_2xxxa (AVR_ISA_1200 | AVR_ISA_SRAM)
/* For the attiny26 which is missing LPM Rd,Z+. */
#define AVR_ISA_2xxe (AVR_ISA_2xxx | AVR_ISA_LPMX)
#define AVR_ISA_RF401 (AVR_ISA_2xxx | AVR_ISA_MOVW | AVR_ISA_LPMX)
74,9 → 72,6
AVR_ISA_ELPM | AVR_ISA_ELPMX | AVR_ISA_SPM | \
AVR_ISA_BRK | AVR_ISA_EIND | AVR_ISA_MOVW)
 
#define AVR_ISA_AVRTINY (AVR_ISA_1200 | AVR_ISA_BRK | AVR_ISA_SRAM | \
AVR_ISA_TINY)
 
#define REGISTER_P(x) ((x) == 'r' \
|| (x) == 'd' \
|| (x) == 'w' \
99,7 → 94,7
`ld r,b' or `st b,r' respectively - next opcode entry)? */
#define AVR_DISP0_P(x) (((x) & 0xFC07) == 0x8000)
 
/* Constraint letters:
/* constraint letters
r - any register
d - `ldi' register (r16-r31)
v - `movw' even register (r0, r2, ..., r28, r30)
115,7 → 110,6
p - Port address value from 0 to 31. (cbi, sbi, sbic, sbis)
K - immediate value from 0 to 63 (used in `adiw', `sbiw')
i - immediate value
j - 7 bit immediate value from 0x40 to 0xBF (for 16-bit 'lds'/'sts')
l - signed pc relative offset from -64 to 63
L - signed pc relative offset from -2048 to 2047
h - absolute code address (call, jmp)
166,8 → 160,8
AVR_INSN (bclr, "S", "100101001SSS1000", 1, AVR_ISA_1200, 0x9488)
AVR_INSN (bset, "S", "100101000SSS1000", 1, AVR_ISA_1200, 0x9408)
 
AVR_INSN (icall,"", "1001010100001001", 1, AVR_ISA_2xxxa,0x9509)
AVR_INSN (ijmp, "", "1001010000001001", 1, AVR_ISA_2xxxa,0x9409)
AVR_INSN (icall,"", "1001010100001001", 1, AVR_ISA_2xxx, 0x9509)
AVR_INSN (ijmp, "", "1001010000001001", 1, AVR_ISA_2xxx, 0x9409)
 
AVR_INSN (lpm, "?", "1001010111001000", 1, AVR_ISA_TINY1,0x95c8)
AVR_INSN (lpm, "r,z", "1001000ddddd010+", 1, AVR_ISA_LPMX, 0x9004)
267,8 → 261,8
AVR_INSN (inc, "r", "1001010rrrrr0011", 1, AVR_ISA_1200, 0x9403)
AVR_INSN (lsr, "r", "1001010rrrrr0110", 1, AVR_ISA_1200, 0x9406)
AVR_INSN (neg, "r", "1001010rrrrr0001", 1, AVR_ISA_1200, 0x9401)
AVR_INSN (pop, "r", "1001000rrrrr1111", 1, AVR_ISA_2xxxa,0x900f)
AVR_INSN (push, "r", "1001001rrrrr1111", 1, AVR_ISA_2xxxa,0x920f)
AVR_INSN (pop, "r", "1001000rrrrr1111", 1, AVR_ISA_2xxx, 0x900f)
AVR_INSN (push, "r", "1001001rrrrr1111", 1, AVR_ISA_2xxx, 0x920f)
AVR_INSN (ror, "r", "1001010rrrrr0111", 1, AVR_ISA_1200, 0x9407)
AVR_INSN (swap, "r", "1001010rrrrr0010", 1, AVR_ISA_1200, 0x9402)
 
286,9 → 280,7
AVR_INSN (fmuls,"a,a", "000000111ddd0rrr", 1, AVR_ISA_MUL, 0x0380)
AVR_INSN (fmulsu,"a,a","000000111ddd1rrr", 1, AVR_ISA_MUL, 0x0388)
 
AVR_INSN (sts, "j,d", "10101kkkddddkkkk", 1, AVR_ISA_TINY, 0xA800)
AVR_INSN (sts, "i,r", "1001001ddddd0000", 2, AVR_ISA_2xxx, 0x9200)
AVR_INSN (lds, "d,j", "10100kkkddddkkkk", 1, AVR_ISA_TINY, 0xA000)
AVR_INSN (lds, "r,i", "1001000ddddd0000", 2, AVR_ISA_2xxx, 0x9000)
 
/* Special case for b+0, `e' must be next entry after `b',
303,6 → 295,6
AVR_INSN (eicall, "", "1001010100011001", 1, AVR_ISA_EIND, 0x9519)
AVR_INSN (eijmp, "", "1001010000011001", 1, AVR_ISA_EIND, 0x9419)
 
/* DES instruction for encryption and decryption. */
/* DES instruction for encryption and decryption */
AVR_INSN (des, "E", "10010100EEEE1011", 1, AVR_ISA_DES, 0x940B)
 
/contrib/toolchain/binutils/include/opcode/bfin.h
1,5 → 1,5
/* bfin.h -- Header file for ADI Blackfin opcode table
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Copyright 2005, 2010, 2011 Free Software Foundation, Inc.
 
This file is part of GDB, GAS, and the GNU binutils.
 
/contrib/toolchain/binutils/include/opcode/cgen.h
1,6 → 1,7
/* Header file for targets using CGEN: Cpu tools GENerator.
 
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2009, 2010
Free Software Foundation, Inc.
 
This file is part of GDB, the GNU debugger, and the GNU Binutils.
 
27,10 → 28,6
/* ??? IWBN to replace bfd in the name. */
#include "bfd_stdint.h"
 
#ifdef __cplusplus
extern "C" {
#endif
 
/* ??? This file requires bfd.h but only to get bfd_vma.
Seems like an awful lot to require just to get such a fundamental type.
Perhaps the definition of bfd_vma can be moved outside of bfd.h.
1480,8 → 1477,4
/* Will an error message be generated if a signed field in an instruction overflows ? */
extern unsigned int cgen_signed_overflow_ok_p (CGEN_CPU_DESC);
 
#ifdef __cplusplus
}
#endif
 
#endif /* OPCODE_CGEN_H */
/contrib/toolchain/binutils/include/opcode/convex.h
1,5 → 1,5
/* Information for instruction disassembly on the Convex.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1993, 2002, 2010 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/opcode/cr16.h
1,5 → 1,5
/* cr16.h -- Header file for CR16 opcode and register tables.
Copyright (C) 2007-2015 Free Software Foundation, Inc.
Copyright 2007, 2008, 2010, 2013 Free Software Foundation, Inc.
Contributed by M R Swami Reddy
 
This file is part of GAS, GDB and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/cris.h
1,5 → 1,5
/* cris.h -- Header file for CRIS opcode and register tables.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2001, 2004, 2010 Free Software Foundation, Inc.
Contributed by Axis Communications AB, Lund, Sweden.
Originally written for GAS 1.38.1 by Mikael Asker.
Updated, BFDized and GNUified by Hans-Peter Nilsson.
/contrib/toolchain/binutils/include/opcode/crx.h
1,5 → 1,5
/* crx.h -- Header file for CRX opcode and register tables.
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright 2004, 2010, 2012 Free Software Foundation, Inc.
Contributed by Tomer Levi, NSC, Israel.
Originally written for GAS 2.12 by Tomer Levi, NSC, Israel.
Updates, BFDizing, GNUifying and ELF support by Tomer Levi.
/contrib/toolchain/binutils/include/opcode/d10v.h
1,5 → 1,6
/* d10v.h -- Header file for D10V opcode table
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2010
Free Software Foundation, Inc.
Written by Martin Hunt (hunt@cygnus.com), Cygnus Support
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/d30v.h
1,5 → 1,6
/* d30v.h -- Header file for D30V opcode table
Copyright (C) 1997-2015 Free Software Foundation, Inc.
Copyright 1997, 1998, 1999, 2000, 2001, 2003, 2010
Free Software Foundation, Inc.
Written by Martin Hunt (hunt@cygnus.com), Cygnus Solutions
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/dlx.h
1,5 → 1,5
/* Table of opcodes for the DLX microprocess.
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright 2002, 2010 Free Software Foundation, Inc.
 
This file is part of GDB and GAS.
 
/contrib/toolchain/binutils/include/opcode/h8300.h
1,5 → 1,5
/* Opcode table for the H8/300
Copyright (C) 1991-2015 Free Software Foundation, Inc.
Copyright 1991-2013 Free Software Foundation, Inc.
Written by Steve Chamberlain <sac@cygnus.com>.
This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler.
/contrib/toolchain/binutils/include/opcode/hppa.h
1,5 → 1,7
/* Table of opcodes for the PA-RISC.
Copyright (C) 1990-2015 Free Software Foundation, Inc.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
Free Software Foundation, Inc.
 
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
/contrib/toolchain/binutils/include/opcode/i370.h
1,5 → 1,6
/* i370.h -- Header file for S/390 opcode table
Copyright (C) 1994-2015 Free Software Foundation, Inc.
Copyright 1994, 1995, 1998, 1999, 2000, 2003, 2010
Free Software Foundation, Inc.
PowerPC version written by Ian Lance Taylor, Cygnus Support
Rewritten for i370 ESA/390 support, Linas Vepstas <linas@linas.org>
 
/contrib/toolchain/binutils/include/opcode/i386.h
1,5 → 1,7
/* opcode/i386.h -- Intel 80386 opcode macros
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
 
This file is part of GAS, the GNU Assembler, and GDB, the GNU Debugger.
 
/contrib/toolchain/binutils/include/opcode/i860.h
1,5 → 1,6
/* Table of opcodes for the i860.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1991, 2000, 2002, 2003, 2010
Free Software Foundation, Inc.
 
This file is part of GAS, the GNU Assembler, and GDB, the GNU disassembler.
 
/contrib/toolchain/binutils/include/opcode/i960.h
1,6 → 1,6
/* Basic 80960 instruction formats.
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001-2013 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/opcode/ia64.h
1,5 → 1,6
/* ia64.h -- Header file for ia64 opcode table
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright (C) 1998, 1999, 2000, 2002, 2005, 2006, 2010
Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/opcode/m68hc11.h
1,5 → 1,6
/* m68hc11.h -- Header file for Motorola 68HC11 & 68HC12 opcode table
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2002, 2003, 2010, 2012
Free Software Foundation, Inc.
Written by Stephane Carrez (stcarrez@nerim.fr)
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/m68k.h
1,5 → 1,6
/* Opcode table header for m680[01234]0/m6888[12]/m68851.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2001,
2003, 2004, 2006, 2010 Free Software Foundation, Inc.
 
This file is part of GDB, GAS, and the GNU binutils.
 
/contrib/toolchain/binutils/include/opcode/m88k.h
1,5 → 1,6
/* Table of opcodes for the Motorola M88k family.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1990, 1991, 1993, 2001, 2002, 2010
Free Software Foundation, Inc.
 
This file is part of GDB and GAS.
 
/contrib/toolchain/binutils/include/opcode/metag.h
1,5 → 1,5
/* Imagination Technologies Meta opcode table.
Copyright (C) 2013-2015 Free Software Foundation, Inc.
Copyright (C) 2013 Free Software Foundation, Inc.
Contributed by Imagination Technologies Ltd.
 
This file is part of GDB and GAS.
/contrib/toolchain/binutils/include/opcode/mips.h
1,5 → 1,7
/* mips.h. Mips opcode list for GDB, the GNU debugger.
Copyright (C) 1993-2015 Free Software Foundation, Inc.
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2008, 2009, 2010, 2013
Free Software Foundation, Inc.
Contributed by Ralph Campbell and OSF
Commented and modified by Ian Lance Taylor, Cygnus Support
 
411,23 → 413,7
 
/* Like OP_VU0_SUFFIX, but used when the operand's value has already
been set. Any suffix used here must match the previous value. */
OP_VU0_MATCH_SUFFIX,
 
/* An index selected by an integer, e.g. [1]. */
OP_IMM_INDEX,
 
/* An index selected by a register, e.g. [$2]. */
OP_REG_INDEX,
 
/* The operand spans two 5-bit register fields, both of which must be set to
the source register. */
OP_SAME_RS_RT,
 
/* Described by mips_prev_operand. */
OP_CHECK_PREV,
 
/* A register operand that must not be zero. */
OP_NON_ZERO_REG
OP_VU0_MATCH_SUFFIX
};
 
/* Enumerates the types of MIPS register. */
468,13 → 454,7
OP_REG_R5900_I,
OP_REG_R5900_Q,
OP_REG_R5900_R,
OP_REG_R5900_ACC,
 
/* MSA registers $w0-$w31. */
OP_REG_MSA,
 
/* MSA control registers $0-$31. */
OP_REG_MSA_CTRL
OP_REG_R5900_ACC
};
 
/* Base class for all operands. */
563,18 → 543,6
const unsigned char *reg_map;
};
 
/* Describes an operand that which must match a condition based on the
previous operand. */
struct mips_check_prev_operand
{
struct mips_operand root;
 
bfd_boolean greater_than_ok;
bfd_boolean less_than_ok;
bfd_boolean equal_ok;
bfd_boolean zero_ok;
};
 
/* Describes an operand that encodes a pair of registers. */
struct mips_reg_pair_operand
{
923,54 → 891,6
Enhanced VA Scheme:
"+j" 9-bit signed offset in bit 7 (OP_*_EVAOFFSET)
 
MSA Extension:
"+d" 5-bit MSA register (FD)
"+e" 5-bit MSA register (FS)
"+h" 5-bit MSA register (FT)
"+k" 5-bit GPR at bit 6
"+l" 5-bit MSA control register at bit 6
"+n" 5-bit MSA control register at bit 11
"+o" 4-bit vector element index at bit 16
"+u" 3-bit vector element index at bit 16
"+v" 2-bit vector element index at bit 16
"+w" 1-bit vector element index at bit 16
"+T" (-512 .. 511) << 0 at bit 16
"+U" (-512 .. 511) << 1 at bit 16
"+V" (-512 .. 511) << 2 at bit 16
"+W" (-512 .. 511) << 3 at bit 16
"+~" 2 bit LSA/DLSA shift amount from 1 to 4 at bit 6
"+!" 3 bit unsigned bit position at bit 16
"+@" 4 bit unsigned bit position at bit 16
"+#" 6 bit unsigned bit position at bit 16
"+$" 5 bit unsigned immediate at bit 16
"+%" 5 bit signed immediate at bit 16
"+^" 10 bit signed immediate at bit 11
"+&" 0 vector element index
"+*" 5-bit register vector element index at bit 16
"+|" 8-bit mask at bit 16
 
MIPS R6:
"+:" 11-bit mask at bit 0
"+'" 26 bit PC relative branch target address
"+"" 21 bit PC relative branch target address
"+;" 5 bit same register in both OP_*_RS and OP_*_RT
"+I" 2bit unsigned bit position at bit 6
"+O" 3bit unsigned bit position at bit 6
"+R" must be program counter
"-a" (-262144 .. 262143) << 2 at bit 0
"-b" (-131072 .. 131071) << 3 at bit 0
"-d" Same as destination register GP
"-s" 5 bit source register specifier (OP_*_RS) not $0
"-t" 5 bit source register specifier (OP_*_RT) not $0
"-u" 5 bit source register specifier (OP_*_RT) greater than OP_*_RS
"-v" 5 bit source register specifier (OP_*_RT) not $0 not OP_*_RS
"-w" 5 bit source register specifier (OP_*_RT) less than or equal to OP_*_RS
"-x" 5 bit source register specifier (OP_*_RT) greater than or
equal to OP_*_RS
"-y" 5 bit source register specifier (OP_*_RT) not $0 less than OP_*_RS
"-A" symbolic offset (-262144 .. 262143) << 2 at bit 0
"-B" symbolic offset (-131072 .. 131071) << 3 at bit 0
 
Other:
"()" parens surrounding optional value
"," separates operands
978,7 → 898,7
 
Characters used so far, for quick reference when adding more:
"1234567890"
"%[]<>(),+-:'@!#$*&\~"
"%[]<>(),+:'@!#$*&\~"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklopqrstuvwxz"
 
985,14 → 905,8
Extension character sequences used so far ("+" followed by the
following), for quick reference when adding more:
"1234567890"
"~!@#$%^&*|:'";"
"ABCEFGHIJKLMNOPQRSTUVWXZ"
"abcdefghijklmnopqrstuvwxyz"
 
Extension character sequences used so far ("-" followed by the
following), for quick reference when adding more:
"AB"
"abdstuvwxy"
"ABCEFGHJKLMNPQSXZ"
"abcfgijmpqrstxyz"
*/
 
/* These are the bits which may be set in the pinfo field of an
1020,10 → 934,10
#define INSN_TLB 0x00000200
/* Reads coprocessor register other than floating point register. */
#define INSN_COP 0x00000400
/* Instruction loads value from memory. */
#define INSN_LOAD_MEMORY 0x00000800
/* Instruction loads value from coprocessor, (may require delay). */
#define INSN_LOAD_COPROC 0x00001000
/* Instruction loads value from memory, requiring delay. */
#define INSN_LOAD_MEMORY_DELAY 0x00000800
/* Instruction loads value from coprocessor, requiring delay. */
#define INSN_LOAD_COPROC_DELAY 0x00001000
/* Instruction has unconditional branch delay slot. */
#define INSN_UNCOND_BRANCH_DELAY 0x00002000
/* Instruction has conditional branch delay slot. */
1030,8 → 944,8
#define INSN_COND_BRANCH_DELAY 0x00004000
/* Conditional branch likely: if branch not taken, insn nullified. */
#define INSN_COND_BRANCH_LIKELY 0x00008000
/* Moves to coprocessor register, (may require delay). */
#define INSN_COPROC_MOVE 0x00010000
/* Moves to coprocessor register, requiring delay. */
#define INSN_COPROC_MOVE_DELAY 0x00010000
/* Loads coprocessor register from memory, requiring delay. */
#define INSN_COPROC_MEMORY_DELAY 0x00020000
/* Reads the HI register. */
1100,8 → 1014,6
#define INSN2_READ_GPR_16 0x00002000
/* Has an "\.x?y?z?w?" suffix based on mips_vu0_channel_mask. */
#define INSN2_VU0_CHANNEL_SUFFIX 0x00004000
/* Instruction has a forbidden slot. */
#define INSN2_FORBIDDEN_SLOT 0x00008000
 
/* Masks used to mark instructions to indicate which MIPS ISA level
they were introduced in. INSN_ISA_MASK masks an enumeration that
1109,7 → 1021,7
word constructed using these macros is a bitmask of the remaining
INSN_* values below. */
 
#define INSN_ISA_MASK 0x0000001ful
#define INSN_ISA_MASK 0x0000000ful
 
/* We cannot start at zero due to ISA_UNKNOWN below. */
#define INSN_ISA1 1
1119,76 → 1031,29
#define INSN_ISA5 5
#define INSN_ISA32 6
#define INSN_ISA32R2 7
#define INSN_ISA32R3 8
#define INSN_ISA32R5 9
#define INSN_ISA32R6 10
#define INSN_ISA64 11
#define INSN_ISA64R2 12
#define INSN_ISA64R3 13
#define INSN_ISA64R5 14
#define INSN_ISA64R6 15
#define INSN_ISA64 8
#define INSN_ISA64R2 9
/* Below this point the INSN_* values correspond to combinations of ISAs.
They are only for use in the opcodes table to indicate membership of
a combination of ISAs that cannot be expressed using the usual inclusion
ordering on the above INSN_* values. */
#define INSN_ISA3_32 16
#define INSN_ISA3_32R2 17
#define INSN_ISA4_32 18
#define INSN_ISA4_32R2 19
#define INSN_ISA5_32R2 20
#define INSN_ISA3_32 10
#define INSN_ISA3_32R2 11
#define INSN_ISA4_32 12
#define INSN_ISA4_32R2 13
#define INSN_ISA5_32R2 14
 
/* The R6 definitions shown below state that they support all previous ISAs.
This is not actually true as some instructions are removed in R6.
The problem is that the removed instructions in R6 come from different
ISAs. One approach to solve this would be to describe in the membership
field of the opcode table the different ISAs an instruction belongs to.
This would require us to create a large amount of different ISA
combinations which is hard to manage. A cleaner approach (which is
implemented here) is to say that R6 is an extension of R5 and then to
deal with the removed instructions by adding instruction exclusions
for R6 in the opcode table. */
/* Given INSN_ISA* values X and Y, where X ranges over INSN_ISA1 through
INSN_ISA5_32R2 and Y ranges over INSN_ISA1 through INSN_ISA64R2,
this table describes whether at least one of the ISAs described by X
is/are implemented by ISA Y. (Think of Y as the ISA level supported by
a particular core and X as the ISA level(s) at which a certain instruction
is defined.) The ISA(s) described by X is/are implemented by Y iff
(mips_isa_table[(Y & INSN_ISA_MASK) - 1] >> ((X & INSN_ISA_MASK) - 1)) & 1
is non-zero. */
static const unsigned int mips_isa_table[] =
{ 0x0001, 0x0003, 0x0607, 0x1e0f, 0x3e1f, 0x0a23, 0x3e63, 0x3ebf, 0x3fff };
 
/* Bit INSN_ISA<X> - 1 of INSN_UPTO<Y> is set if ISA Y includes ISA X. */
 
#define ISAF(X) (1 << (INSN_ISA##X - 1))
#define INSN_UPTO1 ISAF(1)
#define INSN_UPTO2 INSN_UPTO1 | ISAF(2)
#define INSN_UPTO3 INSN_UPTO2 | ISAF(3) | ISAF(3_32) | ISAF(3_32R2)
#define INSN_UPTO4 INSN_UPTO3 | ISAF(4) | ISAF(4_32) | ISAF(4_32R2)
#define INSN_UPTO5 INSN_UPTO4 | ISAF(5) | ISAF(5_32R2)
#define INSN_UPTO32 INSN_UPTO2 | ISAF(32) | ISAF(3_32) | ISAF(4_32)
#define INSN_UPTO32R2 INSN_UPTO32 | ISAF(32R2) \
| ISAF(3_32R2) | ISAF(4_32R2) | ISAF(5_32R2)
#define INSN_UPTO32R3 INSN_UPTO32R2 | ISAF(32R3)
#define INSN_UPTO32R5 INSN_UPTO32R3 | ISAF(32R5)
#define INSN_UPTO32R6 INSN_UPTO32R5 | ISAF(32R6)
#define INSN_UPTO64 INSN_UPTO5 | ISAF(64) | ISAF(32)
#define INSN_UPTO64R2 INSN_UPTO64 | ISAF(64R2) | ISAF(32R2)
#define INSN_UPTO64R3 INSN_UPTO64R2 | ISAF(64R3) | ISAF(32R3)
#define INSN_UPTO64R5 INSN_UPTO64R3 | ISAF(64R5) | ISAF(32R5)
#define INSN_UPTO64R6 INSN_UPTO64R5 | ISAF(64R6) | ISAF(32R6)
 
/* The same information in table form: bit INSN_ISA<X> - 1 of index
INSN_UPTO<Y> - 1 is set if ISA Y includes ISA X. */
static const unsigned int mips_isa_table[] = {
INSN_UPTO1,
INSN_UPTO2,
INSN_UPTO3,
INSN_UPTO4,
INSN_UPTO5,
INSN_UPTO32,
INSN_UPTO32R2,
INSN_UPTO32R3,
INSN_UPTO32R5,
INSN_UPTO32R6,
INSN_UPTO64,
INSN_UPTO64R2,
INSN_UPTO64R3,
INSN_UPTO64R5,
INSN_UPTO64R6
};
#undef ISAF
 
/* Masks used for Chip specific instructions. */
#define INSN_CHIP_MASK 0xc3ff0f20
 
1196,7 → 1061,6
#define INSN_OCTEON 0x00000800
#define INSN_OCTEONP 0x00000200
#define INSN_OCTEON2 0x00000100
#define INSN_OCTEON3 0x00000040
 
/* MIPS R5900 instruction */
#define INSN_5900 0x00004000
1251,11 → 1115,6
/* Virtualization ASE */
#define ASE_VIRT 0x00000200
#define ASE_VIRT64 0x00000400
/* MSA Extension */
#define ASE_MSA 0x00000800
#define ASE_MSA64 0x00001000
/* eXtended Physical Address (XPA) Extension. */
#define ASE_XPA 0x00002000
 
/* MIPS ISA defines, use instead of hardcoding ISA level. */
 
1270,14 → 1129,8
#define ISA_MIPS64 INSN_ISA64
 
#define ISA_MIPS32R2 INSN_ISA32R2
#define ISA_MIPS32R3 INSN_ISA32R3
#define ISA_MIPS32R5 INSN_ISA32R5
#define ISA_MIPS64R2 INSN_ISA64R2
#define ISA_MIPS64R3 INSN_ISA64R3
#define ISA_MIPS64R5 INSN_ISA64R5
 
#define ISA_MIPS32R6 INSN_ISA32R6
#define ISA_MIPS64R6 INSN_ISA64R6
 
/* CPU defines, use instead of hardcoding processor number. Keep this
in sync with bfd/archures.c in order for machine selection to work. */
1308,15 → 1161,9
#define CPU_MIPS16 16
#define CPU_MIPS32 32
#define CPU_MIPS32R2 33
#define CPU_MIPS32R3 34
#define CPU_MIPS32R5 36
#define CPU_MIPS32R6 37
#define CPU_MIPS5 5
#define CPU_MIPS64 64
#define CPU_MIPS64R2 65
#define CPU_MIPS64R3 66
#define CPU_MIPS64R5 68
#define CPU_MIPS64R6 69
#define CPU_SB1 12310201 /* octal 'SB', 01. */
#define CPU_LOONGSON_2E 3001
#define CPU_LOONGSON_2F 3002
1324,7 → 1171,6
#define CPU_OCTEON 6501
#define CPU_OCTEONP 6601
#define CPU_OCTEON2 6502
#define CPU_OCTEON3 6503
#define CPU_XLR 887682 /* decimal 'XLR' */
 
/* Return true if the given CPU is included in INSN_* mask MASK. */
1390,19 → 1236,9
case CPU_OCTEON2:
return (mask & INSN_OCTEON2) != 0;
 
case CPU_OCTEON3:
return (mask & INSN_OCTEON3) != 0;
 
case CPU_XLR:
return (mask & INSN_XLR) != 0;
 
case CPU_MIPS32R6:
return (mask & INSN_ISA_MASK) == INSN_ISA32R6;
 
case CPU_MIPS64R6:
return ((mask & INSN_ISA_MASK) == INSN_ISA32R6)
|| ((mask & INSN_ISA_MASK) == INSN_ISA64R6);
 
default:
return FALSE;
}
2140,6 → 1976,7
"y" 5-bit source 3 register for ALNV.PS (MICROMIPSOP_*_RS3)
"z" must be zero register
"C" 23-bit coprocessor function code (MICROMIPSOP_*_COPZ)
"B" 10-bit syscall/wait function code (MICROMIPSOP_*_CODE10)
"K" 5-bit Hardware Register (RDHWR instruction) (MICROMIPSOP_*_RS)
 
"+A" 5-bit INS/EXT/DINS/DEXT/DINSM/DEXTM position, which becomes
2164,8 → 2001,6
"+H" 5-bit DEXTU size, which becomes MSBD (MICROMIPSOP_*_EXTMSBD).
Requires that "+A" or "+E" occur first to set position.
Enforces: 32 < (pos+size) <= 64.
"+J" 10-bit SYSCALL/WAIT/SDBBP/HYPCALL function code
(MICROMIPSOP_*_CODE10)
 
PC-relative addition (ADDIUPC) instruction:
"mQ" 23-bit offset (-4194304 .. 4194303) << 2 (MICROMIPSOP_*_IMMQ)
2209,33 → 2044,6
microMIPS Enhanced VA Scheme:
"+j" 9-bit signed offset in bit 0 (OP_*_EVAOFFSET)
 
MSA Extension:
"+d" 5-bit MSA register (FD)
"+e" 5-bit MSA register (FS)
"+h" 5-bit MSA register (FT)
"+k" 5-bit GPR at bit 6
"+l" 5-bit MSA control register at bit 6
"+n" 5-bit MSA control register at bit 11
"+o" 4-bit vector element index at bit 16
"+u" 3-bit vector element index at bit 16
"+v" 2-bit vector element index at bit 16
"+w" 1-bit vector element index at bit 16
"+x" 5-bit shift amount at bit 16
"+T" (-512 .. 511) << 0 at bit 16
"+U" (-512 .. 511) << 1 at bit 16
"+V" (-512 .. 511) << 2 at bit 16
"+W" (-512 .. 511) << 3 at bit 16
"+~" 2 bit LSA/DLSA shift amount from 1 to 4 at bit 6
"+!" 3 bit unsigned bit position at bit 16
"+@" 4 bit unsigned bit position at bit 16
"+#" 6 bit unsigned bit position at bit 16
"+$" 5 bit unsigned immediate at bit 16
"+%" 5 bit signed immediate at bit 16
"+^" 10 bit signed immediate at bit 11
"+&" 0 vector element index
"+*" 5-bit register vector element index at bit 16
"+|" 8-bit mask at bit 16
 
Other:
"()" parens surrounding optional value
"," separates operands
2244,7 → 2052,7
 
Characters used so far, for quick reference when adding more:
"12345678 0"
"<>(),+-.@\^|~"
"<>(),+.@\^|~"
"ABCDEFGHI KLMN RST V "
"abcd f hijklmnopqrstuvw yz"
 
2251,9 → 2059,9
Extension character sequences used so far ("+" followed by the
following), for quick reference when adding more:
""
"~!@#$%^&*|"
"ABCEFGHJTUVW"
"dehijklnouvwx"
""
"ABCEFGH"
"ij"
 
Extension character sequences used so far ("m" followed by the
following), for quick reference when adding more:
2261,12 → 2069,6
""
" BCDEFGHIJ LMNOPQ U WXYZ"
" bcdefghij lmn pq st xyz"
 
Extension character sequences used so far ("-" followed by the
following), for quick reference when adding more:
""
""
<none so far>
*/
 
extern const struct mips_operand *decode_micromips_operand (const char *);
/contrib/toolchain/binutils/include/opcode/mmix.h
1,5 → 1,5
/* mmix.h -- Header file for MMIX opcode table
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright (C) 2001, 2003, 2010 Free Software Foundation, Inc.
Written by Hans-Peter Nilsson (hp@bitrange.com)
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/mn10200.h
1,5 → 1,5
/* mn10200.h -- Header file for Matsushita 10200 opcode table
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1997, 2010 Free Software Foundation, Inc.
Written by Jeff Law, Cygnus Support
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/mn10300.h
1,5 → 1,5
/* mn10300.h -- Header file for Matsushita 10300 opcode table
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998, 1999, 2003, 2010 Free Software Foundation, Inc.
Written by Jeff Law, Cygnus Support
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/moxie.h
1,5 → 1,5
/* Definitions for decoding the moxie opcode table.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
Copyright 2009 Free Software Foundation, Inc.
Contributed by Anthony Green (green@moxielogic.com).
 
This program is free software; you can redistribute it and/or modify
28,8 → 28,8
Some use B and an indirect A (MOXIE_F1_AiB)
Some use A and an indirect B (MOXIE_F1_ABi)
Some consume a 4 byte immediate value and use X (MOXIE_F1_4A)
Some use B and an indirect A plus 2 byte offset (MOXIE_F1_AiB2)
Some use A and an indirect B plus 2 byte offset (MOXIE_F1_ABi2)
Some use B and an indirect A plus 4 bytes (MOXIE_F1_AiB4)
Some use A and an indirect B plus 4 bytes (MOXIE_F1_ABi4)
 
Form 2 instructions also come in different flavors:
 
50,8 → 50,8
#define MOXIE_F1_AiB 0x106
#define MOXIE_F1_ABi 0x107
#define MOXIE_F1_4A 0x108
#define MOXIE_F1_AiB2 0x109
#define MOXIE_F1_ABi2 0x10a
#define MOXIE_F1_AiB4 0x109
#define MOXIE_F1_ABi4 0x10a
#define MOXIE_F1_M 0x10b
 
#define MOXIE_F2_NARG 0x200
/contrib/toolchain/binutils/include/opcode/msp430-decode.h
1,5 → 1,5
/* Opcode decoder for the TI MSP430
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copyright 2012-2013 Free Software Foundation, Inc.
Written by DJ Delorie <dj@redhat.com>
 
This file is part of GDB, the GNU Debugger.
19,10 → 19,6
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef enum
{
MSO_unknown,
132,7 → 128,3
} MSP430_Opcode_Decoded;
 
int msp430_decode_opcode (unsigned long, MSP430_Opcode_Decoded *, int (*)(void *), void *);
 
#ifdef __cplusplus
}
#endif
/contrib/toolchain/binutils/include/opcode/msp430.h
1,6 → 1,6
/* Opcode table for the TI MSP430 microcontrollers
 
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright 2002-2013 Free Software Foundation, Inc.
Contributed by Dmitry Diky <diwil@mail.ru>
This program is free software; you can redistribute it and/or modify
26,8 → 26,7
int ol; /* Operand length words. */
int am; /* Addr mode. */
int reg; /* Register. */
int mode; /* Operand mode. */
int vshift; /* Number of bytes to shift operand down. */
int mode; /* Pperand mode. */
#define OP_REG 0
#define OP_EXP 1
#ifndef DASM_SECTION
/contrib/toolchain/binutils/include/opcode/nios2.h
1,5 → 1,5
/* Nios II opcode list for GAS, the GNU assembler.
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copyright (C) 2012, 2013 Free Software Foundation, Inc.
Contributed by Nigel Gray (ngray@altera.com).
Contributed by Mentor Graphics, Inc.
 
25,10 → 25,6
 
#include "bfd.h"
 
#ifdef __cplusplus
extern "C" {
#endif
 
/****************************************************************************
* This file contains structures, bit masks and shift counts used
* by the GNU toolchain to define the Nios II instruction set and
35,42 → 31,6
* access various opcode fields.
****************************************************************************/
 
/* Instruction encoding formats. */
enum iw_format_type {
/* R1 formats. */
iw_i_type,
iw_r_type,
iw_j_type,
iw_custom_type,
 
/* 32-bit R2 formats. */
iw_L26_type,
iw_F2I16_type,
iw_F2X4I12_type,
iw_F1X4I12_type,
iw_F1X4L17_type,
iw_F3X6L5_type,
iw_F2X6L10_type,
iw_F3X6_type,
iw_F3X8_type,
 
/* 16-bit R2 formats. */
iw_I10_type,
iw_T1I7_type,
iw_T2I4_type,
iw_T1X1I6_type,
iw_X1I7_type,
iw_L5I4X1_type,
iw_T2X1L3_type,
iw_T2X1I3_type,
iw_T3X1_type,
iw_T2X3_type,
iw_F1X1_type,
iw_X2L5_type,
iw_F1I5_type,
iw_F2_type
};
 
/* Identify different overflow situations for error messages. */
enum overflow_type
{
80,9 → 40,7
signed_immed16_overflow,
unsigned_immed16_overflow,
unsigned_immed5_overflow,
signed_immed12_overflow,
custom_opcode_overflow,
enumeration_overflow,
no_overflow
};
 
94,38 → 52,16
d - a 5-bit destination register index
s - a 5-bit left source register index
t - a 5-bit right source register index
D - a 3-bit encoded destination register
S - a 3-bit encoded left source register
T - a 3-bit encoded right source register
i - a 16-bit signed immediate
u - a 16-bit unsigned immediate
o - a 16-bit signed program counter relative offset
j - a 5-bit unsigned immediate
k - a (second) 5-bit unsigned immediate
b - a 5-bit break instruction constant
l - a 8-bit custom instruction constant
m - a 26-bit unsigned immediate
o - a 16-bit signed pc-relative offset
u - a 16-bit unsigned immediate
I - a 12-bit signed immediate
M - a 6-bit unsigned immediate
N - a 6-bit unsigned immediate with 2-bit shift
O - a 10-bit signed pc-relative offset with 1-bit shift
P - a 7-bit signed pc-relative offset with 1-bit shift
U - a 7-bit unsigned immediate with 2-bit shift
V - a 5-bit unsigned immediate with 2-bit shift
W - a 4-bit unsigned immediate with 2-bit shift
X - a 4-bit unsigned immediate with 1-bit shift
Y - a 4-bit unsigned immediate
e - an immediate coded as an enumeration for addi.n/subi.n
f - an immediate coded as an enumeration for slli.n/srli.n
g - an immediate coded as an enumeration for andi.n
h - an immediate coded as an enumeration for movi.n
R - a reglist for ldwm/stwm or push.n/pop.n
B - a base register specifier and option list for ldwm/stwm
Literal ',', '(', and ')' characters may also appear in the args as
delimiters.
 
Note that the args describe the semantics and assembly-language syntax
of the operands, not their encoding into the instruction word.
 
The pinfo field is INSN_MACRO for a macro. Otherwise, it is a collection
of bits describing the instruction, notably any relevant hazard
information.
148,8 → 84,6
the expected opcode. */
unsigned long num_args; /* The number of arguments the instruction
takes. */
unsigned size; /* Size in bytes of the instruction. */
enum iw_format_type format; /* Instruction format. */
unsigned long match; /* The basic opcode for the instruction. */
unsigned long mask; /* Mask for the opcode field of the
instruction. */
173,34 → 107,403
#define NIOS2_INSN_CBRANCH 0x00000020
#define NIOS2_INSN_CALL 0x00000040
 
#define NIOS2_INSN_OPTARG 0x00000080
#define NIOS2_INSN_ADDI 0x00000080
#define NIOS2_INSN_ANDI 0x00000100
#define NIOS2_INSN_ORI 0x00000200
#define NIOS2_INSN_XORI 0x00000400
 
/* Register attributes. */
#define REG_NORMAL (1<<0) /* Normal registers. */
#define REG_CONTROL (1<<1) /* Control registers. */
#define REG_COPROCESSOR (1<<2) /* For custom instructions. */
#define REG_3BIT (1<<3) /* For R2 CDX instructions. */
#define REG_LDWM (1<<4) /* For R2 ldwm/stwm. */
#define REG_POP (1<<5) /* For R2 pop.n/push.n. */
 
/* Associates a register name ($6) with a 5-bit index (eg 6). */
struct nios2_reg
{
const char *name;
const int index;
unsigned long regtype;
};
 
/* Pull in the instruction field accessors, opcodes, and masks. */
#include "nios2r1.h"
#include "nios2r2.h"
 
/* These are the data structures used to hold the instruction information. */
extern const struct nios2_opcode nios2_r1_opcodes[];
extern const int nios2_num_r1_opcodes;
extern const struct nios2_opcode nios2_r2_opcodes[];
extern const int nios2_num_r2_opcodes;
/* These are bit masks and shift counts for accessing the various
fields of a Nios II instruction. */
 
/* Macros for getting and setting an instruction field. */
#define GET_INSN_FIELD(X, i) \
(((i) & OP_MASK_##X) >> OP_SH_##X)
#define SET_INSN_FIELD(X, i, j) \
((i) = (((i) & ~OP_MASK_##X) | (((j) << OP_SH_##X) & OP_MASK_##X)))
 
/* Instruction field definitions. */
#define IW_A_LSB 27
#define IW_A_MSB 31
#define IW_A_SZ 5
#define IW_A_MASK 0x1f
 
#define IW_B_LSB 22
#define IW_B_MSB 26
#define IW_B_SZ 5
#define IW_B_MASK 0x1f
 
#define IW_C_LSB 17
#define IW_C_MSB 21
#define IW_C_SZ 5
#define IW_C_MASK 0x1f
 
#define IW_IMM16_LSB 6
#define IW_IMM16_MSB 21
#define IW_IMM16_SZ 16
#define IW_IMM16_MASK 0xffff
 
#define IW_IMM26_LSB 6
#define IW_IMM26_MSB 31
#define IW_IMM26_SZ 26
#define IW_IMM26_MASK 0x3ffffff
 
#define IW_OP_LSB 0
#define IW_OP_MSB 5
#define IW_OP_SZ 6
#define IW_OP_MASK 0x3f
 
#define IW_OPX_LSB 11
#define IW_OPX_MSB 16
#define IW_OPX_SZ 6
#define IW_OPX_MASK 0x3f
 
#define IW_SHIFT_IMM5_LSB 6
#define IW_SHIFT_IMM5_MSB 10
#define IW_SHIFT_IMM5_SZ 5
#define IW_SHIFT_IMM5_MASK 0x1f
 
#define IW_CONTROL_REGNUM_LSB 6
#define IW_CONTROL_REGNUM_MSB 9
#define IW_CONTROL_REGNUM_SZ 4
#define IW_CONTROL_REGNUM_MASK 0xf
 
/* Operator mask and shift. */
#define OP_MASK_OP (IW_OP_MASK << IW_OP_LSB)
#define OP_SH_OP IW_OP_LSB
 
/* Masks and shifts for I-type instructions. */
#define OP_MASK_IOP (IW_OP_MASK << IW_OP_LSB)
#define OP_SH_IOP IW_OP_LSB
 
#define OP_MASK_IMM16 (IW_IMM16_MASK << IW_IMM16_LSB)
#define OP_SH_IMM16 IW_IMM16_LSB
 
#define OP_MASK_IRD (IW_B_MASK << IW_B_LSB)
#define OP_SH_IRD IW_B_LSB /* The same as T for I-type. */
 
#define OP_MASK_IRT (IW_B_MASK << IW_B_LSB)
#define OP_SH_IRT IW_B_LSB
 
#define OP_MASK_IRS (IW_A_MASK << IW_A_LSB)
#define OP_SH_IRS IW_A_LSB
 
/* Masks and shifts for R-type instructions. */
#define OP_MASK_ROP (IW_OP_MASK << IW_OP_LSB)
#define OP_SH_ROP IW_OP_LSB
 
#define OP_MASK_ROPX (IW_OPX_MASK << IW_OPX_LSB)
#define OP_SH_ROPX IW_OPX_LSB
 
#define OP_MASK_RRD (IW_C_MASK << IW_C_LSB)
#define OP_SH_RRD IW_C_LSB
 
#define OP_MASK_RRT (IW_B_MASK << IW_B_LSB)
#define OP_SH_RRT IW_B_LSB
 
#define OP_MASK_RRS (IW_A_MASK << IW_A_LSB)
#define OP_SH_RRS IW_A_LSB
 
/* Masks and shifts for J-type instructions. */
#define OP_MASK_JOP (IW_OP_MASK << IW_OP_LSB)
#define OP_SH_JOP IW_OP_LSB
 
#define OP_MASK_IMM26 (IW_IMM26_MASK << IW_IMM26_LSB)
#define OP_SH_IMM26 IW_IMM26_LSB
 
/* Masks and shifts for CTL instructions. */
#define OP_MASK_RCTL 0x000007c0
#define OP_SH_RCTL 6
 
/* Break instruction imm5 field. */
#define OP_MASK_TRAP_IMM5 0x000007c0
#define OP_SH_TRAP_IMM5 6
 
/* Instruction imm5 field. */
#define OP_MASK_IMM5 (IW_SHIFT_IMM5_MASK << IW_SHIFT_IMM5_LSB)
#define OP_SH_IMM5 IW_SHIFT_IMM5_LSB
 
/* Cache operation fields (type j,i(s)). */
#define OP_MASK_CACHE_OPX (IW_B_MASK << IW_B_LSB)
#define OP_SH_CACHE_OPX IW_B_LSB
#define OP_MASK_CACHE_RRS (IW_A_MASK << IW_A_LSB)
#define OP_SH_CACHE_RRS IW_A_LSB
 
/* Custom instruction masks. */
#define OP_MASK_CUSTOM_A 0x00010000
#define OP_SH_CUSTOM_A 16
 
#define OP_MASK_CUSTOM_B 0x00008000
#define OP_SH_CUSTOM_B 15
 
#define OP_MASK_CUSTOM_C 0x00004000
#define OP_SH_CUSTOM_C 14
 
#define OP_MASK_CUSTOM_N 0x00003fc0
#define OP_SH_CUSTOM_N 6
#define OP_MAX_CUSTOM_N 255
 
/* OP instruction values. */
#define OP_ADDI 4
#define OP_ANDHI 44
#define OP_ANDI 12
#define OP_BEQ 38
#define OP_BGE 14
#define OP_BGEU 46
#define OP_BLT 22
#define OP_BLTU 54
#define OP_BNE 30
#define OP_BR 6
#define OP_CALL 0
#define OP_CMPEQI 32
#define OP_CMPGEI 8
#define OP_CMPGEUI 40
#define OP_CMPLTI 16
#define OP_CMPLTUI 48
#define OP_CMPNEI 24
#define OP_CUSTOM 50
#define OP_FLUSHD 59
#define OP_FLUSHDA 27
#define OP_INITD 51
#define OP_INITDA 19
#define OP_JMPI 1
#define OP_LDB 7
#define OP_LDBIO 39
#define OP_LDBU 3
#define OP_LDBUIO 35
#define OP_LDH 15
#define OP_LDHIO 47
#define OP_LDHU 11
#define OP_LDHUIO 43
#define OP_LDL 31
#define OP_LDW 23
#define OP_LDWIO 55
#define OP_MULI 36
#define OP_OPX 58
#define OP_ORHI 52
#define OP_ORI 20
#define OP_RDPRS 56
#define OP_STB 5
#define OP_STBIO 37
#define OP_STC 29
#define OP_STH 13
#define OP_STHIO 45
#define OP_STW 21
#define OP_STWIO 53
#define OP_XORHI 60
#define OP_XORI 28
 
/* OPX instruction values. */
#define OPX_ADD 49
#define OPX_AND 14
#define OPX_BREAK 52
#define OPX_BRET 9
#define OPX_CALLR 29
#define OPX_CMPEQ 32
#define OPX_CMPGE 8
#define OPX_CMPGEU 40
#define OPX_CMPLT 16
#define OPX_CMPLTU 48
#define OPX_CMPNE 24
#define OPX_CRST 62
#define OPX_DIV 37
#define OPX_DIVU 36
#define OPX_ERET 1
#define OPX_FLUSHI 12
#define OPX_FLUSHP 4
#define OPX_HBREAK 53
#define OPX_INITI 41
#define OPX_INTR 61
#define OPX_JMP 13
#define OPX_MUL 39
#define OPX_MULXSS 31
#define OPX_MULXSU 23
#define OPX_MULXUU 7
#define OPX_NEXTPC 28
#define OPX_NOR 6
#define OPX_OR 22
#define OPX_RDCTL 38
#define OPX_RET 5
#define OPX_ROL 3
#define OPX_ROLI 2
#define OPX_ROR 11
#define OPX_SLL 19
#define OPX_SLLI 18
#define OPX_SRA 59
#define OPX_SRAI 58
#define OPX_SRL 27
#define OPX_SRLI 26
#define OPX_SUB 57
#define OPX_SYNC 54
#define OPX_TRAP 45
#define OPX_WRCTL 46
#define OPX_WRPRS 20
#define OPX_XOR 30
 
/* The following macros define the opcode matches for each
instruction code & OP_MASK_INST == OP_MATCH_INST. */
 
/* OP instruction matches. */
#define OP_MATCH_ADDI OP_ADDI
#define OP_MATCH_ANDHI OP_ANDHI
#define OP_MATCH_ANDI OP_ANDI
#define OP_MATCH_BEQ OP_BEQ
#define OP_MATCH_BGE OP_BGE
#define OP_MATCH_BGEU OP_BGEU
#define OP_MATCH_BLT OP_BLT
#define OP_MATCH_BLTU OP_BLTU
#define OP_MATCH_BNE OP_BNE
#define OP_MATCH_BR OP_BR
#define OP_MATCH_FLUSHD OP_FLUSHD
#define OP_MATCH_FLUSHDA OP_FLUSHDA
#define OP_MATCH_INITD OP_INITD
#define OP_MATCH_INITDA OP_INITDA
#define OP_MATCH_CALL OP_CALL
#define OP_MATCH_CMPEQI OP_CMPEQI
#define OP_MATCH_CMPGEI OP_CMPGEI
#define OP_MATCH_CMPGEUI OP_CMPGEUI
#define OP_MATCH_CMPLTI OP_CMPLTI
#define OP_MATCH_CMPLTUI OP_CMPLTUI
#define OP_MATCH_CMPNEI OP_CMPNEI
#define OP_MATCH_JMPI OP_JMPI
#define OP_MATCH_LDB OP_LDB
#define OP_MATCH_LDBIO OP_LDBIO
#define OP_MATCH_LDBU OP_LDBU
#define OP_MATCH_LDBUIO OP_LDBUIO
#define OP_MATCH_LDH OP_LDH
#define OP_MATCH_LDHIO OP_LDHIO
#define OP_MATCH_LDHU OP_LDHU
#define OP_MATCH_LDHUIO OP_LDHUIO
#define OP_MATCH_LDL OP_LDL
#define OP_MATCH_LDW OP_LDW
#define OP_MATCH_LDWIO OP_LDWIO
#define OP_MATCH_MULI OP_MULI
#define OP_MATCH_OPX OP_OPX
#define OP_MATCH_ORHI OP_ORHI
#define OP_MATCH_ORI OP_ORI
#define OP_MATCH_RDPRS OP_RDPRS
#define OP_MATCH_STB OP_STB
#define OP_MATCH_STBIO OP_STBIO
#define OP_MATCH_STC OP_STC
#define OP_MATCH_STH OP_STH
#define OP_MATCH_STHIO OP_STHIO
#define OP_MATCH_STW OP_STW
#define OP_MATCH_STWIO OP_STWIO
#define OP_MATCH_CUSTOM OP_CUSTOM
#define OP_MATCH_XORHI OP_XORHI
#define OP_MATCH_XORI OP_XORI
#define OP_MATCH_OPX OP_OPX
 
/* OPX instruction values. */
#define OPX_MATCH(code) ((code << IW_OPX_LSB) | OP_OPX)
 
#define OP_MATCH_ADD OPX_MATCH (OPX_ADD)
#define OP_MATCH_AND OPX_MATCH (OPX_AND)
#define OP_MATCH_BREAK ((0x1e << 17) | OPX_MATCH (OPX_BREAK))
#define OP_MATCH_BRET (0xf0000000 | OPX_MATCH (OPX_BRET))
#define OP_MATCH_CALLR ((0x1f << 17) | OPX_MATCH (OPX_CALLR))
#define OP_MATCH_CMPEQ OPX_MATCH (OPX_CMPEQ)
#define OP_MATCH_CMPGE OPX_MATCH (OPX_CMPGE)
#define OP_MATCH_CMPGEU OPX_MATCH (OPX_CMPGEU)
#define OP_MATCH_CMPLT OPX_MATCH (OPX_CMPLT)
#define OP_MATCH_CMPLTU OPX_MATCH (OPX_CMPLTU)
#define OP_MATCH_CMPNE OPX_MATCH (OPX_CMPNE)
#define OP_MATCH_DIV OPX_MATCH (OPX_DIV)
#define OP_MATCH_DIVU OPX_MATCH (OPX_DIVU)
#define OP_MATCH_JMP OPX_MATCH (OPX_JMP)
#define OP_MATCH_MUL OPX_MATCH (OPX_MUL)
#define OP_MATCH_MULXSS OPX_MATCH (OPX_MULXSS)
#define OP_MATCH_MULXSU OPX_MATCH (OPX_MULXSU)
#define OP_MATCH_MULXUU OPX_MATCH (OPX_MULXUU)
#define OP_MATCH_NEXTPC OPX_MATCH (OPX_NEXTPC)
#define OP_MATCH_NOR OPX_MATCH (OPX_NOR)
#define OP_MATCH_OR OPX_MATCH (OPX_OR)
#define OP_MATCH_RDCTL OPX_MATCH (OPX_RDCTL)
#define OP_MATCH_RET (0xf8000000 | OPX_MATCH (OPX_RET))
#define OP_MATCH_ROL OPX_MATCH (OPX_ROL)
#define OP_MATCH_ROLI OPX_MATCH (OPX_ROLI)
#define OP_MATCH_ROR OPX_MATCH (OPX_ROR)
#define OP_MATCH_SLL OPX_MATCH (OPX_SLL)
#define OP_MATCH_SLLI OPX_MATCH (OPX_SLLI)
#define OP_MATCH_SRA OPX_MATCH (OPX_SRA)
#define OP_MATCH_SRAI OPX_MATCH (OPX_SRAI)
#define OP_MATCH_SRL OPX_MATCH (OPX_SRL)
#define OP_MATCH_SRLI OPX_MATCH (OPX_SRLI)
#define OP_MATCH_SUB OPX_MATCH (OPX_SUB)
#define OP_MATCH_SYNC OPX_MATCH (OPX_SYNC)
#define OP_MATCH_TRAP ((0x1d << 17) | OPX_MATCH (OPX_TRAP))
#define OP_MATCH_ERET (0xef800000 | OPX_MATCH (OPX_ERET))
#define OP_MATCH_WRCTL OPX_MATCH (OPX_WRCTL)
#define OP_MATCH_WRPRS OPX_MATCH (OPX_WRPRS)
#define OP_MATCH_XOR OPX_MATCH (OPX_XOR)
#define OP_MATCH_FLUSHI OPX_MATCH (OPX_FLUSHI)
#define OP_MATCH_FLUSHP OPX_MATCH (OPX_FLUSHP)
#define OP_MATCH_INITI OPX_MATCH (OPX_INITI)
 
/* Some unusual op masks. */
#define OP_MASK_BREAK ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_RRD \
| OP_MASK_ROPX | OP_MASK_OP) \
& 0xfffff03f)
#define OP_MASK_CALLR ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX \
| OP_MASK_OP))
#define OP_MASK_JMP ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX \
| OP_MASK_OP))
#define OP_MASK_SYNC ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX \
| OP_MASK_OP))
#define OP_MASK_TRAP ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_RRD \
| OP_MASK_ROPX | OP_MASK_OP) \
& 0xfffff83f)
#define OP_MASK_WRCTL ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX \
| OP_MASK_OP)) /*& 0xfffff83f */
#define OP_MASK_NEXTPC ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_ROPX \
| OP_MASK_OP))
#define OP_MASK_FLUSHI ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX \
| OP_MASK_OP))
#define OP_MASK_INITI ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX \
| OP_MASK_OP))
 
#define OP_MASK_ROLI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP))
#define OP_MASK_SLLI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP))
#define OP_MASK_SRAI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP))
#define OP_MASK_SRLI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP))
#define OP_MASK_RDCTL ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_ROPX \
| OP_MASK_OP)) /*& 0xfffff83f */
 
#ifndef OP_MASK
#define OP_MASK 0xffffffff
#endif
 
/* These convenience macros to extract instruction fields are used by GDB. */
#define GET_IW_A(Iw) \
(((Iw) >> IW_A_LSB) & IW_A_MASK)
#define GET_IW_B(Iw) \
(((Iw) >> IW_B_LSB) & IW_B_MASK)
#define GET_IW_C(Iw) \
(((Iw) >> IW_C_LSB) & IW_C_MASK)
#define GET_IW_CONTROL_REGNUM(Iw) \
(((Iw) >> IW_CONTROL_REGNUM_LSB) & IW_CONTROL_REGNUM_MASK)
#define GET_IW_IMM16(Iw) \
(((Iw) >> IW_IMM16_LSB) & IW_IMM16_MASK)
#define GET_IW_IMM26(Iw) \
(((Iw) >> IW_IMM26_LSB) & IW_IMM26_MASK)
#define GET_IW_OP(Iw) \
(((Iw) >> IW_OP_LSB) & IW_OP_MASK)
#define GET_IW_OPX(Iw) \
(((Iw) >> IW_OPX_LSB) & IW_OPX_MASK)
 
/* These are the data structures we use to hold the instruction information. */
extern const struct nios2_opcode nios2_builtin_opcodes[];
extern const int bfd_nios2_num_builtin_opcodes;
extern struct nios2_opcode *nios2_opcodes;
extern int nios2_num_opcodes;
extern int bfd_nios2_num_opcodes;
 
/* These are the data structures used to hold the register information. */
extern const struct nios2_reg nios2_builtin_regs[];
208,28 → 511,12
extern const int nios2_num_builtin_regs;
extern int nios2_num_regs;
 
/* Return the opcode descriptor for a single instruction. */
extern const struct nios2_opcode *
nios2_find_opcode_hash (unsigned long, unsigned long);
/* Machine-independent macro for number of opcodes. */
#define NUMOPCODES bfd_nios2_num_opcodes
#define NUMREGISTERS nios2_num_regs;
 
/* Lookup tables for R2 immediate decodings. */
extern unsigned int nios2_r2_asi_n_mappings[];
extern const int nios2_num_r2_asi_n_mappings;
extern unsigned int nios2_r2_shi_n_mappings[];
extern const int nios2_num_r2_shi_n_mappings;
extern unsigned int nios2_r2_andi_n_mappings[];
extern const int nios2_num_r2_andi_n_mappings;
/* This is made extern so that the assembler can use it to find out
what instruction caused an error. */
extern const struct nios2_opcode *nios2_find_opcode_hash (unsigned long);
 
/* Lookup table for 3-bit register decodings. */
extern int nios2_r2_reg3_mappings[];
extern const int nios2_num_r2_reg3_mappings;
 
/* Lookup table for REG_RANGE value list decodings. */
extern unsigned long nios2_r2_reg_range_mappings[];
extern const int nios2_num_r2_reg_range_mappings;
 
#ifdef __cplusplus
}
#endif
 
#endif /* _NIOS2_H */
/contrib/toolchain/binutils/include/opcode/np1.h
1,5 → 1,5
/* Print GOULD NPL instructions for GDB, the GNU debugger.
Copyright (C) 1986-2015 Free Software Foundation, Inc.
Copyright 1986, 1987, 1989, 1991, 2010 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/opcode/ns32k.h
1,5 → 1,5
/* ns32k-opcode.h -- Opcode table for National Semi 32k processor
Copyright (C) 1987-2015 Free Software Foundation, Inc.
Copyright 1987, 1991, 1994, 2002, 2010 Free Software Foundation, Inc.
 
This file is part of GAS, the GNU Assembler.
 
/contrib/toolchain/binutils/include/opcode/pdp11.h
1,5 → 1,5
/* PDP-11 opcde list.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2002, 2010 Free Software Foundation, Inc.
 
This file is part of GDB and GAS.
 
/contrib/toolchain/binutils/include/opcode/pj.h
1,5 → 1,5
/* Definitions for decoding the picoJava opcode table.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2002, 2003, 2010 Free Software Foundation, Inc.
Contributed by Steve Chamberlain of Transmeta (sac@pobox.com).
 
This program is free software; you can redistribute it and/or modify
/contrib/toolchain/binutils/include/opcode/pn.h
1,5 → 1,5
/* Print GOULD PN (PowerNode) instructions for GDB, the GNU debugger.
Copyright (C) 1986-2015 Free Software Foundation, Inc.
Copyright 1986, 1987, 1989, 1991, 2010 Free Software Foundation, Inc.
 
This file is part of GDB.
 
/contrib/toolchain/binutils/include/opcode/ppc.h
1,5 → 1,6
/* ppc.h -- Header file for PowerPC opcode table
Copyright (C) 1994-2015 Free Software Foundation, Inc.
Copyright 1994, 1995, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
2007, 2008, 2009, 2010, 2012 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support
 
This file is part of GDB, GAS, and the GNU binutils.
195,21 → 196,6
that isn't a superset of POWER8, we can define this to its own mask. */
#define PPC_OPCODE_HTM PPC_OPCODE_POWER8
 
/* Opcode is supported by ppc750cl. */
#define PPC_OPCODE_750 0x4000000000ull
 
/* Opcode is supported by ppc7450. */
#define PPC_OPCODE_7450 0x8000000000ull
 
/* Opcode is supported by ppc821/850/860. */
#define PPC_OPCODE_860 0x10000000000ull
 
/* Opcode is only supported by Power9 architecture. */
#define PPC_OPCODE_POWER9 0x20000000000ull
 
/* Opcode is supported by Vector-Scalar (VSX) Unit from ISA 2.08. */
#define PPC_OPCODE_VSX3 0x40000000000ull
 
/* A macro to extract the major opcode from an instruction. */
#define PPC_OP(i) (((i) >> 26) & 0x3f)
 
292,7 → 278,7
/* Use with the shift field of a struct powerpc_operand to indicate
that BITM and SHIFT cannot be used to determine where the operand
goes in the insn. */
#define PPC_OPSHIFT_INV (-1U << 31)
#define PPC_OPSHIFT_INV (-1 << 31)
 
/* Values defined for the flags field of a struct powerpc_operand. */
 
396,11 → 382,6
/* This is a CR FIELD that does not use symbolic names. */
#define PPC_OPERAND_CR_REG (0x200000)
 
/* This flag is only used with PPC_OPERAND_OPTIONAL. If this operand
is omitted, then the value it should use for the operand is stored
in the SHIFT field of the immediatly following operand field. */
#define PPC_OPERAND_OPTIONAL_VALUE (0x400000)
/* The POWER and PowerPC assemblers use a few macros. We keep them
with the operands table for simplicity. The macro table is an
array of struct powerpc_macro. */
429,12 → 410,4
 
extern ppc_cpu_t ppc_parse_cpu (ppc_cpu_t, ppc_cpu_t *, const char *);
 
static inline long
ppc_optional_operand_value (const struct powerpc_operand *operand)
{
if ((operand->flags & PPC_OPERAND_OPTIONAL_VALUE) != 0)
return (operand+1)->shift;
return 0;
}
 
#endif /* PPC_H */
/contrib/toolchain/binutils/include/opcode/pyr.h
1,6 → 1,6
/* pyramid.opcode.h -- gdb initial attempt.
 
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright 2001, 2010 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/opcode/rl78.h
1,5 → 1,6
/* Opcode decoder for the Renesas RL78
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright 2011
Free Software Foundation, Inc.
Written by DJ Delorie <dj@redhat.com>
 
This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler.
26,17 → 27,6
#ifndef RL78_OPCODES_H_INCLUDED
#define RL78_OPCODES_H_INCLUDED
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef enum {
RL78_ISA_DEFAULT,
RL78_ISA_G10,
RL78_ISA_G13,
RL78_ISA_G14,
} RL78_Dis_Isa;
 
/* For the purposes of these structures, the RL78 registers are as
follows, despite most of these being memory-mapped and
bank-switched: */
173,10 → 163,6
RL78_Opcode_Operand op[2];
} RL78_Opcode_Decoded;
 
int rl78_decode_opcode (unsigned long, RL78_Opcode_Decoded *, int (*)(void *), void *, RL78_Dis_Isa);
int rl78_decode_opcode (unsigned long, RL78_Opcode_Decoded *, int (*)(void *), void *);
 
#ifdef __cplusplus
}
#endif
 
#endif
/contrib/toolchain/binutils/include/opcode/rx.h
1,5 → 1,6
/* Opcode decoder for the Renesas RX
Copyright (C) 2008-2015 Free Software Foundation, Inc.
Copyright 2008, 2009, 2010
Free Software Foundation, Inc.
Written by DJ Delorie <dj@redhat.com>
 
This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler.
23,10 → 24,6
analyzer, and the disassembler. Given an opcode data source,
it decodes the next opcode into the following structures. */
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef enum
{
RX_AnySize = 0,
38,8 → 35,6
RX_SWord,
RX_3Byte,
RX_Long,
RX_Bad_Size,
RX_MAX_SIZE
} RX_Size;
 
typedef enum
48,7 → 43,6
RX_Operand_Immediate, /* #addend */
RX_Operand_Register, /* Rn */
RX_Operand_Indirect, /* [Rn + addend] */
RX_Operand_Zero_Indirect,/* [Rn] */
RX_Operand_Postinc, /* [Rn+] */
RX_Operand_Predec, /* [-Rn] */
RX_Operand_Condition, /* eq, gtu, etc */
104,10 → 98,6
RXO_nop,
RXO_nop2,
RXO_nop3,
RXO_nop4,
RXO_nop5,
RXO_nop6,
RXO_nop7,
 
RXO_scmpu,
RXO_smovu,
223,7 → 213,3
registers. 32..47 are condition codes. */
 
int rx_decode_opcode (unsigned long, RX_Opcode_Decoded *, int (*)(void *), void *);
 
#ifdef __cplusplus
}
#endif
/contrib/toolchain/binutils/include/opcode/s390.h
1,5 → 1,5
/* s390.h -- Header file for S390 opcode table
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000, 2001, 2003, 2010 Free Software Foundation, Inc.
Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
This file is part of BFD, the Binary File Descriptor library.
41,16 → 41,9
S390_OPCODE_Z10,
S390_OPCODE_Z196,
S390_OPCODE_ZEC12,
S390_OPCODE_Z13,
S390_OPCODE_MAXCPU
};
 
/* Instruction specific flags. */
#define S390_INSTR_FLAG_OPTPARM 0x1
#define S390_INSTR_FLAG_HTM 0x2
#define S390_INSTR_FLAG_VX 0x4
#define S390_INSTR_FLAG_FACILITY_MASK 0x6
 
/* The opcode table is an array of struct s390_opcode. */
 
struct s390_opcode
81,9 → 74,6
 
/* First cpu this opcode is available for. */
enum s390_opcode_cpu_val min_cpu;
 
/* Instruction specific flags. */
unsigned int flags;
};
 
/* The table itself is sorted by major opcode number, and is otherwise
96,7 → 86,7
extern const struct s390_opcode s390_opformats[];
extern const int s390_num_opformats;
 
/* Values defined for the flags field of a struct s390_opcode. */
/* Values defined for the flags field of a struct powerpc_opcode. */
 
/* The operands table is an array of struct s390_operand. */
 
113,7 → 103,7
};
 
/* Elements in the table are retrieved by indexing with values from
the operands field of the s390_opcodes table. */
the operands field of the powerpc_opcodes table. */
 
extern const struct s390_operand s390_operands[];
 
161,14 → 151,4
/* The operand needs to be a valid GP or FP register pair. */
#define S390_OPERAND_REG_PAIR 0x800
 
/* This operand names a vector register. The disassembler uses this
to print register names with a leading 'v'. */
#define S390_OPERAND_VR 0x1000
 
#define S390_OPERAND_CP16 0x2000
 
#define S390_OPERAND_OR1 0x4000
#define S390_OPERAND_OR2 0x8000
#define S390_OPERAND_OR8 0x10000
 
#endif /* S390_H */
/contrib/toolchain/binutils/include/opcode/score-datadep.h
1,5 → 1,5
/* score-datadep.h -- Score Instructions data dependency table
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Contributed by:
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
/contrib/toolchain/binutils/include/opcode/score-inst.h
1,5 → 1,5
/* score-inst.h -- Score Instructions Table
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Contributed by:
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
/contrib/toolchain/binutils/include/opcode/sparc.h
1,5 → 1,6
/* Definitions for opcode table for the sparc.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2002,
2003, 2005, 2010, 2011 Free Software Foundation, Inc.
 
This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and
the GNU Binutils.
100,7 → 101,6
/* This was called "delayed" in versions before the flags. */
unsigned int flags;
unsigned int hwcaps;
unsigned int hwcaps2;
short architecture; /* Bitmask of sparc_opcode_arch_val's. */
} sparc_opcode;
 
116,8 → 116,7
 
#define F_PREF_ALIAS (F_ALIAS|F_PREFERRED)
 
/* These must match the ELF_SPARC_HWCAP_* and ELF_SPARC_HWCAP2_*
values precisely. See include/elf/sparc.h. */
/* These must match the HWCAP_* values precisely. */
#define HWCAP_MUL32 0x00000001 /* umul/umulcc/smul/smulcc insns */
#define HWCAP_DIV32 0x00000002 /* udiv/udivcc/sdiv/sdivcc insns */
#define HWCAP_FSMULD 0x00000004 /* 'fsmuld' insn */
150,20 → 149,6
#define HWCAP_CBCOND 0x10000000 /* Compare and Branch insns */
#define HWCAP_CRC32C 0x20000000 /* CRC32C insn */
 
#define HWCAP2_FJATHPLUS 0x00000001 /* Fujitsu Athena+ */
#define HWCAP2_VIS3B 0x00000002 /* Subset of VIS3 present on sparc64 X+. */
#define HWCAP2_ADP 0x00000004 /* Application Data Protection */
#define HWCAP2_SPARC5 0x00000008 /* The 29 new fp and sub instructions */
#define HWCAP2_MWAIT 0x00000010 /* mwait instruction and load/monitor ASIs */
#define HWCAP2_XMPMUL 0x00000020 /* XOR multiple precision multiply */
#define HWCAP2_XMONT 0x00000040 /* XOR Montgomery mult/sqr instructions */
#define HWCAP2_NSEC \
0x00000080 /* pause insn with support for nsec timings */
#define HWCAP2_FJATHHPC 0x00001000 /* Fujitsu HPC instrs */
#define HWCAP2_FJDES 0x00002000 /* Fujitsu DES instrs */
#define HWCAP2_FJAES 0x00010000 /* Fujitsu AES instrs */
 
 
/* All sparc opcodes are 32 bits, except for the `set' instruction (really a
macro), which is 64 bits. It is handled as a special case.
 
189,7 → 174,6
g frsd floating point register.
H frsd floating point register (double/even).
J frsd floating point register (quad/multiple of 4).
} frsd floating point register (double/even) that is == frs2
b crs1 coprocessor register
c crs2 coprocessor register
D crsd coprocessor register
231,7 → 215,6
s %fprs. (v9)
P %pc. (v9)
W %tick. (v9)
{ %mcdper. (v9b)
o %asi. (v9)
6 %fcc0. (v9)
7 %fcc1. (v9)
/contrib/toolchain/binutils/include/opcode/spu-insns.h
1,6 → 1,6
/* SPU ELF support for BFD.
 
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2007, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/opcode/spu.h
1,6 → 1,6
/* SPU ELF support for BFD.
 
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Copyright 2006, 2010 Free Software Foundation, Inc.
 
This file is part of GDB, GAS, and the GNU binutils.
 
/contrib/toolchain/binutils/include/opcode/tahoe.h
2,7 → 2,7
* Ported by the State University of New York at Buffalo by the Distributed
* Computer Systems Lab, Department of Computer Science, 1991.
*/
/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
/* Copyright 2012 Free Software Foundation, Inc.
 
This file is part of GDB and BINUTILS.
 
/contrib/toolchain/binutils/include/opcode/tic30.h
1,5 → 1,5
/* tic30.h -- Header file for TI TMS320C30 opcode table
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 2005, 2009, 2010 Free Software Foundation, Inc.
Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/tic4x.h
1,6 → 1,6
/* Table of opcodes for the Texas Instruments TMS320C[34]X family.
 
Copyright (C) 2002-2015 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2010 Free Software Foundation.
Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
/contrib/toolchain/binutils/include/opcode/tic54x.h
1,5 → 1,5
/* tic54x.h -- Header file for TI TMS320C54X opcode table
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Copyright 1999, 2000, 2001, 2005, 2009, 2010 Free Software Foundation, Inc.
Written by Timothy Wall (twall@cygnus.com)
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/tic6x-control-registers.h
1,5 → 1,6
/* TI C6X control register information.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010
Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/opcode/tic6x-insn-formats.h
1,5 → 1,5
/* TI C6X instruction format information.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010-2013 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/opcode/tic6x-opcode-table.h
1,5 → 1,5
/* TI C6X opcode table.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010-2013 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/opcode/tic6x.h
1,5 → 1,5
/* TI C6X opcode information.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010-2013 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/opcode/tic80.h
1,5 → 1,5
/* tic80.h -- Header file for TI TMS320C80 (MV) opcode table
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996, 1997, 2003, 2010 Free Software Foundation, Inc.
Written by Fred Fish (fnf@cygnus.com), Cygnus Support
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/tilegx.h
1,6 → 1,6
/* TILE-Gx opcode information.
*
* Copyright (C) 2011-2015 Free Software Foundation, Inc.
* Copyright 2011 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
21,10 → 21,6
#ifndef opcode_tile_h
#define opcode_tile_h
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef unsigned long long tilegx_bundle_bits;
 
 
1305,8 → 1301,4
#define TILE_LOG2_BUNDLE_ALIGNMENT_IN_BYTES \
TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES
 
#ifdef __cplusplus
}
#endif
 
#endif /* opcode_tilegx_h */
/contrib/toolchain/binutils/include/opcode/tilepro.h
1,6 → 1,6
/* TILEPro opcode information.
*
* Copyright (C) 2011-2015 Free Software Foundation, Inc.
* Copyright 2011 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/opcode/v850.h
1,5 → 1,5
/* v850.h -- Header file for NEC V850 opcode table
Copyright (C) 1996-2015 Free Software Foundation, Inc.
Copyright 1996-2013 Free Software Foundation, Inc.
Written by J.T. Conklin, Cygnus Support
 
This file is part of GDB, GAS, and the GNU binutils.
/contrib/toolchain/binutils/include/opcode/vax.h
1,5 → 1,5
/* Vax opcde list.
Copyright (C) 1989-2015 Free Software Foundation, Inc.
Copyright 1989, 1991, 1992, 1995, 2010 Free Software Foundation, Inc.
 
This file is part of GDB and GAS.
 
/contrib/toolchain/binutils/include/opcode/xgate.h
1,5 → 1,5
/* xgate.h -- Freescale XGATE opcode list
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010, 2011, 2012 Free Software Foundation, Inc.
Written by Sean Keys (skeys@ipdatasys.com)
 
This file is part of the GNU opcodes library.
46,23 → 46,37
#define XGATE_CYCLE_A 0x40
#define XGATE_CYCLE_f 0x80
 
/* Opcode format abbreviations. */
#define XG_INH 0x0001 /* Inherent. */
#define XG_I 0x0002 /* 3-bit immediate address. */
#define XG_R_I 0x0004 /* Register followed by 4/8-bit immediate value. */
#define XG_R_R 0x0008 /* Register followed by a register. */
#define XG_R_R_R 0x0010 /* Register followed by two registers. */
#define XG_R 0x0020 /* Single register. */
#define XG_PC 0x0040 /* PC relative 10 or 11 bit. */
#define XG_R_C 0x0080 /* General register followed by ccr register. */
#define XG_C_R 0x0100 /* CCR register followed by a general register. */
#define XG_R_P 0x0200 /* General register followed by pc register. */
#define XG_R_R_I 0x0400 /* Two general registers followed by an immediate value. */
#define XG_PCREL 0x0800 /* Immediate value that is relative to the current pc. */
 
/* XGATE operand formats as stored in the XGATE_opcode table.
They are only used by GAS to recognize operands. */
#define XGATE_OP_INH "" /* Inherent. */
#define XGATE_OP_TRI "r,r,r" /* Register followed by two registers. */
#define XGATE_OP_DYA "r,r" /* Register followed by a register. */
#define XGATE_OP_IMM16 "r,if" /* Register followed by 16-bit value. */
#define XGATE_OP_IMM8 "r,i8" /* Register followed by 8-bit value. */
#define XGATE_OP_IMM4 "r,i4" /* Register followed by 4-bit value. */
#define XGATE_OP_IMM3 "i3" /* Register followed by 3-bit value. */
#define XGATE_OP_MON "r" /* Single register. */
#define XGATE_OP_MON_R_C "r,c" /* General register followed by ccr register. */
#define XGATE_OP_MON_C_R "c,r" /* CCR register followed by a general register. */
#define XGATE_OP_MON_R_P "r,p" /* General register followed by pc register. */
#define XGATE_OP_IDR "r,r,+" /* Three registers with the third having a -/+ directive. */
#define XGATE_OP_IDO5 "r,r,i5" /* Two general registers followed by an immediate value. */
#define XGATE_OP_REL9 "b9" /* 9-bit value that is relative to the current pc. */
#define XGATE_OP_REL10 "ba" /* 10-bit value that is relative to the current pc. */
#define XGATE_OP_INH ""
#define XGATE_OP_TRI "r,r,r"
#define XGATE_OP_DYA "r,r"
#define XGATE_OP_IMM16 "r,if"
#define XGATE_OP_IMM8 "r,i8"
#define XGATE_OP_IMM4 "r,i4"
#define XGATE_OP_IMM3 "i3"
#define XGATE_OP_MON "r"
#define XGATE_OP_MON_R_C "r,c"
#define XGATE_OP_MON_C_R "c,r"
#define XGATE_OP_MON_R_P "r,p"
#define XGATE_OP_IDR "r,r,+"
#define XGATE_OP_IDO5 "r,r,i5"
#define XGATE_OP_REL9 "b9"
#define XGATE_OP_REL10 "ba"
#define XGATE_OP_DYA_MON "=r"
/* Macro definitions. */
#define XGATE_OP_IMM16mADD "r,if; addl addh"
76,6 → 90,11
#define XGATE_V2 0x2
#define XGATE_V3 0x4
 
/* Max opcodes per opcode handle. */
#define MAX_OPCODES 0x05
 
#define MAX_DETECT_CHARS 0x10
 
/* The opcode table definitions. */
struct xgate_opcode
{
82,6 → 101,7
char * name; /* Op-code name. */
char * constraints; /* Constraint chars. */
char * format; /* Bit definitions. */
unsigned int sh_format; /* Shorthand format mask. */
unsigned int size; /* Opcode size in bytes. */
unsigned int bin_opcode; /* Binary opcode with operands masked off. */
unsigned char cycles_min; /* Minimum cpu cycles needed. */
/contrib/toolchain/binutils/include/os9k.h
1,5 → 1,5
/* os9k.h - OS-9000 i386 module header definitions
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright 2000 Free Software Foundation, Inc.
 
This file is part of GNU CC.
/contrib/toolchain/binutils/include/partition.h
45,12 → 45,12
 
struct partition_elem
{
/* The canonical element that represents the class containing this
element. */
int class_element;
/* The next element in this class. Elements in each class form a
circular list. */
struct partition_elem* next;
/* The canonical element that represents the class containing this
element. */
int class_element;
/* The number of elements in this class. Valid only if this is the
canonical element for its class. */
unsigned class_count;
/contrib/toolchain/binutils/include/plugin-api.h
1,6 → 1,6
/* plugin-api.h -- External linker plugin API. */
 
/* Copyright (C) 2009-2015 Free Software Foundation, Inc.
/* Copyright 2009, 2010 Free Software Foundation, Inc.
Written by Cary Coutant <ccoutant@google.com>.
 
This file is part of binutils.
/contrib/toolchain/binutils/include/progress.h
1,5 → 1,5
/* Default definitions for progress macros.
Copyright (C) 1994-2015 Free Software Foundation, Inc.
Copyright 1994, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/safe-ctype.h
1,6 → 1,6
/* <ctype.h> replacement macros.
 
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Contributed by Zack Weinberg <zackw@stanford.edu>.
 
This file is part of the libiberty library.
/contrib/toolchain/binutils/include/sha1.h
1,6 → 1,7
/* Declarations of functions and data types used for SHA1 sum
library functions.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2001, 2003, 2005, 2006, 2008, 2010
Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
/contrib/toolchain/binutils/include/simple-object.h
1,5 → 1,5
/* simple-object.h -- simple routines to read and write object files
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
 
This program is free software; you can redistribute it and/or modify it
/contrib/toolchain/binutils/include/som/ChangeLog
1,11 → 1,3
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2010-06-10 Tristan Gingold <gingold@adacore.com>
 
* aout.h: New file.
14,7 → 6,7
* reloc.h: Likewise.
* internal.h: Likewise.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright (C) 2010-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/som/aout.h
1,5 → 1,5
/* SOM a.out definitions for BFD.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Contributed by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/som/clock.h
1,5 → 1,5
/* SOM clock definition for BFD.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Contributed by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/som/internal.h
1,5 → 1,5
/* SOM internal definitions for BFD.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Contributed by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/som/lst.h
1,5 → 1,5
/* SOM lst definitions for BFD.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Contributed by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/som/reloc.h
1,5 → 1,5
/* SOM relocation definitions for BFD.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Contributed by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/sort.h
1,5 → 1,5
/* Sorting algorithms.
Copyright (C) 2000-2015 Free Software Foundation, Inc.
Copyright (C) 2000, 2002 Free Software Foundation, Inc.
Contributed by Mark Mitchell <mark@codesourcery.com>.
 
This file is part of GCC.
/contrib/toolchain/binutils/include/splay-tree.h
1,5 → 1,6
/* A splay-tree datatype.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright 1998, 1999, 2000, 2002, 2005, 2007, 2009, 2010
Free Software Foundation, Inc.
Contributed by Mark Mitchell (mark@markmitchell.com).
 
This file is part of GCC.
43,6 → 44,10
#include <inttypes.h>
#endif
 
#ifndef GTY
#define GTY(X)
#endif
 
/* Use typedefs for the key and data types to facilitate changing
these types, if necessary. These types should be sufficiently wide
that any pointer or scalar can be cast to these types, and then
81,22 → 86,22
typedef void (*splay_tree_deallocate_fn) (void *, void *);
 
/* The nodes in the splay tree. */
struct splay_tree_node_s {
struct GTY(()) splay_tree_node_s {
/* The key. */
splay_tree_key key;
splay_tree_key GTY ((use_param1)) key;
 
/* The value. */
splay_tree_value value;
splay_tree_value GTY ((use_param2)) value;
 
/* The left and right children, respectively. */
splay_tree_node left;
splay_tree_node right;
splay_tree_node GTY ((use_params)) left;
splay_tree_node GTY ((use_params)) right;
};
 
/* The splay tree itself. */
struct splay_tree_s {
struct GTY(()) splay_tree_s {
/* The root of the tree. */
splay_tree_node root;
splay_tree_node GTY ((use_params)) root;
 
/* The comparision function. */
splay_tree_compare_fn comp;
114,7 → 119,7
splay_tree_deallocate_fn deallocate;
 
/* Parameter for allocate/free functions. */
void *allocate_data;
void * GTY((skip)) allocate_data;
};
 
typedef struct splay_tree_s *splay_tree;
/contrib/toolchain/binutils/include/symcat.h
1,6 → 1,6
/* Symbol concatenation utilities.
 
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Copyright (C) 1998, 2000, 2010 Free Software Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/contrib/toolchain/binutils/include/timeval-utils.h
1,5 → 1,5
/* Basic struct timeval utilities.
Copyright (C) 2011-2015 Free Software Foundation, Inc.
Copyright (C) 2011 Free Software Foundation, Inc.
 
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
/contrib/toolchain/binutils/include/vms/ChangeLog
1,11 → 1,3
2015-01-01 Alan Modra <amodra@gmail.com>
 
Update year range in copyright notice of all files.
 
2014-03-05 Alan Modra <amodra@gmail.com>
 
Update copyright years.
 
2012-03-08 Tristan Gingold <gingold@adacore.com>
 
* lbr.h (struct vms_lhd): Add comments.
81,7 → 73,7
* eiaf.h, eicp.h, eiha.h, eihd.h, eihi.h, eihs.h, eihvn.h: Ditto.
* eisd.h, emh.h, eobjrec.h, esdf.h, esrf.h, etir.h, shl.h: Ditto.
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright (C) 2010-2012 Free Software Foundation, Inc.
 
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
/contrib/toolchain/binutils/include/vms/dcx.h
1,6 → 1,6
/* Alpha VMS external format for DeCompression.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/dmt.h
1,6 → 1,6
/* Alpha VMS external format of Debug Module Table.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/dsc.h
1,6 → 1,6
/* Alpha VMS external format of Descriptors.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/dst.h
1,6 → 1,6
/* Alpha VMS external format of Debug Symbol Table.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eeom.h
1,6 → 1,6
/* Alpha VMS external format of Extended End Of Module.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/egps.h
1,6 → 1,6
/* Alpha VMS external format of Extended Program Section Definition.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/egsd.h
1,6 → 1,6
/* Alpha VMS external format of Extended Global Symbol Directory.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/egst.h
1,6 → 1,6
/* Alpha VMS external format of Extended Global Symbol Definition.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/egsy.h
1,6 → 1,6
/* Alpha VMS external format of Extended Global Symbol.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eiaf.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image Activator Fixup section.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eicp.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image section Change Protection.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eidc.h
1,6 → 1,6
/* Alpha VMS external format of Ident Consistency check.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eiha.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image Activation.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eihd.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image Header.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eihi.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image Identification.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eihs.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image Symbols and debug table.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eihvn.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image Header Version.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eisd.h
1,6 → 1,6
/* Alpha VMS external format of Extended Image Section Descriptor.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/emh.h
1,6 → 1,6
/* Alpha VMS external format of Extended Module Header.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/eobjrec.h
1,6 → 1,6
/* Alpha VMS external format of Extended Object Records.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/esdf.h
1,6 → 1,6
/* Alpha VMS external format of Extended GSD Global Symbol Definition.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/esdfm.h
1,6 → 1,6
/* Alpha VMS external format of Extended Symbol Definition for version Mask.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/esdfv.h
1,6 → 1,6
/* Alpha VMS external format of Extended Symbol Def for Vectored symbols.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/esgps.h
1,6 → 1,6
/* Alpha VMS external format of Extended Shared Program Section Definition.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/esrf.h
1,6 → 1,6
/* Alpha VMS external format of Extended GSD Global Symbol Reference.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/etir.h
1,6 → 1,6
/* Alpha VMS external format of Extended Text Information and Relocation.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/internal.h
1,6 → 1,6
/* Alpha VMS internal format.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/lbr.h
1,6 → 1,6
/* Alpha VMS external format of Libraries.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/prt.h
1,6 → 1,6
/* Alpha VMS external format of Protection values.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vms/shl.h
1,6 → 1,6
/* Alpha VMS external format of Shareable image List.
 
Copyright (C) 2010-2015 Free Software Foundation, Inc.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
This file is part of BFD, the Binary File Descriptor library.
/contrib/toolchain/binutils/include/vtv-change-permission.h
1,4 → 1,5
/* Copyright (C) 2013-2015 Free Software Foundation, Inc.
/* Copyright (C) 2013
Free Software Foundation
This file is part of GCC.
/contrib/toolchain/binutils/include/xregex2.h
1,7 → 1,8
/* Definitions for data structures and routines for the regular
expression library, version 0.12.
 
Copyright (C) 1985-2015 Free Software Foundation, Inc.
Copyright (C) 1985, 1989, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
1998, 2000, 2005 Free Software Foundation, Inc.
 
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
/contrib/toolchain/binutils/include/xtensa-config.h
1,5 → 1,6
/* Xtensa configuration settings.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
Free Software Foundation, Inc.
Contributed by Bob Wilson (bob.wilson@acm.org) at Tensilica.
 
This program is free software; you can redistribute it and/or modify
/contrib/toolchain/binutils/include/xtensa-isa-internal.h
1,5 → 1,5
/* Internal definitions for configurable Xtensa ISA support.
Copyright (C) 2003-2015 Free Software Foundation, Inc.
Copyright 2003, 2004, 2005, 2008, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.
 
/contrib/toolchain/binutils/include/xtensa-isa.h
1,5 → 1,5
/* Interface definition for configurable Xtensa ISA support.
Copyright (C) 2003-2015 Free Software Foundation, Inc.
Copyright 2003, 2004, 2005, 2006, 2008, 2010 Free Software Foundation, Inc.
 
This file is part of BFD, the Binary File Descriptor library.