summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/include/elf
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-12-09 17:57:18 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-12-09 19:50:14 +0800
commit5e8c1cf25beccac1d22d10dc866912394f42771b (patch)
treeee16b70f804484dc8e434e647e699ab50da2620f /binutils-2.25/include/elf
parent8eebd7953384e6662ca926b003f2cdda8ccd3ee5 (diff)
downloadtoolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.tar.gz
toolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.tar.bz2
toolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.zip
[2.25] sync to a30720e3e633f275250e26f85ccae5dbdddfb6c6
local patches will be re-applied later commit a30720e3e633f275250e26f85ccae5dbdddfb6c6 Author: Alan Modra <amodra@gmail.com> Date: Wed Nov 19 10:30:16 2014 +1030 daily update Change-Id: Ieb2a3f4dd2ecb289ac5305ff08d428b2847494ab
Diffstat (limited to 'binutils-2.25/include/elf')
-rw-r--r--binutils-2.25/include/elf/ChangeLog132
-rw-r--r--binutils-2.25/include/elf/aarch64.h92
-rw-r--r--binutils-2.25/include/elf/alpha.h2
-rw-r--r--binutils-2.25/include/elf/arc.h2
-rw-r--r--binutils-2.25/include/elf/arm.h3
-rw-r--r--binutils-2.25/include/elf/avr.h24
-rw-r--r--binutils-2.25/include/elf/bfin.h2
-rw-r--r--binutils-2.25/include/elf/common.h14
-rw-r--r--binutils-2.25/include/elf/cr16.h2
-rw-r--r--binutils-2.25/include/elf/cr16c.h2
-rw-r--r--binutils-2.25/include/elf/cris.h2
-rw-r--r--binutils-2.25/include/elf/crx.h2
-rw-r--r--binutils-2.25/include/elf/d10v.h2
-rw-r--r--binutils-2.25/include/elf/d30v.h2
-rw-r--r--binutils-2.25/include/elf/dlx.h2
-rw-r--r--binutils-2.25/include/elf/dwarf.h2
-rw-r--r--[-rwxr-xr-x]binutils-2.25/include/elf/epiphany.h2
-rw-r--r--binutils-2.25/include/elf/external.h3
-rw-r--r--binutils-2.25/include/elf/fr30.h2
-rw-r--r--binutils-2.25/include/elf/frv.h2
-rw-r--r--binutils-2.25/include/elf/h8.h2
-rw-r--r--binutils-2.25/include/elf/hppa.h3
-rw-r--r--binutils-2.25/include/elf/i370.h2
-rw-r--r--binutils-2.25/include/elf/i386.h3
-rw-r--r--binutils-2.25/include/elf/i860.h2
-rw-r--r--binutils-2.25/include/elf/i960.h2
-rw-r--r--binutils-2.25/include/elf/ia64.h3
-rw-r--r--binutils-2.25/include/elf/internal.h3
-rw-r--r--binutils-2.25/include/elf/ip2k.h2
-rw-r--r--binutils-2.25/include/elf/iq2000.h2
-rw-r--r--binutils-2.25/include/elf/lm32.h2
-rw-r--r--binutils-2.25/include/elf/m32c.h2
-rw-r--r--binutils-2.25/include/elf/m32r.h3
-rw-r--r--binutils-2.25/include/elf/m68hc11.h2
-rw-r--r--binutils-2.25/include/elf/m68k.h3
-rw-r--r--binutils-2.25/include/elf/mcore.h2
-rw-r--r--binutils-2.25/include/elf/mep.h3
-rw-r--r--binutils-2.25/include/elf/metag.h2
-rw-r--r--binutils-2.25/include/elf/microblaze.h2
-rw-r--r--binutils-2.25/include/elf/mips.h144
-rw-r--r--binutils-2.25/include/elf/mmix.h2
-rw-r--r--binutils-2.25/include/elf/mn10200.h2
-rw-r--r--binutils-2.25/include/elf/mn10300.h2
-rw-r--r--binutils-2.25/include/elf/moxie.h2
-rw-r--r--binutils-2.25/include/elf/msp430.h2
-rw-r--r--binutils-2.25/include/elf/mt.h2
-rw-r--r--binutils-2.25/include/elf/nds32.h299
-rw-r--r--binutils-2.25/include/elf/nios2.h9
-rw-r--r--binutils-2.25/include/elf/openrisc.h39
-rw-r--r--binutils-2.25/include/elf/or1k.h65
-rw-r--r--binutils-2.25/include/elf/or32.h56
-rw-r--r--binutils-2.25/include/elf/pj.h2
-rw-r--r--binutils-2.25/include/elf/ppc.h6
-rw-r--r--binutils-2.25/include/elf/ppc64.h79
-rw-r--r--binutils-2.25/include/elf/reloc-macros.h2
-rw-r--r--binutils-2.25/include/elf/rl78.h3
-rw-r--r--binutils-2.25/include/elf/rx.h2
-rw-r--r--binutils-2.25/include/elf/s390.h2
-rw-r--r--binutils-2.25/include/elf/score.h2
-rw-r--r--binutils-2.25/include/elf/sh.h3
-rw-r--r--binutils-2.25/include/elf/sparc.h29
-rw-r--r--binutils-2.25/include/elf/spu.h2
-rw-r--r--binutils-2.25/include/elf/tic6x-attrs.h3
-rw-r--r--binutils-2.25/include/elf/tic6x.h3
-rw-r--r--binutils-2.25/include/elf/tilegx.h2
-rw-r--r--binutils-2.25/include/elf/tilepro.h2
-rw-r--r--binutils-2.25/include/elf/v850.h2
-rw-r--r--binutils-2.25/include/elf/vax.h2
-rw-r--r--binutils-2.25/include/elf/vxworks.h3
-rw-r--r--binutils-2.25/include/elf/x86-64.h7
-rw-r--r--binutils-2.25/include/elf/xc16x.h2
-rw-r--r--binutils-2.25/include/elf/xgate.h2
-rw-r--r--binutils-2.25/include/elf/xstormy16.h2
-rw-r--r--binutils-2.25/include/elf/xtensa.h2
74 files changed, 921 insertions, 208 deletions
diff --git a/binutils-2.25/include/elf/ChangeLog b/binutils-2.25/include/elf/ChangeLog
index c2577e88..17978ba3 100644
--- a/binutils-2.25/include/elf/ChangeLog
+++ b/binutils-2.25/include/elf/ChangeLog
@@ -1,3 +1,133 @@
+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>
+
+ * 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-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.
+ (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>
* mips.h (enum): Add Tag_GNU_MIPS_ABI_MSA.
@@ -1878,7 +2008,7 @@
For older changes see ChangeLog-9103
-Copyright (C) 2004-2012 Free Software Foundation, Inc.
+Copyright (C) 2004-2014 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
diff --git a/binutils-2.25/include/elf/aarch64.h b/binutils-2.25/include/elf/aarch64.h
index 41016038..1842b0be 100644
--- a/binutils-2.25/include/elf/aarch64.h
+++ b/binutils-2.25/include/elf/aarch64.h
@@ -1,6 +1,6 @@
/* AArch64 ELF support for BFD.
- Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2009-2014 Free Software Foundation, Inc.
Contributed by ARM Ltd.
This file is part of GNU Binutils.
@@ -269,20 +269,87 @@ RELOC_NUMBER (R_AARCH64_LDST32_ABS_LO12_NC, 285)
/* 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)
@@ -291,6 +358,16 @@ RELOC_NUMBER (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC, 548)
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)
@@ -303,6 +380,11 @@ RELOC_NUMBER (R_AARCH64_TLSDESC_LDR, 567)
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. */
@@ -316,9 +398,17 @@ RELOC_NUMBER (R_AARCH64_JUMP_SLOT, 1026)
/* Adjust by program base. */
RELOC_NUMBER (R_AARCH64_RELATIVE, 1027)
+RELOC_NUMBER (R_AARCH64_TLS_DTPMOD64, 1028)
+RELOC_NUMBER (R_AARCH64_TLS_DTPREL64, 1029)
+RELOC_NUMBER (R_AARCH64_TLS_TPREL64, 1030)
+/* Aliasing relocs are guarded by RELOC_MACROS_GEN_FUNC
+ so that readelf.c won't generate duplicated case
+ statements. */
+#ifndef RELOC_MACROS_GEN_FUNC
RELOC_NUMBER (R_AARCH64_TLS_DTPMOD, 1028)
RELOC_NUMBER (R_AARCH64_TLS_DTPREL, 1029)
RELOC_NUMBER (R_AARCH64_TLS_TPREL, 1030)
+#endif
RELOC_NUMBER (R_AARCH64_TLSDESC, 1031)
RELOC_NUMBER (R_AARCH64_IRELATIVE, 1032)
diff --git a/binutils-2.25/include/elf/alpha.h b/binutils-2.25/include/elf/alpha.h
index f4fe566b..274b3b1a 100644
--- a/binutils-2.25/include/elf/alpha.h
+++ b/binutils-2.25/include/elf/alpha.h
@@ -1,5 +1,5 @@
/* ALPHA ELF support for BFD.
- Copyright 1996, 1998, 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1996-2014 Free Software Foundation, Inc.
By Eric Youngdale, <eric@aib.com>. No processor supplement available
for this platform.
diff --git a/binutils-2.25/include/elf/arc.h b/binutils-2.25/include/elf/arc.h
index a07ed2e3..6b424629 100644
--- a/binutils-2.25/include/elf/arc.h
+++ b/binutils-2.25/include/elf/arc.h
@@ -1,5 +1,5 @@
/* ARC ELF support for BFD.
- Copyright 1995, 1997, 1998, 2000, 2001, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1995-2014 Free Software Foundation, Inc.
Contributed by Doug Evans, (dje@cygnus.com)
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/arm.h b/binutils-2.25/include/elf/arm.h
index d7993038..34afdfd9 100644
--- a/binutils-2.25/include/elf/arm.h
+++ b/binutils-2.25/include/elf/arm.h
@@ -1,6 +1,5 @@
/* ARM ELF support for BFD.
- Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/avr.h b/binutils-2.25/include/elf/avr.h
index b45d902d..f2f500d4 100644
--- a/binutils-2.25/include/elf/avr.h
+++ b/binutils-2.25/include/elf/avr.h
@@ -1,6 +1,5 @@
/* AVR ELF support for BFD.
- Copyright 1999, 2000, 2004, 2006, 2010, 2012
- Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
Contributed by Denis Chertykov <denisc@overta.ru>
This file is part of BFD, the Binary File Descriptor library.
@@ -41,13 +40,14 @@
#define E_AVR_MACH_AVR5 5
#define E_AVR_MACH_AVR51 51
#define E_AVR_MACH_AVR6 6
-#define E_AVR_MACH_XMEGA1 101
-#define E_AVR_MACH_XMEGA2 102
-#define E_AVR_MACH_XMEGA3 103
-#define E_AVR_MACH_XMEGA4 104
-#define E_AVR_MACH_XMEGA5 105
-#define E_AVR_MACH_XMEGA6 106
-#define E_AVR_MACH_XMEGA7 107
+#define E_AVR_MACH_AVRTINY 100
+#define E_AVR_MACH_XMEGA1 101
+#define E_AVR_MACH_XMEGA2 102
+#define E_AVR_MACH_XMEGA3 103
+#define E_AVR_MACH_XMEGA4 104
+#define E_AVR_MACH_XMEGA5 105
+#define E_AVR_MACH_XMEGA6 106
+#define E_AVR_MACH_XMEGA7 107
/* Relocations. */
START_RELOC_NUMBERS (elf_avr_reloc_type)
@@ -81,6 +81,12 @@ START_RELOC_NUMBERS (elf_avr_reloc_type)
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)
END_RELOC_NUMBERS (R_AVR_max)
#endif /* _ELF_AVR_H */
diff --git a/binutils-2.25/include/elf/bfin.h b/binutils-2.25/include/elf/bfin.h
index 8d92906a..c6ea00ea 100644
--- a/binutils-2.25/include/elf/bfin.h
+++ b/binutils-2.25/include/elf/bfin.h
@@ -1,5 +1,5 @@
/* Blackfin ELF support for BFD.
- Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/common.h b/binutils-2.25/include/elf/common.h
index cd3bcdd2..e8ae3ac2 100644
--- a/binutils-2.25/include/elf/common.h
+++ b/binutils-2.25/include/elf/common.h
@@ -1,5 +1,5 @@
/* ELF support for BFD.
- Copyright 1991-2013 Free Software Foundation, Inc.
+ Copyright (C) 1991-2014 Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and
@@ -192,7 +192,7 @@
#define EM_MN10300 89 /* Matsushita MN10300 */
#define EM_MN10200 90 /* Matsushita MN10200 */
#define EM_PJ 91 /* picoJava */
-#define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */
+#define EM_OR1K 92 /* OpenRISC 1000 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 */
@@ -339,9 +339,6 @@
/* 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
@@ -360,9 +357,6 @@
/* 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
@@ -408,6 +402,9 @@
#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. */
@@ -959,6 +956,7 @@
#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. */
diff --git a/binutils-2.25/include/elf/cr16.h b/binutils-2.25/include/elf/cr16.h
index 32784748..0da44f70 100644
--- a/binutils-2.25/include/elf/cr16.h
+++ b/binutils-2.25/include/elf/cr16.h
@@ -1,5 +1,5 @@
/* CR16 ELF support for BFD.
- Copyright 2007, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2007-2014 Free Software Foundation, Inc.
Contributed by M R Swami Reddy.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/cr16c.h b/binutils-2.25/include/elf/cr16c.h
index dbefb0ab..15a2d096 100644
--- a/binutils-2.25/include/elf/cr16c.h
+++ b/binutils-2.25/include/elf/cr16c.h
@@ -1,5 +1,5 @@
/* CR16C ELF support for BFD.
- Copyright 2004, 2008, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2004-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/cris.h b/binutils-2.25/include/elf/cris.h
index 5889a90d..6331ca13 100644
--- a/binutils-2.25/include/elf/cris.h
+++ b/binutils-2.25/include/elf/cris.h
@@ -1,5 +1,5 @@
/* CRIS ELF support for BFD.
- Copyright 2000, 2001, 2004, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
Contributed by Axis Communications AB, Lund, Sweden.
Written by Hans-Peter Nilsson.
diff --git a/binutils-2.25/include/elf/crx.h b/binutils-2.25/include/elf/crx.h
index 38428f29..b201567f 100644
--- a/binutils-2.25/include/elf/crx.h
+++ b/binutils-2.25/include/elf/crx.h
@@ -1,5 +1,5 @@
/* CRX ELF support for BFD.
- Copyright 2004, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2004-2014 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.
diff --git a/binutils-2.25/include/elf/d10v.h b/binutils-2.25/include/elf/d10v.h
index 5850b374..5ee1112b 100644
--- a/binutils-2.25/include/elf/d10v.h
+++ b/binutils-2.25/include/elf/d10v.h
@@ -1,5 +1,5 @@
/* d10v ELF support for BFD.
- Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/d30v.h b/binutils-2.25/include/elf/d30v.h
index 8174a40e..176bb6e0 100644
--- a/binutils-2.25/include/elf/d30v.h
+++ b/binutils-2.25/include/elf/d30v.h
@@ -1,5 +1,5 @@
/* d30v ELF support for BFD.
- Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/dlx.h b/binutils-2.25/include/elf/dlx.h
index 7d61633c..da72c4dc 100644
--- a/binutils-2.25/include/elf/dlx.h
+++ b/binutils-2.25/include/elf/dlx.h
@@ -1,5 +1,5 @@
/* DLX support for BFD.
- Copyright 2002, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/dwarf.h b/binutils-2.25/include/elf/dwarf.h
index c2e6a67e..f9bb461f 100644
--- a/binutils-2.25/include/elf/dwarf.h
+++ b/binutils-2.25/include/elf/dwarf.h
@@ -3,7 +3,7 @@
Written by Ron Guilmette (rfg@netcom.com)
- Copyright 1992, 1993, 1995, 1999, 2005, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1992-2014 Free Software Foundation, Inc.
This file is part of both GCC and the BFD library.
diff --git a/binutils-2.25/include/elf/epiphany.h b/binutils-2.25/include/elf/epiphany.h
index bb2dcffe..38f973fb 100755..100644
--- a/binutils-2.25/include/elf/epiphany.h
+++ b/binutils-2.25/include/elf/epiphany.h
@@ -1,5 +1,5 @@
/* Adapteva EPIPHANY ELF support for BFD.
- Copyright (C) 2009, 2011 Free Software Foundation, Inc.
+ Copyright (C) 2009-2014 Free Software Foundation, Inc.
Contributed by Embecosm on behalf of Adapteva, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/external.h b/binutils-2.25/include/elf/external.h
index ef7724e9..63d83b94 100644
--- a/binutils-2.25/include/elf/external.h
+++ b/binutils-2.25/include/elf/external.h
@@ -1,6 +1,5 @@
/* ELF support for BFD.
- Copyright 1991, 1992, 1993, 1995, 1997, 1998, 1999, 2001, 2003, 2005,
- 2008, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1991-2014 Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and
diff --git a/binutils-2.25/include/elf/fr30.h b/binutils-2.25/include/elf/fr30.h
index 918ac977..4107f399 100644
--- a/binutils-2.25/include/elf/fr30.h
+++ b/binutils-2.25/include/elf/fr30.h
@@ -1,5 +1,5 @@
/* FR30 ELF support for BFD.
- Copyright 1998, 1999, 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/frv.h b/binutils-2.25/include/elf/frv.h
index b79e51d0..89e95641 100644
--- a/binutils-2.25/include/elf/frv.h
+++ b/binutils-2.25/include/elf/frv.h
@@ -1,5 +1,5 @@
/* FRV ELF support for BFD.
- Copyright (C) 2002, 2003, 2004, 2005, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/h8.h b/binutils-2.25/include/elf/h8.h
index 2a3d905e..c9090431 100644
--- a/binutils-2.25/include/elf/h8.h
+++ b/binutils-2.25/include/elf/h8.h
@@ -1,5 +1,5 @@
/* H8300/h8500 ELF support for BFD.
- Copyright 2001-2013 Free Software Foundation, Inc.
+ Copyright (C) 2001-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/hppa.h b/binutils-2.25/include/elf/hppa.h
index 8d3ea45f..fe7be067 100644
--- a/binutils-2.25/include/elf/hppa.h
+++ b/binutils-2.25/include/elf/hppa.h
@@ -1,6 +1,5 @@
/* HPPA ELF support for BFD.
- Copyright 1993, 1994, 1995, 1998, 1999, 2000, 2005, 2006, 2008, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/i370.h b/binutils-2.25/include/elf/i370.h
index 7b451ff9..88231dfd 100644
--- a/binutils-2.25/include/elf/i370.h
+++ b/binutils-2.25/include/elf/i370.h
@@ -1,5 +1,5 @@
/* i370 ELF support for BFD.
- Copyright 2000, 2002, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/i386.h b/binutils-2.25/include/elf/i386.h
index c4750925..b86ae04e 100644
--- a/binutils-2.25/include/elf/i386.h
+++ b/binutils-2.25/include/elf/i386.h
@@ -1,6 +1,5 @@
/* ix86 ELF support for BFD.
- Copyright 1998, 1999, 2000, 2002, 2004, 2005, 2006, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/i860.h b/binutils-2.25/include/elf/i860.h
index 834c7766..3d44ead8 100644
--- a/binutils-2.25/include/elf/i860.h
+++ b/binutils-2.25/include/elf/i860.h
@@ -1,5 +1,5 @@
/* i860 ELF support for BFD.
- Copyright 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
Contributed by Jason Eckhardt <jle@cygnus.com>.
diff --git a/binutils-2.25/include/elf/i960.h b/binutils-2.25/include/elf/i960.h
index c319b322..7ec36d31 100644
--- a/binutils-2.25/include/elf/i960.h
+++ b/binutils-2.25/include/elf/i960.h
@@ -1,5 +1,5 @@
/* Intel 960 ELF support for BFD.
- Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/ia64.h b/binutils-2.25/include/elf/ia64.h
index 7f2453d0..e24a1386 100644
--- a/binutils-2.25/include/elf/ia64.h
+++ b/binutils-2.25/include/elf/ia64.h
@@ -1,6 +1,5 @@
/* IA-64 ELF support for BFD.
- Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/internal.h b/binutils-2.25/include/elf/internal.h
index 46150378..310c1d9e 100644
--- a/binutils-2.25/include/elf/internal.h
+++ b/binutils-2.25/include/elf/internal.h
@@ -1,6 +1,5 @@
/* ELF support for BFD.
- Copyright 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002,
- 2003, 2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 1991-2014 Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
in "UNIX System V Release 4, Programmers Guide: ANSI C and
diff --git a/binutils-2.25/include/elf/ip2k.h b/binutils-2.25/include/elf/ip2k.h
index 8b4f36ef..0e90aae9 100644
--- a/binutils-2.25/include/elf/ip2k.h
+++ b/binutils-2.25/include/elf/ip2k.h
@@ -1,5 +1,5 @@
/* IP2xxx ELF support for BFD.
- Copyright (C) 2000, 2002, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/iq2000.h b/binutils-2.25/include/elf/iq2000.h
index 0f8e6971..3bba7308 100644
--- a/binutils-2.25/include/elf/iq2000.h
+++ b/binutils-2.25/include/elf/iq2000.h
@@ -1,5 +1,5 @@
/* IQ2000 ELF support for BFD.
- Copyright (C) 2002, 2003, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/lm32.h b/binutils-2.25/include/elf/lm32.h
index 6ed34ec4..e007fc17 100644
--- a/binutils-2.25/include/elf/lm32.h
+++ b/binutils-2.25/include/elf/lm32.h
@@ -1,5 +1,5 @@
/* Lattice Mico32 ELF support for BFD.
- Copyright 2008, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2008-2014 Free Software Foundation, Inc.
Contributed by Jon Beniston <jon@beniston.com>
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/m32c.h b/binutils-2.25/include/elf/m32c.h
index 29b80a67..b0156225 100644
--- a/binutils-2.25/include/elf/m32c.h
+++ b/binutils-2.25/include/elf/m32c.h
@@ -1,5 +1,5 @@
/* M32C ELF support for BFD.
- Copyright (C) 2004, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2004-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/m32r.h b/binutils-2.25/include/elf/m32r.h
index 7e06e3f3..cd52612c 100644
--- a/binutils-2.25/include/elf/m32r.h
+++ b/binutils-2.25/include/elf/m32r.h
@@ -1,6 +1,5 @@
/* M32R ELF support for BFD.
- Copyright 1996, 1997, 1998, 1999, 2000, 2003, 2004, 2008, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1996-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/m68hc11.h b/binutils-2.25/include/elf/m68hc11.h
index 58d88208..06621bff 100644
--- a/binutils-2.25/include/elf/m68hc11.h
+++ b/binutils-2.25/include/elf/m68hc11.h
@@ -1,5 +1,5 @@
/* m68hc11 & m68hc12 ELF support for BFD.
- Copyright 1999, 2000, 2001, 2002, 2010, 2012 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/m68k.h b/binutils-2.25/include/elf/m68k.h
index f6f37ccf..806878ea 100644
--- a/binutils-2.25/include/elf/m68k.h
+++ b/binutils-2.25/include/elf/m68k.h
@@ -1,6 +1,5 @@
/* MC68k ELF support for BFD.
- Copyright 1998, 1999, 2000, 2002, 2005, 2006, 2007, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/mcore.h b/binutils-2.25/include/elf/mcore.h
index 2745feeb..06244397 100644
--- a/binutils-2.25/include/elf/mcore.h
+++ b/binutils-2.25/include/elf/mcore.h
@@ -1,5 +1,5 @@
/* Motorola MCore support for BFD.
- Copyright 1995, 1999, 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/mep.h b/binutils-2.25/include/elf/mep.h
index b0e42adc..60c0e996 100644
--- a/binutils-2.25/include/elf/mep.h
+++ b/binutils-2.25/include/elf/mep.h
@@ -1,6 +1,5 @@
/* Toshiba MeP ELF support for BFD.
- Copyright (C) 2001, 2004, 2005, 2007, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2001-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/metag.h b/binutils-2.25/include/elf/metag.h
index 7ea699df..4fd25019 100644
--- a/binutils-2.25/include/elf/metag.h
+++ b/binutils-2.25/include/elf/metag.h
@@ -1,5 +1,5 @@
/* Meta ELF support for BFD.
- Copyright (C) 2013 Free Software Foundation, Inc.
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
Contributed by Imagination Technologies Ltd.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/microblaze.h b/binutils-2.25/include/elf/microblaze.h
index c4d98213..effca20e 100644
--- a/binutils-2.25/include/elf/microblaze.h
+++ b/binutils-2.25/include/elf/microblaze.h
@@ -1,6 +1,6 @@
/* Xilinx MicroBlaze support for BFD.
- Copyright 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2009-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/mips.h b/binutils-2.25/include/elf/mips.h
index 2c5a9a62..2ed6acd2 100644
--- a/binutils-2.25/include/elf/mips.h
+++ b/binutils-2.25/include/elf/mips.h
@@ -1,7 +1,5 @@
/* MIPS ELF support for BFD.
- Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2008, 2009, 2010, 2013
- Free Software Foundation, Inc.
+ Copyright (C) 1993-2014 Free Software Foundation, Inc.
By Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>, from
information in the System V Application Binary Interface, MIPS
@@ -89,7 +87,14 @@ START_RELOC_NUMBERS (elf_mips_reloc_type)
RELOC_NUMBER (R_MIPS_TLS_TPREL_HI16, 49)
RELOC_NUMBER (R_MIPS_TLS_TPREL_LO16, 50)
RELOC_NUMBER (R_MIPS_GLOB_DAT, 51)
- FAKE_RELOC (R_MIPS_max, 52)
+ /* 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)
/* These relocs are used for the mips16. */
FAKE_RELOC (R_MIPS16_min, 100)
RELOC_NUMBER (R_MIPS16_26, 100)
@@ -239,6 +244,12 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
/* -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
@@ -275,6 +286,7 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
#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
@@ -429,6 +441,8 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
/* 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
@@ -594,6 +608,9 @@ extern void bfd_mips_elf32_swap_reginfo_out
/* .MIPS.options section. */
#define PT_MIPS_OPTIONS 0x70000002
+
+/* Records ABI related flags. */
+#define PT_MIPS_ABIFLAGS 0x70000003
/* Processor specific dynamic array tags. */
@@ -1049,6 +1066,58 @@ typedef struct
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
@@ -1089,6 +1158,12 @@ extern void bfd_mips_elf64_swap_reginfo_in
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. */
@@ -1126,6 +1201,56 @@ extern void bfd_mips_elf64_swap_reginfo_out
/* Masks for the info word of an ODK_HWAND/ODK_HWOR descriptor. */
#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. */
+
+/* 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. */
@@ -1158,7 +1283,16 @@ enum
Val_GNU_MIPS_ABI_FP_SOFT = 3,
/* Using -mips32r2 -mfp64. */
- Val_GNU_MIPS_ABI_FP_64 = 4,
+ 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,
/* Values defined for Tag_GNU_MIPS_ABI_MSA. */
diff --git a/binutils-2.25/include/elf/mmix.h b/binutils-2.25/include/elf/mmix.h
index 6d15f7ae..cab9f22b 100644
--- a/binutils-2.25/include/elf/mmix.h
+++ b/binutils-2.25/include/elf/mmix.h
@@ -1,5 +1,5 @@
/* MMIX support for BFD.
- Copyright 2001, 2002, 2003, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2001-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/mn10200.h b/binutils-2.25/include/elf/mn10200.h
index 24972b68..e4f6dcfd 100644
--- a/binutils-2.25/include/elf/mn10200.h
+++ b/binutils-2.25/include/elf/mn10200.h
@@ -1,5 +1,5 @@
/* MN10200 ELF support for BFD.
- Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/mn10300.h b/binutils-2.25/include/elf/mn10300.h
index 529b3897..b06683b5 100644
--- a/binutils-2.25/include/elf/mn10300.h
+++ b/binutils-2.25/include/elf/mn10300.h
@@ -1,5 +1,5 @@
/* MN10300 ELF support for BFD.
- Copyright 1998, 1999, 2000, 2003, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/moxie.h b/binutils-2.25/include/elf/moxie.h
index 0b3eb381..4a7d9f19 100644
--- a/binutils-2.25/include/elf/moxie.h
+++ b/binutils-2.25/include/elf/moxie.h
@@ -1,5 +1,5 @@
/* moxie ELF support for BFD.
- Copyright 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2009-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/msp430.h b/binutils-2.25/include/elf/msp430.h
index ac8e28c3..a09db474 100644
--- a/binutils-2.25/include/elf/msp430.h
+++ b/binutils-2.25/include/elf/msp430.h
@@ -1,5 +1,5 @@
/* MSP430 ELF support for BFD.
- Copyright (C) 2002-2013 Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 Free Software Foundation, Inc.
Contributed by Dmitry Diky <diwil@mail.ru>
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/mt.h b/binutils-2.25/include/elf/mt.h
index 2bc09f42..36b74b12 100644
--- a/binutils-2.25/include/elf/mt.h
+++ b/binutils-2.25/include/elf/mt.h
@@ -1,5 +1,5 @@
/* MS1 ELF support for BFD.
- Copyright (C) 2000, 2005, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/nds32.h b/binutils-2.25/include/elf/nds32.h
new file mode 100644
index 00000000..71aa4aa4
--- /dev/null
+++ b/binutils-2.25/include/elf/nds32.h
@@ -0,0 +1,299 @@
+/* NDS32 ELF support for BFD.
+ Copyright (C) 2012-2014 Free Software Foundation, Inc.
+ Contributed by Andes Technology Corporation.
+
+ This file is part of BFD, the Binary File Descriptor library.
+
+ 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 3 of the License, 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 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. */
+
+#ifndef _ELF_NDS32_H
+#define _ELF_NDS32_H
+
+#include "elf/reloc-macros.h"
+
+/* Relocations. */
+START_RELOC_NUMBERS (elf_nds32_reloc_type)
+ RELOC_NUMBER (R_NDS32_NONE, 0)
+ /* REL relocations. */
+ RELOC_NUMBER (R_NDS32_16, 1)
+ RELOC_NUMBER (R_NDS32_32, 2)
+ RELOC_NUMBER (R_NDS32_20, 3)
+ RELOC_NUMBER (R_NDS32_9_PCREL, 4)
+ RELOC_NUMBER (R_NDS32_15_PCREL, 5)
+ RELOC_NUMBER (R_NDS32_17_PCREL, 6)
+ RELOC_NUMBER (R_NDS32_25_PCREL, 7)
+ RELOC_NUMBER (R_NDS32_HI20, 8)
+ RELOC_NUMBER (R_NDS32_LO12S3, 9)
+ RELOC_NUMBER (R_NDS32_LO12S2, 10)
+ RELOC_NUMBER (R_NDS32_LO12S1, 11)
+ RELOC_NUMBER (R_NDS32_LO12S0, 12)
+ RELOC_NUMBER (R_NDS32_SDA15S3, 13)
+ RELOC_NUMBER (R_NDS32_SDA15S2, 14)
+ RELOC_NUMBER (R_NDS32_SDA15S1, 15)
+ RELOC_NUMBER (R_NDS32_SDA15S0, 16)
+ RELOC_NUMBER (R_NDS32_GNU_VTINHERIT, 17)
+ RELOC_NUMBER (R_NDS32_GNU_VTENTRY, 18)
+
+ /* RELA relocations. */
+ RELOC_NUMBER (R_NDS32_16_RELA, 19)
+ RELOC_NUMBER (R_NDS32_32_RELA, 20)
+ RELOC_NUMBER (R_NDS32_20_RELA, 21)
+ RELOC_NUMBER (R_NDS32_9_PCREL_RELA, 22)
+ RELOC_NUMBER (R_NDS32_15_PCREL_RELA, 23)
+ RELOC_NUMBER (R_NDS32_17_PCREL_RELA, 24)
+ RELOC_NUMBER (R_NDS32_25_PCREL_RELA, 25)
+ RELOC_NUMBER (R_NDS32_HI20_RELA, 26)
+ RELOC_NUMBER (R_NDS32_LO12S3_RELA, 27)
+ RELOC_NUMBER (R_NDS32_LO12S2_RELA, 28)
+ RELOC_NUMBER (R_NDS32_LO12S1_RELA, 29)
+ RELOC_NUMBER (R_NDS32_LO12S0_RELA, 30)
+ RELOC_NUMBER (R_NDS32_SDA15S3_RELA, 31)
+ RELOC_NUMBER (R_NDS32_SDA15S2_RELA, 32)
+ RELOC_NUMBER (R_NDS32_SDA15S1_RELA, 33)
+ RELOC_NUMBER (R_NDS32_SDA15S0_RELA, 34)
+ RELOC_NUMBER (R_NDS32_RELA_GNU_VTINHERIT, 35)
+ RELOC_NUMBER (R_NDS32_RELA_GNU_VTENTRY, 36)
+
+ RELOC_NUMBER (R_NDS32_GOT20, 37)
+ RELOC_NUMBER (R_NDS32_25_PLTREL, 38)
+ RELOC_NUMBER (R_NDS32_COPY, 39)
+ RELOC_NUMBER (R_NDS32_GLOB_DAT, 40)
+ RELOC_NUMBER (R_NDS32_JMP_SLOT, 41)
+ RELOC_NUMBER (R_NDS32_RELATIVE, 42)
+ RELOC_NUMBER (R_NDS32_GOTOFF, 43)
+ RELOC_NUMBER (R_NDS32_GOTPC20, 44)
+ RELOC_NUMBER (R_NDS32_GOT_HI20, 45)
+ RELOC_NUMBER (R_NDS32_GOT_LO12, 46)
+ RELOC_NUMBER (R_NDS32_GOTPC_HI20, 47)
+ RELOC_NUMBER (R_NDS32_GOTPC_LO12, 48)
+ RELOC_NUMBER (R_NDS32_GOTOFF_HI20, 49)
+ RELOC_NUMBER (R_NDS32_GOTOFF_LO12, 50)
+ RELOC_NUMBER (R_NDS32_INSN16, 51)
+ RELOC_NUMBER (R_NDS32_LABEL, 52)
+ RELOC_NUMBER (R_NDS32_LONGCALL1, 53)
+ RELOC_NUMBER (R_NDS32_LONGCALL2, 54)
+ RELOC_NUMBER (R_NDS32_LONGCALL3, 55)
+ RELOC_NUMBER (R_NDS32_LONGJUMP1, 56)
+ RELOC_NUMBER (R_NDS32_LONGJUMP2, 57)
+ RELOC_NUMBER (R_NDS32_LONGJUMP3, 58)
+ RELOC_NUMBER (R_NDS32_LOADSTORE, 59)
+ RELOC_NUMBER (R_NDS32_9_FIXED_RELA, 60)
+ RELOC_NUMBER (R_NDS32_15_FIXED_RELA, 61)
+ RELOC_NUMBER (R_NDS32_17_FIXED_RELA, 62)
+ RELOC_NUMBER (R_NDS32_25_FIXED_RELA, 63)
+ RELOC_NUMBER (R_NDS32_PLTREL_HI20, 64) /* This is obsoleted. */
+ RELOC_NUMBER (R_NDS32_PLTREL_LO12, 65) /* This is obsoleted. */
+ RELOC_NUMBER (R_NDS32_PLT_GOTREL_HI20, 66)
+ RELOC_NUMBER (R_NDS32_PLT_GOTREL_LO12, 67)
+ RELOC_NUMBER (R_NDS32_SDA12S2_DP_RELA, 68)
+ RELOC_NUMBER (R_NDS32_SDA12S2_SP_RELA, 69)
+ RELOC_NUMBER (R_NDS32_LO12S2_DP_RELA, 70)
+ RELOC_NUMBER (R_NDS32_LO12S2_SP_RELA, 71)
+ RELOC_NUMBER (R_NDS32_LO12S0_ORI_RELA, 72)
+ RELOC_NUMBER (R_NDS32_SDA16S3_RELA, 73)
+ RELOC_NUMBER (R_NDS32_SDA17S2_RELA, 74)
+ RELOC_NUMBER (R_NDS32_SDA18S1_RELA, 75)
+ RELOC_NUMBER (R_NDS32_SDA19S0_RELA, 76)
+ RELOC_NUMBER (R_NDS32_DWARF2_OP1_RELA, 77)
+ RELOC_NUMBER (R_NDS32_DWARF2_OP2_RELA, 78)
+ RELOC_NUMBER (R_NDS32_DWARF2_LEB_RELA, 79)
+ RELOC_NUMBER (R_NDS32_UPDATE_TA_RELA, 80) /* This is obsoleted. */
+ RELOC_NUMBER (R_NDS32_9_PLTREL, 81)
+ RELOC_NUMBER (R_NDS32_PLT_GOTREL_LO20, 82)
+ RELOC_NUMBER (R_NDS32_PLT_GOTREL_LO15, 83)
+ RELOC_NUMBER (R_NDS32_PLT_GOTREL_LO19, 84)
+ RELOC_NUMBER (R_NDS32_GOT_LO15, 85)
+ RELOC_NUMBER (R_NDS32_GOT_LO19, 86)
+ RELOC_NUMBER (R_NDS32_GOTOFF_LO15, 87)
+ RELOC_NUMBER (R_NDS32_GOTOFF_LO19, 88)
+ RELOC_NUMBER (R_NDS32_GOT15S2_RELA, 89)
+ RELOC_NUMBER (R_NDS32_GOT17S2_RELA, 90)
+ RELOC_NUMBER (R_NDS32_5_RELA, 91)
+ RELOC_NUMBER (R_NDS32_10_UPCREL_RELA, 92) /* This is obsoleted. */
+ RELOC_NUMBER (R_NDS32_SDA_FP7U2_RELA, 93)
+ RELOC_NUMBER (R_NDS32_WORD_9_PCREL_RELA, 94)
+ RELOC_NUMBER (R_NDS32_25_ABS_RELA, 95)
+ RELOC_NUMBER (R_NDS32_17IFC_PCREL_RELA, 96)
+ RELOC_NUMBER (R_NDS32_10IFCU_PCREL_RELA, 97)
+ RELOC_NUMBER (R_NDS32_TLS_LE_HI20, 98)
+ RELOC_NUMBER (R_NDS32_TLS_LE_LO12, 99)
+ RELOC_NUMBER (R_NDS32_TLS_IE_HI20, 100)
+ RELOC_NUMBER (R_NDS32_TLS_IE_LO12S2, 101)
+ RELOC_NUMBER (R_NDS32_TLS_TPOFF, 102)
+ RELOC_NUMBER (R_NDS32_TLS_LE_20, 103)
+ RELOC_NUMBER (R_NDS32_TLS_LE_15S0, 104)
+ RELOC_NUMBER (R_NDS32_TLS_LE_15S1, 105)
+ RELOC_NUMBER (R_NDS32_TLS_LE_15S2, 106)
+ RELOC_NUMBER (R_NDS32_LONGCALL4, 107)
+ RELOC_NUMBER (R_NDS32_LONGCALL5, 108)
+ RELOC_NUMBER (R_NDS32_LONGCALL6, 109)
+ RELOC_NUMBER (R_NDS32_LONGJUMP4, 110)
+ RELOC_NUMBER (R_NDS32_LONGJUMP5, 111)
+ RELOC_NUMBER (R_NDS32_LONGJUMP6, 112)
+ RELOC_NUMBER (R_NDS32_LONGJUMP7, 113)
+
+ RELOC_NUMBER (R_NDS32_RELAX_ENTRY, 192)
+ RELOC_NUMBER (R_NDS32_GOT_SUFF, 193)
+ RELOC_NUMBER (R_NDS32_GOTOFF_SUFF, 194)
+ RELOC_NUMBER (R_NDS32_PLT_GOT_SUFF, 195)
+ RELOC_NUMBER (R_NDS32_MULCALL_SUFF, 196) /* This is obsoleted. */
+ RELOC_NUMBER (R_NDS32_PTR, 197)
+ RELOC_NUMBER (R_NDS32_PTR_COUNT, 198)
+ RELOC_NUMBER (R_NDS32_PTR_RESOLVED, 199)
+ RELOC_NUMBER (R_NDS32_PLTBLOCK, 200) /* This is obsoleted. */
+ RELOC_NUMBER (R_NDS32_RELAX_REGION_BEGIN, 201)
+ RELOC_NUMBER (R_NDS32_RELAX_REGION_END, 202)
+ RELOC_NUMBER (R_NDS32_MINUEND, 203)
+ RELOC_NUMBER (R_NDS32_SUBTRAHEND, 204)
+ RELOC_NUMBER (R_NDS32_DIFF8, 205)
+ RELOC_NUMBER (R_NDS32_DIFF16, 206)
+ RELOC_NUMBER (R_NDS32_DIFF32, 207)
+ RELOC_NUMBER (R_NDS32_DIFF_ULEB128, 208)
+ RELOC_NUMBER (R_NDS32_DATA, 209)
+ RELOC_NUMBER (R_NDS32_TRAN, 210)
+ RELOC_NUMBER (R_NDS32_TLS_LE_ADD, 211)
+ RELOC_NUMBER (R_NDS32_TLS_LE_LS, 212)
+ RELOC_NUMBER (R_NDS32_EMPTY, 213)
+
+END_RELOC_NUMBERS (R_NDS32_max)
+
+/* Processor specific section indices. These sections do not actually
+ exist. Symbols with a st_shndx field corresponding to one of these
+ values have a special meaning. */
+
+/* Processor specific flags for the ELF header e_flags field.
+
+ 31 28 27 8 7 4 3 0
+ ---------------------------------------------
+ | ARCH | CONFUGURAION FIELD | ABI | ELF_VER |
+ --------------------------------------------- */
+
+/* Architechure definition. */
+
+/* 4-bit (b31-b28) nds32 architecture field.
+ We can have up to 15 architectures; 0000 is for unknown. */
+#define EF_NDS_ARCH 0xF0000000
+#define EF_NDS_ARCH_SHIFT 28
+/* There could be more architectures. For now, only n1 and n1h. */
+#define E_NDS_ARCH_STAR_RESERVED 0x00000000
+#define E_NDS_ARCH_STAR_V1_0 0x10000000
+#define E_NDS_ARCH_STAR_V2_0 0x20000000
+#define E_NDS_ARCH_STAR_V3_0 0x30000000
+#define E_NDS_ARCH_STAR_V3_M 0x40000000
+#define E_NDS_ARCH_STAR_V0_9 0x90000000 /* Obsoleted. */
+/* n1 code. */
+#define E_N1_ARCH E_NDS_ARCH_STAR_V0_9
+/* n1h code. */
+#define E_N1H_ARCH E_NDS_ARCH_STAR_V1_0
+
+
+/* Configuration field definitioans. */
+#define EF_NDS_INST 0x0FFFFF00
+
+/* E_NDS_ARCH_STAR_V1_0 configuration fields.
+
+ E_NDS_ARCH_STAR_V2_0 configuration fields.
+ These are discarded in v2.
+ * E_NDS32_HAS_MFUSR_PC_INST 0x00000100
+ * E_NDS32_HAS_DIV_INST 0x00002000
+ * E_NDS32_HAS_NO_MAC_INST 0x00100000
+ These are added in v2.
+ * E_NDS32_HAS_DIV_DX_INST 0x00002000
+ * E_NDS32_HAS_MAC_DX_INST 0x00100000 */
+
+/* MFUSR rt, PC and correct ISYNC, MSYNC instructions.
+ Old N1213HC has no such instructions. */
+#define E_NDS32_HAS_MFUSR_PC_INST 0x00000100 /* Reclaimed. */
+#define E_NDS32_HAS_EX9_INST 0x00000100 /* v3, ELF 1.4. */
+/* C/C++ performance extension instructions. */
+#define E_NDS32_HAS_EXT_INST 0x00000200
+/* Performance extension set II instructions. */
+#define E_NDS32_HAS_EXT2_INST 0x00000400
+/* Single precision Floating point processor instructions. */
+#define E_NDS32_HAS_FPU_INST 0x00000800
+/* Audio instructions with 32-bit audio dx.lo register. */
+#define E_NDS32_HAS_AUDIO_INST 0x00001000
+/* DIV instructions. */
+#define E_NDS32_HAS_DIV_INST 0x00002000 /* Reclaimed. */
+/* DIV instructions using d0/d1. */
+#define E_NDS32_HAS_DIV_DX_INST 0x00002000 /* v2. */
+/* 16-bit instructions. */
+#define E_NDS32_HAS_16BIT_INST 0x00004000 /* Reclaimed. */
+#define E_NDS32_HAS_IFC_INST 0x00004000 /* v3, ELF 1.4. */
+/* String operation instructions. */
+#define E_NDS32_HAS_STRING_INST 0x00008000
+/* Reduced register file. */
+#define E_NDS32_HAS_REDUCED_REGS 0x00010000
+/* Video instructions. */
+#define E_NDS32_HAS_VIDEO_INST 0x00020000 /* Reclaimed. */
+#define E_NDS32_HAS_SATURATION_INST 0x00020000 /* v3, ELF 1.4. */
+/* Encription instructions. */
+#define E_NDS32_HAS_ENCRIPT_INST 0x00040000
+/* Doulbe Precision Floating point processor instructions. */
+#define E_NDS32_HAS_FPU_DP_INST 0x00080000
+/* No MAC instruction used. */
+#define E_NDS32_HAS_NO_MAC_INST 0x00100000 /* Reclaimed when V2/V3. */
+/* MAC instruction using d0/d1. */
+#define E_NDS32_HAS_MAC_DX_INST 0x00100000 /* v2. */
+/* L2 cache instruction. */
+#define E_NDS32_HAS_L2C_INST 0x00200000
+/* FPU registers configuration when FPU SP/DP presents; 0x00c00000. */
+#define E_NDS32_FPU_REG_CONF_SHIFT 22
+#define E_NDS32_FPU_REG_CONF (0x3 << E_NDS32_FPU_REG_CONF_SHIFT)
+#define E_NDS32_FPU_REG_8SP_4DP 0x0
+#define E_NDS32_FPU_REG_16SP_8DP 0x1
+#define E_NDS32_FPU_REG_32SP_16DP 0x2
+#define E_NDS32_FPU_REG_32SP_32DP 0x3
+/* FPU MAC instruction used. */
+#define E_NDS32_HAS_FPU_MAC_INST 0x01000000
+/* <<<Empty Check>>>. */
+#define E_NDS32_NULL 0x02000000
+/* PIC enabled. */
+#define E_NDS32_HAS_PIC 0x04000000
+/* Use custom section. */
+#define E_NDS32_HAS_CUSTOM_SEC 0x08000000
+
+/* 4-bit for ABI signature, allow up to 16 ABIs
+ 0: for OLD ABI V0, phase out
+ 1: for V1 , starting with V0 toolchain
+ 2: for V2
+ 3: for V2FP (fs0, fs1 as function parameter)
+ 4: for AABI */
+/* Only old N1213HC use V0.
+ New ABI is used due to return register is changed to r0 from r5. */
+#define EF_NDS_ABI 0x000000F0
+#define EF_NDS_ABI_SHIFT 4
+#define E_NDS_ABI_V0 0x00000000
+#define E_NDS_ABI_V1 0x00000010
+#define E_NDS_ABI_V2 0x00000020
+#define E_NDS_ABI_V2FP 0x00000030
+#define E_NDS_ABI_AABI 0x00000040
+#define E_NDS_ABI_V2FP_PLUS 0x00000050
+
+/* This flag signifies the version of Andes ELF.
+ Some more information may exist somewhere which is TBD. */
+#define EF_NDS32_ELF_VERSION 0x0000000F
+#define EF_NDS32_ELF_VERSION_SHIFT 0
+
+/* Andes ELF Version 1.3 and before. */
+#define E_NDS32_ELF_VER_1_2 0x0
+/* Andes ELF Version 1.31. */
+#define E_NDS32_ELF_VER_1_3 0x1
+/* Andes ELF Version 1.4. Change the way we fix .debug_* and .gcc_except_table.
+ Change three bit for EX9, IFC and SAT. */
+#define E_NDS32_ELF_VER_1_4 0x2
+
+#endif
diff --git a/binutils-2.25/include/elf/nios2.h b/binutils-2.25/include/elf/nios2.h
index ff5947bf..7571e464 100644
--- a/binutils-2.25/include/elf/nios2.h
+++ b/binutils-2.25/include/elf/nios2.h
@@ -1,5 +1,5 @@
/* Altera Nios II ELF support for BFD.
- Copyright (C) 2012, 2013 Free Software Foundation, Inc.
+ Copyright (C) 2012-2014 Free Software Foundation, Inc.
Contributed by Nigel Gray (ngray@altera.com).
Contributed by Mentor Graphics, Inc.
@@ -75,7 +75,12 @@ START_RELOC_NUMBERS (elf_nios2_reloc_type)
RELOC_NUMBER (R_NIOS2_JUMP_SLOT, 38)
RELOC_NUMBER (R_NIOS2_RELATIVE, 39)
RELOC_NUMBER (R_NIOS2_GOTOFF, 40)
- RELOC_NUMBER (R_NIOS2_ILLEGAL, 41)
+ 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)
+ RELOC_NUMBER (R_NIOS2_ILLEGAL, 46)
END_RELOC_NUMBERS (R_NIOS2_maxext)
/* Processor-specific section flags. */
diff --git a/binutils-2.25/include/elf/openrisc.h b/binutils-2.25/include/elf/openrisc.h
deleted file mode 100644
index 87969e8b..00000000
--- a/binutils-2.25/include/elf/openrisc.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* OpenRISC ELF support for BFD.
- Copyright 2001, 2010 Free Software Foundation, Inc.
-
- This file is part of BFD, the Binary File Descriptor library.
-
- 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 3 of the License, 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 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. */
-
-#ifndef _ELF_OPENRISC_H
-#define _ELF_OPENRISC_H
-
-#include "elf/reloc-macros.h"
-
-/* Relocations. */
-START_RELOC_NUMBERS (elf_openrisc_reloc_type)
- RELOC_NUMBER (R_OPENRISC_NONE, 0)
- RELOC_NUMBER (R_OPENRISC_INSN_REL_26, 1)
- RELOC_NUMBER (R_OPENRISC_INSN_ABS_26, 2)
- RELOC_NUMBER (R_OPENRISC_LO_16_IN_INSN, 3)
- RELOC_NUMBER (R_OPENRISC_HI_16_IN_INSN, 4)
- RELOC_NUMBER (R_OPENRISC_8, 5)
- RELOC_NUMBER (R_OPENRISC_16, 6)
- RELOC_NUMBER (R_OPENRISC_32, 7)
- RELOC_NUMBER (R_OPENRISC_GNU_VTINHERIT, 8)
- RELOC_NUMBER (R_OPENRISC_GNU_VTENTRY, 9)
-END_RELOC_NUMBERS (R_OPENRISC_max)
-
-#endif /* _ELF_OPENRISC_H */
diff --git a/binutils-2.25/include/elf/or1k.h b/binutils-2.25/include/elf/or1k.h
new file mode 100644
index 00000000..d5e89a01
--- /dev/null
+++ b/binutils-2.25/include/elf/or1k.h
@@ -0,0 +1,65 @@
+/* Or1k ELF support for BFD.
+ Copyright 2001-2014 Free Software Foundation, Inc.
+
+ This file is part of BFD, the Binary File Descriptor library.
+
+ 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 3 of the License, 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, see <http://www.gnu.org/licenses/> */
+
+#ifndef _ELF_OR1K_H
+#define _ELF_OR1K_H
+
+#include "elf/reloc-macros.h"
+
+/* Relocations. */
+START_RELOC_NUMBERS (elf_or1k_reloc_type)
+ RELOC_NUMBER (R_OR1K_NONE, 0)
+ RELOC_NUMBER (R_OR1K_32, 1)
+ RELOC_NUMBER (R_OR1K_16, 2)
+ RELOC_NUMBER (R_OR1K_8, 3)
+ RELOC_NUMBER (R_OR1K_LO_16_IN_INSN, 4)
+ RELOC_NUMBER (R_OR1K_HI_16_IN_INSN, 5)
+ RELOC_NUMBER (R_OR1K_INSN_REL_26, 6)
+ RELOC_NUMBER (R_OR1K_GNU_VTENTRY, 7)
+ RELOC_NUMBER (R_OR1K_GNU_VTINHERIT, 8)
+ RELOC_NUMBER (R_OR1K_32_PCREL, 9)
+ RELOC_NUMBER (R_OR1K_16_PCREL, 10)
+ RELOC_NUMBER (R_OR1K_8_PCREL, 11)
+ RELOC_NUMBER (R_OR1K_GOTPC_HI16, 12)
+ RELOC_NUMBER (R_OR1K_GOTPC_LO16, 13)
+ RELOC_NUMBER (R_OR1K_GOT16, 14)
+ RELOC_NUMBER (R_OR1K_PLT26, 15)
+ RELOC_NUMBER (R_OR1K_GOTOFF_HI16, 16)
+ RELOC_NUMBER (R_OR1K_GOTOFF_LO16, 17)
+ RELOC_NUMBER (R_OR1K_COPY, 18)
+ RELOC_NUMBER (R_OR1K_GLOB_DAT, 19)
+ RELOC_NUMBER (R_OR1K_JMP_SLOT, 20)
+ RELOC_NUMBER (R_OR1K_RELATIVE, 21)
+ RELOC_NUMBER (R_OR1K_TLS_GD_HI16, 22)
+ RELOC_NUMBER (R_OR1K_TLS_GD_LO16, 23)
+ RELOC_NUMBER (R_OR1K_TLS_LDM_HI16, 24)
+ RELOC_NUMBER (R_OR1K_TLS_LDM_LO16, 25)
+ RELOC_NUMBER (R_OR1K_TLS_LDO_HI16, 26)
+ RELOC_NUMBER (R_OR1K_TLS_LDO_LO16, 27)
+ RELOC_NUMBER (R_OR1K_TLS_IE_HI16, 28)
+ RELOC_NUMBER (R_OR1K_TLS_IE_LO16, 29)
+ RELOC_NUMBER (R_OR1K_TLS_LE_HI16, 30)
+ RELOC_NUMBER (R_OR1K_TLS_LE_LO16, 31)
+ RELOC_NUMBER (R_OR1K_TLS_TPOFF, 32)
+ RELOC_NUMBER (R_OR1K_TLS_DTPOFF, 33)
+ RELOC_NUMBER (R_OR1K_TLS_DTPMOD, 34)
+END_RELOC_NUMBERS (R_OR1K_max)
+
+#define EF_OR1K_NODELAY (1UL << 0)
+
+#endif /* _ELF_OR1K_H */
diff --git a/binutils-2.25/include/elf/or32.h b/binutils-2.25/include/elf/or32.h
deleted file mode 100644
index 9f1c2f3f..00000000
--- a/binutils-2.25/include/elf/or32.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* OR1K ELF support for BFD. Derived from ppc.h.
- Copyright (C) 2002, 2010 Free Software Foundation, Inc.
- Contributed by Ivan Guzvinec <ivang@opencores.org>
-
- This file is part of BFD, the Binary File Descriptor library.
-
- 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 3 of the License, 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 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. */
-
-#ifndef _ELF_OR1K_H
-#define _ELF_OR1K_H
-
-#include "elf/reloc-macros.h"
-
-/* Relocations. */
-START_RELOC_NUMBERS (elf_or32_reloc_type)
- RELOC_NUMBER (R_OR32_NONE, 0)
- RELOC_NUMBER (R_OR32_32, 1)
- RELOC_NUMBER (R_OR32_16, 2)
- RELOC_NUMBER (R_OR32_8, 3)
- RELOC_NUMBER (R_OR32_CONST, 4)
- RELOC_NUMBER (R_OR32_CONSTH, 5)
- RELOC_NUMBER (R_OR32_JUMPTARG, 6)
- RELOC_NUMBER (R_OR32_GNU_VTENTRY, 7)
- RELOC_NUMBER (R_OR32_GNU_VTINHERIT, 8)
-END_RELOC_NUMBERS (R_OR32_max)
-
-/* Four bit OR32 machine type field. */
-#define EF_OR32_MACH 0x0000000f
-
-/* Various CPU types. */
-#define E_OR32_MACH_BASE 0x00000000
-#define E_OR32_MACH_UNUSED1 0x00000001
-#define E_OR32_MACH_UNUSED2 0x00000002
-#define E_OR32_MACH_UNUSED4 0x00000003
-
-/* Processor specific section headers, sh_type field */
-#define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \
- entries in this section \
- based on the address \
- specified in the associated \
- symbol table entry. */
-
-#endif /* _ELF_OR1K_H */
diff --git a/binutils-2.25/include/elf/pj.h b/binutils-2.25/include/elf/pj.h
index afd19e8d..f99eff32 100644
--- a/binutils-2.25/include/elf/pj.h
+++ b/binutils-2.25/include/elf/pj.h
@@ -1,5 +1,5 @@
/* picoJava ELF support for BFD.
- Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/ppc.h b/binutils-2.25/include/elf/ppc.h
index f80a1e8a..73b12938 100644
--- a/binutils-2.25/include/elf/ppc.h
+++ b/binutils-2.25/include/elf/ppc.h
@@ -1,6 +1,5 @@
/* PPC ELF support for BFD.
- Copyright 1995, 1996, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2008,
- 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1995-2014 Free Software Foundation, Inc.
By Michael Meissner, Cygnus Support, <meissner@cygnus.com>,
from information in the System V Application Binary Interface,
@@ -176,7 +175,8 @@ END_RELOC_NUMBERS (R_PPC_max)
#define DT_PPC_GOT (DT_LOPROC)
/* Specify that tls descriptors should be optimized. */
-#define DT_PPC_TLSOPT (DT_LOPROC + 1)
+#define DT_PPC_OPT (DT_LOPROC + 1)
+#define PPC_OPT_TLS 1
/* Processor specific flags for the ELF header e_flags field. */
diff --git a/binutils-2.25/include/elf/ppc64.h b/binutils-2.25/include/elf/ppc64.h
index f1c80f18..013b52c7 100644
--- a/binutils-2.25/include/elf/ppc64.h
+++ b/binutils-2.25/include/elf/ppc64.h
@@ -1,5 +1,5 @@
/* PPC64 ELF support for BFD.
- Copyright 2003, 2005, 2009, 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 2003-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -141,6 +141,18 @@ START_RELOC_NUMBERS (elf_ppc64_reloc_type)
RELOC_NUMBER (R_PPC64_TLSLD, 108)
RELOC_NUMBER (R_PPC64_TOCSAVE, 109)
+/* Added when HA and HI relocs were changed to report overflows. */
+ RELOC_NUMBER (R_PPC64_ADDR16_HIGH, 110)
+ RELOC_NUMBER (R_PPC64_ADDR16_HIGHA, 111)
+ RELOC_NUMBER (R_PPC64_TPREL16_HIGH, 112)
+ RELOC_NUMBER (R_PPC64_TPREL16_HIGHA, 113)
+ 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)
+
#ifndef RELOC_MACROS_GEN_FUNC
/* Fake relocation only used internally by ld. */
RELOC_NUMBER (R_PPC64_LO_DS_OPT, 128)
@@ -161,8 +173,63 @@ START_RELOC_NUMBERS (elf_ppc64_reloc_type)
END_RELOC_NUMBERS (R_PPC64_max)
-#define IS_PPC64_TLS_RELOC(R) \
- ((R) >= R_PPC64_TLS && (R) <= R_PPC64_DTPREL16_HIGHESTA)
+#define IS_PPC64_TLS_RELOC(R) \
+ (((R) >= R_PPC64_TLS && (R) <= R_PPC64_DTPREL16_HIGHESTA) \
+ || ((R) >= R_PPC64_TPREL16_HIGH && (R) <= R_PPC64_DTPREL16_HIGHA))
+
+
+/* e_flags bits specifying ABI.
+ 1 for original function descriptor using ABI,
+ 2 for revised ABI without function descriptors,
+ 0 for unspecified or not using any features affected by the differences. */
+#define EF_PPC64_ABI 3
+
+/* The ELFv2 ABI uses three bits in the symbol st_other field of a
+ function definition to specify the number of instructions between a
+ function's global entry point and local entry point.
+ The global entry point is used when it is necessary to set up the
+ toc pointer (r2) for the function. Callers must enter the global
+ entry point with r12 set to the global entry point address. On
+ return from the function, r2 may have a different value to that
+ which it had on entry.
+ The local entry point is used when r2 is known to already be valid
+ for the function. There is no requirement on r12 when using the
+ local entry point, and on return r2 will contain the same value as
+ at entry.
+ A value of zero in these bits means that the function has a single
+ entry point with no requirement on r12 or r2, and that on return r2
+ will contain the same value as at entry.
+ Values of one and seven are reserved. */
+#define STO_PPC64_LOCAL_BIT 5
+#define STO_PPC64_LOCAL_MASK (7 << STO_PPC64_LOCAL_BIT)
+
+// 3 bit other field to bytes.
+static inline unsigned int
+ppc64_decode_local_entry(unsigned int other)
+{
+ return ((1 << other) >> 2) << 2;
+}
+
+// bytes to field value.
+static inline unsigned int
+ppc64_encode_local_entry(unsigned int val)
+{
+ return (val >= 4 * 4
+ ? (val >= 8 * 4
+ ? (val >= 16 * 4 ? 6 : 5)
+ : 4)
+ : (val >= 2 * 4
+ ? 3
+ : (val >= 1 * 4 ? 2 : 0)));
+}
+
+/* st_other to number of bytes. */
+#define PPC64_LOCAL_ENTRY_OFFSET(other) \
+ ppc64_decode_local_entry (((other) & STO_PPC64_LOCAL_MASK) \
+ >> STO_PPC64_LOCAL_BIT)
+/* number of bytes to st_other. */
+#define PPC64_SET_LOCAL_ENTRY_OFFSET(val) \
+ ppc64_encode_local_entry (val) << STO_PPC64_LOCAL_BIT
/* Specify the start of the .glink section. */
#define DT_PPC64_GLINK DT_LOPROC
@@ -171,7 +238,9 @@ END_RELOC_NUMBERS (R_PPC64_max)
#define DT_PPC64_OPD (DT_LOPROC + 1)
#define DT_PPC64_OPDSZ (DT_LOPROC + 2)
-/* Specify that tls descriptors should be optimized. */
-#define DT_PPC64_TLSOPT (DT_LOPROC + 3)
+/* Specify whether various optimisations are possible. */
+#define DT_PPC64_OPT (DT_LOPROC + 3)
+#define PPC64_OPT_TLS 1
+#define PPC64_OPT_MULTI_TOC 2
#endif /* _ELF_PPC64_H */
diff --git a/binutils-2.25/include/elf/reloc-macros.h b/binutils-2.25/include/elf/reloc-macros.h
index 92fc9c14..29ccdbd1 100644
--- a/binutils-2.25/include/elf/reloc-macros.h
+++ b/binutils-2.25/include/elf/reloc-macros.h
@@ -1,5 +1,5 @@
/* Generic relocation support for BFD.
- Copyright 1998, 1999, 2000, 2003, 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/rl78.h b/binutils-2.25/include/elf/rl78.h
index b281d3af..1a526fa6 100644
--- a/binutils-2.25/include/elf/rl78.h
+++ b/binutils-2.25/include/elf/rl78.h
@@ -1,5 +1,5 @@
/* RL78 ELF support for BFD.
- Copyright (C) 2008-2013 Free Software Foundation, Inc.
+ Copyright (C) 2008-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -109,6 +109,7 @@ END_RELOC_NUMBERS (R_RL78_max)
#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. */
diff --git a/binutils-2.25/include/elf/rx.h b/binutils-2.25/include/elf/rx.h
index 83980853..2ca0cbbf 100644
--- a/binutils-2.25/include/elf/rx.h
+++ b/binutils-2.25/include/elf/rx.h
@@ -1,5 +1,5 @@
/* RX ELF support for BFD.
- Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2008-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/s390.h b/binutils-2.25/include/elf/s390.h
index 9128f868..02e1db2e 100644
--- a/binutils-2.25/include/elf/s390.h
+++ b/binutils-2.25/include/elf/s390.h
@@ -1,5 +1,5 @@
/* 390 ELF support for BFD.
- Copyright 2000, 2001, 2003, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
Contributed by Carl B. Pedersen and Martin Schwidefsky.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/score.h b/binutils-2.25/include/elf/score.h
index 8d9c026b..7b935aaf 100644
--- a/binutils-2.25/include/elf/score.h
+++ b/binutils-2.25/include/elf/score.h
@@ -1,5 +1,5 @@
/* Score ELF support for BFD.
- Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2006-2014 Free Software Foundation, Inc.
Contributed by
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
diff --git a/binutils-2.25/include/elf/sh.h b/binutils-2.25/include/elf/sh.h
index c2bd50d2..e70fddd4 100644
--- a/binutils-2.25/include/elf/sh.h
+++ b/binutils-2.25/include/elf/sh.h
@@ -1,6 +1,5 @@
/* SH ELF support for BFD.
- Copyright 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/sparc.h b/binutils-2.25/include/elf/sparc.h
index d182f4d7..d41ba35b 100644
--- a/binutils-2.25/include/elf/sparc.h
+++ b/binutils-2.25/include/elf/sparc.h
@@ -1,7 +1,5 @@
/* SPARC ELF support for BFD.
- Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2008, 2010,
- 2011
- Free Software Foundation, Inc.
+ Copyright (C) 1996-2014 Free Software Foundation, Inc.
By Doug Evans, Cygnus Support, <dje@cygnus.com>.
This file is part of BFD, the Binary File Descriptor library.
@@ -192,9 +190,19 @@ enum
{
/* 0-3 are generic. */
Tag_GNU_Sparc_HWCAPS = 4,
+ Tag_GNU_Sparc_HWCAPS2 = 8
};
-/* These values match the AV_SPARC_* hwcap bits defined under Solaris. */
+/* 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. */
+
#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 */
@@ -228,4 +236,17 @@ enum
#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 /* VIS3 present on multiple chips */
+#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 */
diff --git a/binutils-2.25/include/elf/spu.h b/binutils-2.25/include/elf/spu.h
index 0618ec8f..66320718 100644
--- a/binutils-2.25/include/elf/spu.h
+++ b/binutils-2.25/include/elf/spu.h
@@ -1,6 +1,6 @@
/* SPU ELF support for BFD.
- Copyright 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2006-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/tic6x-attrs.h b/binutils-2.25/include/elf/tic6x-attrs.h
index 21ce1e4f..0e796c67 100644
--- a/binutils-2.25/include/elf/tic6x-attrs.h
+++ b/binutils-2.25/include/elf/tic6x-attrs.h
@@ -1,6 +1,5 @@
/* TI C6X ELF attributes.
- Copyright 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2010-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/tic6x.h b/binutils-2.25/include/elf/tic6x.h
index e686cc3a..ec825d56 100644
--- a/binutils-2.25/include/elf/tic6x.h
+++ b/binutils-2.25/include/elf/tic6x.h
@@ -1,6 +1,5 @@
/* TI C6X ELF support for BFD.
- Copyright 2010, 2011
- Free Software Foundation, Inc.
+ Copyright (C) 2010-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/tilegx.h b/binutils-2.25/include/elf/tilegx.h
index e838b809..835b72f7 100644
--- a/binutils-2.25/include/elf/tilegx.h
+++ b/binutils-2.25/include/elf/tilegx.h
@@ -1,5 +1,5 @@
/* TILE-Gx ELF support for BFD.
- Copyright 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/tilepro.h b/binutils-2.25/include/elf/tilepro.h
index 0079a2fe..277ccba4 100644
--- a/binutils-2.25/include/elf/tilepro.h
+++ b/binutils-2.25/include/elf/tilepro.h
@@ -1,5 +1,5 @@
/* TILEPro ELF support for BFD.
- Copyright 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/v850.h b/binutils-2.25/include/elf/v850.h
index 5a088202..fcd6cd32 100644
--- a/binutils-2.25/include/elf/v850.h
+++ b/binutils-2.25/include/elf/v850.h
@@ -1,5 +1,5 @@
/* V850 ELF support for BFD.
- Copyright 1997-2013 Free Software Foundation, Inc.
+ Copyright (C) 1997-2014 Free Software Foundation, Inc.
Created by Michael Meissner, Cygnus Support <meissner@cygnus.com>
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/vax.h b/binutils-2.25/include/elf/vax.h
index e44c48e7..5499b17e 100644
--- a/binutils-2.25/include/elf/vax.h
+++ b/binutils-2.25/include/elf/vax.h
@@ -1,5 +1,5 @@
/* VAX ELF support for BFD.
- Copyright (C) 2002, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 Free Software Foundation, Inc.
Contributed by Matt Thomas <matt@3am-software.com>.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/vxworks.h b/binutils-2.25/include/elf/vxworks.h
index f25f0129..d3a351a7 100644
--- a/binutils-2.25/include/elf/vxworks.h
+++ b/binutils-2.25/include/elf/vxworks.h
@@ -1,6 +1,5 @@
/* VxWorks ELF support for BFD.
- Copyright 2007, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2007-2014 Free Software Foundation, Inc.
Contributed by Nathan Sidwell <nathan@codesourcery.com>
diff --git a/binutils-2.25/include/elf/x86-64.h b/binutils-2.25/include/elf/x86-64.h
index 0ce92cd5..d0dda478 100644
--- a/binutils-2.25/include/elf/x86-64.h
+++ b/binutils-2.25/include/elf/x86-64.h
@@ -1,6 +1,5 @@
/* x86_64 ELF support for BFD.
- Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
Contributed by Jan Hubicka <jh@suse.cz>
This file is part of BFD, the Binary File Descriptor library.
@@ -74,6 +73,10 @@ START_RELOC_NUMBERS (elf_x86_64_reloc_type)
RELOC_NUMBER (R_X86_64_TLSDESC, 36) /* 2x64-bit TLS descriptor. */
RELOC_NUMBER (R_X86_64_IRELATIVE, 37) /* Adjust indirectly by program base */
RELOC_NUMBER (R_X86_64_RELATIVE64, 38) /* 64bit adjust by program base */
+ RELOC_NUMBER (R_X86_64_PC32_BND, 39) /* PC relative 32 bit
+ signed with BND prefix */
+ RELOC_NUMBER (R_X86_64_PLT32_BND, 40) /* 32 bit PLT address with
+ BND prefix */
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)
diff --git a/binutils-2.25/include/elf/xc16x.h b/binutils-2.25/include/elf/xc16x.h
index b46d9035..15808299 100644
--- a/binutils-2.25/include/elf/xc16x.h
+++ b/binutils-2.25/include/elf/xc16x.h
@@ -1,5 +1,5 @@
/* Infineon XC16X ELF support for BFD.
- Copyright 2006, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2006-2014 Free Software Foundation, Inc.
Contributed by KPIT Cummins Infosystems
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/xgate.h b/binutils-2.25/include/elf/xgate.h
index 33286a8d..27cd249d 100644
--- a/binutils-2.25/include/elf/xgate.h
+++ b/binutils-2.25/include/elf/xgate.h
@@ -1,5 +1,5 @@
/* XGATE ELF support for BFD.
- Copyright 2010, 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2010-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/xstormy16.h b/binutils-2.25/include/elf/xstormy16.h
index 0ae0def8..ff702ded 100644
--- a/binutils-2.25/include/elf/xstormy16.h
+++ b/binutils-2.25/include/elf/xstormy16.h
@@ -1,5 +1,5 @@
/* XSTORMY16 ELF support for BFD.
- Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2001-2014 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/binutils-2.25/include/elf/xtensa.h b/binutils-2.25/include/elf/xtensa.h
index 0d35f7ab..2b9b6dd3 100644
--- a/binutils-2.25/include/elf/xtensa.h
+++ b/binutils-2.25/include/elf/xtensa.h
@@ -1,5 +1,5 @@
/* Xtensa ELF support for BFD.
- Copyright 2003, 2004, 2007, 2008, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2003-2014 Free Software Foundation, Inc.
Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica.
This file is part of BFD, the Binary File Descriptor library.