import new gdb
This commit is contained in:
parent
73ef0e67c2
commit
968cf8f21f
|
@ -1,3 +1,18 @@
|
|||
2014-08-19 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* plugins.m4 (AC_PLUGINS): If plugins are enabled, add -ldl to
|
||||
LIBS via AC_SEARCH_LIBS.
|
||||
|
||||
2014-08-14 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* plugins.m4: Test for dlfcn.h or windows.h here to set default
|
||||
for --enable-plugins. Report error if someone tries to enable
|
||||
plugins on a host we don't support.
|
||||
|
||||
2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
|
||||
|
||||
* mt-nios2-elf: New file.
|
||||
|
||||
2013-12-07 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* acinclude.m4: Remove +x file mode.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# We build library code with -mno-gpopt so that it can be linked with
|
||||
# larger executables with small-data sections that exceed the 16-bit
|
||||
# offset range for GP-relative addressing.
|
||||
CFLAGS_FOR_TARGET += -mno-gpopt
|
||||
CXXFLAGS_FOR_TARGET += -mno-gpopt
|
|
@ -1,11 +1,21 @@
|
|||
AC_DEFUN([AC_PLUGINS],
|
||||
[
|
||||
AC_ARG_ENABLE([plugins],
|
||||
AS_HELP_STRING([--enable-plugins], [Enable support for plugins (defaults no)]),
|
||||
[case "${enableval}" in
|
||||
yes | "") plugins=yes ;;
|
||||
no) plugins=no ;;
|
||||
*) plugins=yes ;;
|
||||
esac],
|
||||
[plugins=no])
|
||||
maybe_plugins=no
|
||||
AC_CHECK_HEADERS([dlfcn.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
|
||||
AC_CHECK_HEADERS([windows.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
|
||||
|
||||
AC_ARG_ENABLE([plugins],
|
||||
AS_HELP_STRING([--enable-plugins], [Enable support for plugins]),
|
||||
[case "${enableval}" in
|
||||
no) plugins=no ;;
|
||||
*) plugins=yes
|
||||
if test "$maybe_plugins" != "yes" ; then
|
||||
AC_MSG_ERROR([Building with plugin support requires a host that supports dlopen.])
|
||||
fi ;;
|
||||
esac],
|
||||
[plugins=$maybe_plugins]
|
||||
)
|
||||
if test "$plugins" = "yes"; then
|
||||
AC_SEARCH_LIBS([dlopen], [dl])
|
||||
fi
|
||||
])
|
||||
|
|
|
@ -1,3 +1,33 @@
|
|||
2014-07-20 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
|
||||
|
||||
* or1korbis.cpu (l-msync, l-psync, l-csync): New instructions.
|
||||
|
||||
2014-06-12 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* or1k.opc: Whitespace fixes.
|
||||
|
||||
2014-05-08 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
|
||||
|
||||
* or1korbis.cpu (h-atomic-reserve): New hardware.
|
||||
(h-atomic-address): Likewise.
|
||||
(insn-opcode): Add opcodes for LWA and SWA.
|
||||
(atomic-reserve): New operand.
|
||||
(atomic-address): Likewise.
|
||||
(l-lwa, l-swa): New instructions.
|
||||
(l-lbs): Fix typo in comment.
|
||||
(store-insn): Clear atomic reserve on store to atomic-address.
|
||||
Fix register names in fmt field.
|
||||
|
||||
2014-04-22 Christian Svensson <blue@cmd.nu>
|
||||
|
||||
* openrisc.cpu: Delete.
|
||||
* openrisc.opc: Delete.
|
||||
* or1k.cpu: New file.
|
||||
* or1k.opc: New file.
|
||||
* or1kcommon.cpu: New file.
|
||||
* or1korbis.cpu: New file.
|
||||
* or1korfpx.cpu: New file.
|
||||
|
||||
2013-12-07 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* epiphany.opc: Remove +x file mode.
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
; OpenRISC 1000 architecture. -*- Scheme -*-
|
||||
; Copyright 2000-2014 Free Software Foundation, Inc.
|
||||
; Contributed for OR32 by Johan Rydberg, jrydberg@opencores.org
|
||||
; Modified by Julius Baxter, juliusbaxter@gmail.com
|
||||
; Modified by Peter Gavin, pgavin@gmail.com
|
||||
;
|
||||
; 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/>
|
||||
|
||||
(include "simplify.inc")
|
||||
|
||||
; The OpenRISC family is a set of RISC microprocessor architectures with an
|
||||
; emphasis on scalability and is targetted at embedded use.
|
||||
; The CPU RTL development is a collaborative open source effort.
|
||||
; http://opencores.org/or1k
|
||||
; http://openrisc.net
|
||||
|
||||
(define-arch
|
||||
(name or1k)
|
||||
(comment "OpenRISC 1000")
|
||||
(default-alignment aligned)
|
||||
(insn-lsb0? #t)
|
||||
(machs or32 or32nd or64 or64nd)
|
||||
(isas openrisc)
|
||||
)
|
||||
|
||||
; Instruction set parameters.
|
||||
(define-isa
|
||||
; Name of the ISA.
|
||||
(name openrisc)
|
||||
; Base insturction length. The insns are always 32 bits wide.
|
||||
(base-insn-bitsize 32)
|
||||
)
|
||||
|
||||
(define-pmacro OR32-MACHS or32,or32nd)
|
||||
(define-pmacro OR64-MACHS or64,or64nd)
|
||||
(define-pmacro ORBIS-MACHS or32,or32nd,or64,or64nd)
|
||||
(define-pmacro ORFPX-MACHS or32,or32nd,or64,or64nd)
|
||||
(define-pmacro ORFPX32-MACHS or32,or32nd,or64,or64nd)
|
||||
(define-pmacro ORFPX64-MACHS or64,or64nd)
|
||||
|
||||
(define-attr
|
||||
(for model)
|
||||
(type boolean)
|
||||
(name NO-DELAY-SLOT)
|
||||
(comment "does not have delay slots")
|
||||
)
|
||||
|
||||
(if (keep-mach? (or32 or32nd))
|
||||
(begin
|
||||
(define-cpu
|
||||
(name or1k32bf)
|
||||
(comment "OpenRISC 1000 32-bit CPU family")
|
||||
(insn-endian big)
|
||||
(data-endian big)
|
||||
(word-bitsize 32)
|
||||
(file-transform "")
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name or32)
|
||||
(comment "Generic OpenRISC 1000 32-bit CPU")
|
||||
(cpu or1k32bf)
|
||||
(bfd-name "or1k")
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name or32nd)
|
||||
(comment "Generic OpenRISC 1000 32-bit CPU")
|
||||
(cpu or1k32bf)
|
||||
(bfd-name "or1knd")
|
||||
)
|
||||
|
||||
; OpenRISC 1200 - 32-bit or1k CPU implementation
|
||||
(define-model
|
||||
(name or1200) (comment "OpenRISC 1200 model")
|
||||
(attrs)
|
||||
(mach or32)
|
||||
(unit u-exec "Execution Unit" () 1 1 () () () ())
|
||||
)
|
||||
|
||||
; OpenRISC 1200 - 32-bit or1k CPU implementation
|
||||
(define-model
|
||||
(name or1200nd) (comment "OpenRISC 1200 model")
|
||||
(attrs NO-DELAY-SLOT)
|
||||
(mach or32nd)
|
||||
(unit u-exec "Execution Unit" () 1 1 () () () ())
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(if (keep-mach? (or64 or64nd))
|
||||
(begin
|
||||
(define-cpu
|
||||
(name or1k64bf)
|
||||
(comment "OpenRISC 1000 64-bit CPU family")
|
||||
(insn-endian big)
|
||||
(data-endian big)
|
||||
(word-bitsize 64)
|
||||
(file-transform "64")
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name or64)
|
||||
(comment "Generic OpenRISC 1000 64-bit CPU")
|
||||
(cpu or1k64bf)
|
||||
(bfd-name "or1k64")
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name or64nd)
|
||||
(comment "Generic OpenRISC 1000 ND 64-bit CPU")
|
||||
(cpu or1k64bf)
|
||||
(bfd-name "or1k64nd")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(include "or1kcommon.cpu")
|
||||
(include "or1korbis.cpu")
|
||||
(include "or1korfpx.cpu")
|
|
@ -0,0 +1,360 @@
|
|||
; OpenRISC 1000 32-bit CPU hardware description. -*- Scheme -*-
|
||||
; Copyright 2000-2014 Free Software Foundation, Inc.
|
||||
; Contributed for OR32 by Johan Rydberg, jrydberg@opencores.org
|
||||
; Modified by Julius Baxter, juliusbaxter@gmail.com
|
||||
;
|
||||
; 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/>
|
||||
|
||||
; Hardware pieces.
|
||||
; These entries list the elements of the raw hardware.
|
||||
; They're also used to provide tables and other elements of the assembly
|
||||
; language.
|
||||
|
||||
(define-hardware
|
||||
(name h-pc)
|
||||
(comment "program counter")
|
||||
(attrs PC (MACH ORBIS-MACHS))
|
||||
(type pc UWI)
|
||||
)
|
||||
|
||||
(define-pmacro REG-INDICES
|
||||
((r0 0)
|
||||
(r1 1)
|
||||
(r2 2)
|
||||
(r3 3)
|
||||
(r4 4)
|
||||
(r5 5)
|
||||
(r6 6)
|
||||
(r7 7)
|
||||
(r8 8)
|
||||
(r9 9)
|
||||
(r10 10)
|
||||
(r11 11)
|
||||
(r12 12)
|
||||
(r13 13)
|
||||
(r14 14)
|
||||
(r15 15)
|
||||
(r16 16)
|
||||
(r17 17)
|
||||
(r18 18)
|
||||
(r19 19)
|
||||
(r20 20)
|
||||
(r21 21)
|
||||
(r22 22)
|
||||
(r23 23)
|
||||
(r24 24)
|
||||
(r25 25)
|
||||
(r26 26)
|
||||
(r27 27)
|
||||
(r28 28)
|
||||
(r29 29)
|
||||
(r30 30)
|
||||
(r31 31)
|
||||
(lr 9)
|
||||
(sp 1)
|
||||
(fp 2))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-fsr)
|
||||
(comment "floating point registers (single, virtual)")
|
||||
(attrs VIRTUAL (MACH ORFPX32-MACHS))
|
||||
(type register SF (32))
|
||||
(indices keyword "" REG-INDICES)
|
||||
(get (index) (subword SF (trunc SI (reg h-gpr index)) 0))
|
||||
(set (index newval) (set UWI (reg h-gpr index) (zext UWI (subword SI newval 0))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-fdr) (comment "floating point registers (double, virtual)")
|
||||
(attrs VIRTUAL (MACH ORFPX64-MACHS))
|
||||
(type register DF (32))
|
||||
(indices keyword "" REG-INDICES)
|
||||
(get (index) (subword DF (trunc DI (reg h-gpr index)) 0))
|
||||
(set (index newval) (set UDI (reg h-gpr index) (zext UDI (subword DI newval 0))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-spr) (comment "special purpose registers")
|
||||
(attrs VIRTUAL (MACH ORBIS-MACHS))
|
||||
(type register UWI (#x20000))
|
||||
(get (index) (c-call UWI "@cpu@_h_spr_get_raw" index))
|
||||
(set (index newval) (c-call VOID "@cpu@_h_spr_set_raw" index newval))
|
||||
)
|
||||
|
||||
(define-pmacro spr-shift 11)
|
||||
(define-pmacro (spr-address spr-group spr-index)
|
||||
(or (sll UWI (enum UWI (.sym "SPR-GROUP-" spr-group)) spr-shift)
|
||||
(enum UWI (.sym "SPR-INDEX-" spr-group "-" spr-index))))
|
||||
|
||||
(define-hardware
|
||||
(name h-gpr) (comment "general registers")
|
||||
(attrs (MACH ORBIS-MACHS))
|
||||
(type register UWI (32))
|
||||
(indices keyword "" REG-INDICES)
|
||||
(get (index) (reg UWI h-spr (add index (spr-address SYS GPR0))))
|
||||
(set (index newval) (set UWI (reg UWI h-spr (add index (spr-address SYS GPR0))) newval))
|
||||
)
|
||||
|
||||
(define-normal-enum
|
||||
except-number
|
||||
"Exception numbers"
|
||||
()
|
||||
EXCEPT-
|
||||
(("NONE" #x00)
|
||||
("RESET" #x01)
|
||||
("BUSERR" #x02)
|
||||
("DPF" #x03)
|
||||
("IPF" #x04)
|
||||
("TICK" #x05)
|
||||
("ALIGN" #x06)
|
||||
("ILLEGAL" #x07)
|
||||
("INT" #x08)
|
||||
("DTLBMISS" #x09)
|
||||
("ITLBMISS" #x0a)
|
||||
("RANGE" #x0b)
|
||||
("SYSCALL" #x0c)
|
||||
("FPE" #x0d)
|
||||
("TRAP" #x0e)
|
||||
)
|
||||
)
|
||||
|
||||
(define-pmacro (raise-exception exnum)
|
||||
(c-call VOID "@cpu@_exception" pc exnum))
|
||||
|
||||
(define-normal-enum
|
||||
spr-groups
|
||||
"special purpose register groups"
|
||||
()
|
||||
SPR-GROUP-
|
||||
(("SYS" #x0)
|
||||
("DMMU" #x1)
|
||||
("IMMU" #x2)
|
||||
("DCACHE" #x3)
|
||||
("ICACHE" #x4)
|
||||
("MAC" #x5)
|
||||
("DEBUG" #x6)
|
||||
("PERF" #x7)
|
||||
("POWER" #x8)
|
||||
("PIC" #x9)
|
||||
("TICK" #xa)
|
||||
("FPU" #xb)
|
||||
)
|
||||
)
|
||||
|
||||
(define-pmacro (spr-reg-info)
|
||||
(.splice
|
||||
(SYS VR #x000 "version register")
|
||||
(SYS UPR #x001 "unit present register")
|
||||
(SYS CPUCFGR #x002 "cpu configuration register")
|
||||
(SYS DMMUCFGR #x003 "Data MMU configuration register")
|
||||
(SYS IMMUCFGR #x004 "Insn MMU configuration register")
|
||||
(SYS DCCFGR #x005 "Data cache configuration register")
|
||||
(SYS ICCFGR #x006 "Insn cache configuration register")
|
||||
(SYS DCFGR #x007 "Debug configuration register")
|
||||
(SYS PCCFGR #x008 "Performance counters configuration register")
|
||||
(SYS NPC #x010 "Next program counter")
|
||||
(SYS SR #x011 "Supervision Regsiter")
|
||||
(SYS PPC #x012 "Previous program counter")
|
||||
(SYS FPCSR #x014 "Floating point control status register")
|
||||
(.unsplice
|
||||
(.map (.pmacro (n) (.splice SYS (.sym "EPCR" n) (.add n #x20) (.str "Exception PC register " n)))
|
||||
(.iota #x10)))
|
||||
(.unsplice
|
||||
(.map (.pmacro (n) (.splice SYS (.sym "EEAR" n) (.add n #x30) (.str "Exception effective address register " n)))
|
||||
(.iota #x10)))
|
||||
(.unsplice
|
||||
(.map (.pmacro (n) (.splice SYS (.sym "ESR" n) (.add n #x40) (.str "Exception supervision register " n)))
|
||||
(.iota #x10)))
|
||||
(.unsplice
|
||||
(.map (.pmacro (n) (.splice SYS (.sym "GPR" n) (.add n #x400) (.str "General purpose register " n)))
|
||||
(.iota #x200)))
|
||||
|
||||
(MAC MACLO #x001 "Multiply and accumulate result (low)")
|
||||
(MAC MACHI #x002 "Multiply and accumulate result (high)")
|
||||
(TICK TTMR #x000 "Tick timer mode register")
|
||||
)
|
||||
)
|
||||
|
||||
(define-normal-enum
|
||||
spr-reg-indices
|
||||
"special purpose register indicies"
|
||||
()
|
||||
SPR-INDEX-
|
||||
(.map (.pmacro (args)
|
||||
(.apply (.pmacro (group index n comment)
|
||||
((.sym group "-" index) n))
|
||||
args)
|
||||
)
|
||||
(spr-reg-info)
|
||||
)
|
||||
)
|
||||
|
||||
(define-pmacro (define-h-spr-reg spr-group spr-index n spr-comment)
|
||||
(define-hardware
|
||||
(name (.sym "h-" (.downcase spr-group) "-" (.downcase spr-index)))
|
||||
(comment spr-comment)
|
||||
(attrs VIRTUAL (MACH ORBIS-MACHS))
|
||||
(type register UWI)
|
||||
(get () (reg UWI h-spr (spr-address spr-group spr-index)))
|
||||
(set (newval) (set (reg UWI h-spr (spr-address spr-group spr-index)) newval))
|
||||
)
|
||||
)
|
||||
(.splice begin (.unsplice (.map (.pmacro (args) (.apply define-h-spr-reg args)) (spr-reg-info))))
|
||||
|
||||
(define-pmacro (spr-field-info)
|
||||
((SYS VR REV 5 0 "revision field")
|
||||
(SYS VR CFG 23 16 "configuration template field")
|
||||
(SYS VR VER 31 24 "version field")
|
||||
(SYS UPR UP 0 0 "UPR present bit")
|
||||
(SYS UPR DCP 1 1 "data cache present bit")
|
||||
(SYS UPR ICP 2 2 "insn cache present bit")
|
||||
(SYS UPR DMP 3 3 "data MMU present bit")
|
||||
(SYS UPR MP 4 4 "MAC unit present bit")
|
||||
(SYS UPR IMP 5 5 "insn MMU present bit")
|
||||
(SYS UPR DUP 6 6 "debug unit present bit")
|
||||
(SYS UPR PCUP 7 7 "performance counters unit present bit")
|
||||
(SYS UPR PICP 8 8 "programmable interrupt controller present bit")
|
||||
(SYS UPR PMP 9 9 "power management present bit")
|
||||
(SYS UPR TTP 10 10 "tick timer present bit")
|
||||
(SYS UPR CUP 31 24 "custom units present field")
|
||||
(SYS CPUCFGR NSGR 3 0 "number of shadow GPR files field")
|
||||
(SYS CPUCFGR CGF 4 4 "custom GPR file bit")
|
||||
(SYS CPUCFGR OB32S 5 5 "ORBIS32 supported bit")
|
||||
(SYS CPUCFGR OB64S 6 6 "ORBIS64 supported bit")
|
||||
(SYS CPUCFGR OF32S 7 7 "ORFPX32 supported bit")
|
||||
(SYS CPUCFGR OF64S 8 8 "ORFPX64 supported bit")
|
||||
(SYS CPUCFGR OV64S 9 9 "ORVDX64 supported bit")
|
||||
(SYS CPUCFGR ND 10 10 "no transfer delay bit")
|
||||
(SYS SR SM 0 0 "supervisor mode bit")
|
||||
(SYS SR TEE 1 1 "tick timer exception enabled bit")
|
||||
(SYS SR IEE 2 2 "interrupt exception enabled bit")
|
||||
(SYS SR DCE 3 3 "data cache enabled bit")
|
||||
(SYS SR ICE 4 4 "insn cache enabled bit")
|
||||
(SYS SR DME 5 5 "data MMU enabled bit")
|
||||
(SYS SR IME 6 6 "insn MMU enabled bit")
|
||||
(SYS SR LEE 7 7 "little endian enabled bit")
|
||||
(SYS SR CE 8 8 "CID enable bit")
|
||||
(SYS SR F 9 9 "flag bit")
|
||||
(SYS SR CY 10 10 "carry bit")
|
||||
(SYS SR OV 11 11 "overflow bit")
|
||||
(SYS SR OVE 12 12 "overflow exception enabled bit")
|
||||
(SYS SR DSX 13 13 "delay slot exception bit")
|
||||
(SYS SR EPH 14 14 "exception prefix high bit")
|
||||
(SYS SR FO 15 15 "fixed one bit")
|
||||
(SYS SR SUMRA 16 16 "SPRs user mode read access bit")
|
||||
(SYS SR CID 31 28 "context ID field")
|
||||
(SYS FPCSR FPEE 0 0 "floating point exceptions enabled bit")
|
||||
(SYS FPCSR RM 2 1 "floating point rounding mode field")
|
||||
(SYS FPCSR OVF 3 3 "floating point overflow flag bit")
|
||||
(SYS FPCSR UNF 4 4 "floating point underflow bit")
|
||||
(SYS FPCSR SNF 5 5 "floating point SNAN flag bit")
|
||||
(SYS FPCSR QNF 6 6 "floating point QNAN flag bit")
|
||||
(SYS FPCSR ZF 7 7 "floating point zero flag bit")
|
||||
(SYS FPCSR IXF 8 8 "floating point inexact flag bit")
|
||||
(SYS FPCSR IVF 9 9 "floating point invalid flag bit")
|
||||
(SYS FPCSR INF 10 10 "floating point infinity flag bit")
|
||||
(SYS FPCSR DZF 11 11 "floating point divide by zero flag bit")
|
||||
)
|
||||
)
|
||||
|
||||
(define-normal-enum
|
||||
spr-field-msbs
|
||||
"SPR field msb positions"
|
||||
()
|
||||
SPR-FIELD-MSB-
|
||||
(.map (.pmacro (args)
|
||||
(.apply (.pmacro (group index field msb lsb comment)
|
||||
((.sym group "-" index "-" field) msb)
|
||||
)
|
||||
args
|
||||
)
|
||||
)
|
||||
(spr-field-info)
|
||||
)
|
||||
)
|
||||
|
||||
(define-normal-enum
|
||||
spr-field-lsbs
|
||||
"SPR field lsb positions"
|
||||
()
|
||||
SPR-FIELD-SIZE-
|
||||
(.map (.pmacro (args)
|
||||
(.apply (.pmacro (group index field msb lsb comment)
|
||||
((.sym group "-" index "-" field) lsb)
|
||||
)
|
||||
args
|
||||
)
|
||||
)
|
||||
(spr-field-info)
|
||||
)
|
||||
)
|
||||
|
||||
(define-normal-enum
|
||||
spr-field-masks
|
||||
"SPR field masks"
|
||||
()
|
||||
SPR-FIELD-MASK-
|
||||
(.map (.pmacro (args)
|
||||
(.apply (.pmacro (group index field msb lsb comment)
|
||||
(.splice (.str group "-" index "-" field) (.sll (.inv (.sll (.inv 0) (.add (.sub msb lsb) 1))) lsb))
|
||||
)
|
||||
args
|
||||
)
|
||||
)
|
||||
(spr-field-info)
|
||||
)
|
||||
)
|
||||
|
||||
(define-pmacro (define-h-spr-field spr-group spr-index spr-field spr-field-msb spr-field-lsb spr-field-comment)
|
||||
(.let ((spr-field-name (.sym "h-" (.downcase spr-group) "-" (.downcase spr-index) "-" (.downcase spr-field)))
|
||||
)
|
||||
(begin
|
||||
(define-hardware
|
||||
(name spr-field-name)
|
||||
(comment spr-field-comment)
|
||||
(attrs VIRTUAL (MACH ORBIS-MACHS))
|
||||
(type register UWI)
|
||||
(get () (c-call UWI "@cpu@_h_spr_field_get_raw" (spr-address spr-group spr-index) spr-field-msb spr-field-lsb))
|
||||
(set (value) (c-call VOID "@cpu@_h_spr_field_set_raw" (spr-address spr-group spr-index) spr-field-msb spr-field-lsb value))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(.splice begin (.unsplice (.map (.pmacro (args) (.apply define-h-spr-field args)) (spr-field-info))))
|
||||
|
||||
(define-attr
|
||||
(type boolean)
|
||||
(for insn)
|
||||
(name DELAYED-CTI)
|
||||
(comment "delayed control transfer instruction")
|
||||
(values #f #t)
|
||||
(default #f)
|
||||
)
|
||||
|
||||
(define-attr
|
||||
(for insn)
|
||||
(type boolean)
|
||||
(name NOT-IN-DELAY-SLOT)
|
||||
(comment "instruction cannot be in delay slot")
|
||||
(values #f #t)
|
||||
(default #f)
|
||||
)
|
||||
|
||||
(define-attr
|
||||
(for insn)
|
||||
(type boolean)
|
||||
(name FORCED-CTI)
|
||||
(comment "instruction may forcefully transfer control (e.g., rfe)")
|
||||
)
|
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,22 @@
|
|||
2014-06-27 Ludovic Courtès <ludo@gnu.org>
|
||||
|
||||
PR external/16327
|
||||
PR external/16328
|
||||
* Makefile.in (MAKEINFO, TEXI2DVI, TEXI2PDF, TEXI2HTML, DVIPS)
|
||||
(TEXIDIR, INFOFILES, DVIFILES, PDFFILES, HTMLFILES): Remove.
|
||||
(all): Remove dependency on 'info'.
|
||||
(install): Remove dependency on 'install-info'.
|
||||
(standards.info, standards.html, standards.dvi, standards.ps)
|
||||
(standards.pdf, configure.info, configure.dvi, configure.ps)
|
||||
(configure.pdf, configure.pdf): Remove.
|
||||
(info, install-info, html, install-html, dvi, pdf, install-pdf)
|
||||
clean, maintainer-clean, realclean): Remove body.
|
||||
* etc/configbuild.ein, etc/configbuild.fig, etc/configbuild.jin,
|
||||
etc/configbuild.tin, etc/configdev.ein, etc/configdev.fig,
|
||||
etc/configdev.jin, etc/configdev.tin, etc/configure.texi,
|
||||
etc/fdl.texi, etc/gnu-oids.texi, etc/make-stds.texi,
|
||||
etc/standards.texi: Remove.
|
||||
|
||||
2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* Makefile.in (install-strip): New target.
|
||||
|
|
|
@ -37,187 +37,12 @@ INSTALL = @INSTALL@
|
|||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
MAKEINFO = `if [ -f ../texinfo/makeinfo/makeinfo ]; \
|
||||
then echo ../texinfo/makeinfo/makeinfo; \
|
||||
else echo makeinfo; fi`
|
||||
TEXI2DVI = `if [ -f ../texinfo/util/texi2dvi ]; \
|
||||
then echo ../texinfo/util/texi2dvi; \
|
||||
else echo texi2dvi; fi`
|
||||
TEXI2PDF = `if [ -f ../texinfo/util/texi2dvi ]; \
|
||||
then echo "../texinfo/util/texi2dvi --pdf"; \
|
||||
else echo "texi2dvi --pdf"; fi`
|
||||
TEXI2HTML = `if [ -f ../texinfo/makeinfo/makeinfo ]; \
|
||||
then echo "../texinfo/makeinfo/makeinfo --html"; \
|
||||
else echo "makeinfo --html"; fi`
|
||||
|
||||
DVIPS = dvips
|
||||
|
||||
# Where to find texinfo.tex to format documentation with TeX.
|
||||
TEXIDIR = $(srcdir)/../texinfo
|
||||
|
||||
#### Host, target, and site specific Makefile fragments come in here.
|
||||
###
|
||||
|
||||
INFOFILES = standards.info configure.info
|
||||
DVIFILES = standards.dvi configure.dvi
|
||||
PDFFILES = standards.pdf configure.pdf
|
||||
HTMLFILES = standards.html configure.html
|
||||
|
||||
all: info
|
||||
install install-strip: install-info
|
||||
|
||||
uninstall:
|
||||
|
||||
info:
|
||||
for f in $(INFOFILES); do \
|
||||
if test -f $(srcdir)/`echo $$f | sed -e 's/.info$$/.texi/'`; then \
|
||||
if $(MAKE) "MAKEINFO=$(MAKEINFO)" $$f; then \
|
||||
true; \
|
||||
else \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
install-info: info
|
||||
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
|
||||
if test ! -f standards.info; then cd $(srcdir); fi; \
|
||||
if test -f standards.info; then \
|
||||
for i in standards.info*; do \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
|
||||
done; \
|
||||
fi
|
||||
if test ! -f configure.info; then cd $(srcdir); fi; \
|
||||
if test -f configure.info; then \
|
||||
for i in configure.info*; do \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
html:
|
||||
for f in $(HTMLFILES); do \
|
||||
if test -f $(srcdir)/`echo $$f | sed -e 's/.html$$/.texi/'`; then \
|
||||
if $(MAKE) "TEXI2HTML=$(TEXI2HTML)" $$f; then \
|
||||
true; \
|
||||
else \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
install-html: html
|
||||
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(htmldir)
|
||||
if test ! -f standards.html; then cd $(srcdir); fi; \
|
||||
if test -f standards.html; then \
|
||||
for i in standards.html*; do \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i; \
|
||||
done; \
|
||||
fi
|
||||
if test ! -f configure.html; then cd $(srcdir); fi; \
|
||||
if test -f configure.html; then \
|
||||
for i in configure.html*; do \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
dvi:
|
||||
for f in $(DVIFILES); do \
|
||||
if test -f $(srcdir)/`echo $$f | sed -e 's/.dvi$$/.texi/'`; then \
|
||||
if $(MAKE) "TEXI2DVI=$(TEXI2DVI)" $$f; then \
|
||||
true; \
|
||||
else \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
pdf:
|
||||
for f in $(PDFFILES); do \
|
||||
if test -f $(srcdir)/`echo $$f | sed -e 's/.pdf$$/.texi/'`; then \
|
||||
if $(MAKE) "TEXI2PDF=$(TEXI2PDF)" $$f; then \
|
||||
true; \
|
||||
else \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
install-pdf: pdf
|
||||
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(pdfdir)/etc
|
||||
if test ! -f standards.pdf; then cd $(srcdir); fi; \
|
||||
if test -f standards.pdf; then \
|
||||
for i in standards.pdf*; do \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(pdfdir)/etc/$$i; \
|
||||
done; \
|
||||
fi
|
||||
if test ! -f configure.pdf; then cd $(srcdir); fi; \
|
||||
if test -f configure.pdf; then \
|
||||
for i in configure.pdf*; do \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(pdfdir)/etc/$$i; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
standards.info: $(srcdir)/standards.texi $(srcdir)/make-stds.texi
|
||||
$(MAKEINFO) --no-split -I$(srcdir) -o standards.info $(srcdir)/standards.texi
|
||||
|
||||
standards.html: $(srcdir)/standards.texi $(srcdir)/make-stds.texi
|
||||
$(TEXI2HTML) --no-split -I$(srcdir) -o standards.html $(srcdir)/standards.texi
|
||||
|
||||
standards.dvi: $(srcdir)/standards.texi
|
||||
TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/standards.texi
|
||||
|
||||
standards.ps: standards.dvi
|
||||
$(DVIPS) standards.dvi -o standards.ps
|
||||
|
||||
standards.pdf: $(srcdir)/standards.texi
|
||||
TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/standards.texi
|
||||
|
||||
# makeinfo requires images to be in the current directory.
|
||||
configure.info: $(srcdir)/configure.texi $(srcdir)/configdev.tin $(srcdir)/configbuild.tin
|
||||
rm -f configdev.txt configbuild.txt
|
||||
cp $(srcdir)/configdev.tin configdev.txt
|
||||
cp $(srcdir)/configbuild.tin configbuild.txt
|
||||
$(MAKEINFO) -I$(srcdir) -o configure.info $(srcdir)/configure.texi
|
||||
rm -f configdev.txt configbuild.txt
|
||||
|
||||
# texi2dvi wants both the .txt and the .eps files.
|
||||
configure.dvi: $(srcdir)/configure.texi $(srcdir)/configdev.tin $(srcdir)/configbuild.tin $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
|
||||
rm -f configdev.txt configbuild.txt
|
||||
cp $(srcdir)/configdev.tin configdev.txt
|
||||
cp $(srcdir)/configbuild.tin configbuild.txt
|
||||
rm -f configdev.eps configbuild.eps
|
||||
cp $(srcdir)/configdev.ein configdev.eps
|
||||
cp $(srcdir)/configbuild.ein configbuild.eps
|
||||
TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/configure.texi
|
||||
rm -f configdev.txt configbuild.txt
|
||||
rm -f configdev.eps configbuild.eps
|
||||
|
||||
# dvips requires images to be in the current directory
|
||||
configure.ps: configure.dvi $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
|
||||
rm -f configdev.eps configbuild.eps
|
||||
cp $(srcdir)/configdev.ein configdev.eps
|
||||
cp $(srcdir)/configbuild.ein configbuild.eps
|
||||
$(DVIPS) configure.dvi -o configure.ps
|
||||
rm -f configdev.eps configbuild.eps
|
||||
|
||||
configure.pdf: $(srcdir)/configure.texi $(srcdir)/configdev.tin $(srcdir)/configbuild.tin $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
|
||||
rm -f configdev.pdf configbuild.pdf
|
||||
epstopdf $(srcdir)/configdev.ein -outfile=configdev.pdf
|
||||
epstopdf $(srcdir)/configbuild.ein -outfile=configbuild.pdf
|
||||
TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/configure.texi
|
||||
rm -f configdev.pdf configbuild.pdf
|
||||
|
||||
configure.html: $(srcdir)/configure.texi
|
||||
cp $(srcdir)/configdev.jin configdev.jpg
|
||||
cp $(srcdir)/configbuild.jin configbuild.jpg
|
||||
$(TEXI2HTML) --no-split -I$(srcdir) -o configure.html $(srcdir)/configure.texi
|
||||
all:
|
||||
|
||||
clean:
|
||||
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
|
||||
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
|
||||
rm -f configdev.txt configbuild.txt
|
||||
rm -f configdev.eps configbuild.eps
|
||||
rm -f configdev.jpg configbuild.jpg
|
||||
|
||||
mostlyclean: clean
|
||||
|
||||
|
@ -225,8 +50,6 @@ distclean: clean
|
|||
rm -f Makefile config.status config.cache
|
||||
|
||||
maintainer-clean realclean: distclean
|
||||
rm -f *.html*
|
||||
rm -f *.info*
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
|
||||
config.status
|
||||
|
@ -244,5 +67,8 @@ config.status: $(srcdir)/configure
|
|||
## these last targets are for standards.texi conformance
|
||||
dist:
|
||||
check:
|
||||
info html dvi ps pdf:
|
||||
install install-strip install-info install-html install-pdf:
|
||||
installcheck:
|
||||
uninstall:
|
||||
TAGS:
|
||||
|
|
|
@ -1,3 +1,183 @@
|
|||
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):
|
||||
|
@ -1995,7 +2175,7 @@
|
|||
|
||||
For older changes see ChangeLog-9103
|
||||
|
||||
Copyright (C) 2004-2012 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004-2015 Free Software Foundation, Inc.
|
||||
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
See ../binutils/MAINTAINERS
|
||||
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2015 Free Software Foundation, Inc.
|
||||
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2012 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2012-2015 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
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
/* ANSI and traditional C compatability macros
|
||||
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||
2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1991-2015 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
|
||||
|
@ -24,93 +22,16 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
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.
|
||||
|
||||
This header also defines a lot of obsolete macros:
|
||||
CONST, VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID,
|
||||
AND, DOTS, NOARGS. Don't use them. */
|
||||
to nothing if it doesn't work. See below. */
|
||||
|
||||
#ifndef _ANSIDECL_H
|
||||
#define _ANSIDECL_H 1
|
||||
|
@ -149,28 +70,8 @@ So instead we use the macro below and test it against specific values. */
|
|||
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
|
||||
|
@ -188,35 +89,9 @@ So instead we use the macro below and test it against specific values. */
|
|||
# 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
|
||||
|
@ -228,20 +103,6 @@ So instead we use the macro below and test it against specific values. */
|
|||
#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
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
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.
|
||||
|
@ -248,7 +256,7 @@ Mon Aug 23 Sean Fagan (sef@cygnus.com)
|
|||
directory.
|
||||
|
||||
|
||||
Copyright (C) 1991-2012 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991-2015 Free Software Foundation, Inc.
|
||||
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* `a.out.adobe' differences from standard a.out files
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* `a.out' object-file definitions, including extensions to 64-bit fields
|
||||
|
||||
Copyright 1999, 2000, 2001, 2003, 2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* archive file definition for GNU software
|
||||
|
||||
Copyright 2001, 2008, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* a.out specifics for Sequent Symmetry running Dynix 3.x
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Yet Another Try at encapsulating bfd object files in coff.
|
||||
Copyright 1988, 1989, 1991, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1988-2015 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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* host.h - Parameters about the a.out format, based on the host system
|
||||
on which the program is compiled.
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Special version of <a.out.h> for use under HP-UX.
|
||||
Copyright 1988, 1991, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1988-2015 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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* Special version of <a.out.h> for use under HP-UX.
|
||||
Copyright 1988, 1993, 1995, 2001, 2009, 2010
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1988-2015 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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2012 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2012-2015 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* ranlib.h -- archive library index member definition for GNU.
|
||||
Copyright 1990, 1991, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1990-2015 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* reloc.h -- Header file for relocation information.
|
||||
Copyright 1989, 1990, 1991, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-2015 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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* Table of DBX symbol codes for the GNU system.
|
||||
Copyright 1988, 1991, 1992, 1993, 1994, 1996, 1998, 2004, 2010
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1988-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* gnu_stab.h Definitions for GNU extensions to STABS
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* SPARC-specific values for a.out files
|
||||
|
||||
Copyright 2001, 2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
/* bfdlink.h -- header file for BFD link routines
|
||||
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1993-2015 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.
|
||||
|
@ -93,8 +91,14 @@ struct bfd_link_hash_entry
|
|||
/* 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
|
||||
{
|
||||
|
@ -169,6 +173,8 @@ struct bfd_link_hash_table
|
|||
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;
|
||||
};
|
||||
|
@ -188,6 +194,12 @@ extern struct bfd_link_hash_entry *bfd_wrapped_link_hash_lookup
|
|||
(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 *,
|
||||
|
@ -286,6 +298,9 @@ struct bfd_link_info
|
|||
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;
|
||||
|
||||
|
@ -408,6 +423,9 @@ struct bfd_link_info
|
|||
/* 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;
|
||||
|
||||
/* 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. */
|
||||
|
@ -465,7 +483,7 @@ struct bfd_link_info
|
|||
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;
|
||||
|
||||
|
@ -631,15 +649,14 @@ struct bfd_link_callbacks
|
|||
(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. 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. */
|
||||
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. */
|
||||
bfd_boolean (*notice)
|
||||
(struct bfd_link_info *, struct bfd_link_hash_entry *h,
|
||||
bfd *abfd, asection *section, bfd_vma address, flagword flags,
|
||||
const char *string);
|
||||
struct bfd_link_hash_entry *inh,
|
||||
bfd *abfd, asection *section, bfd_vma address, flagword flags);
|
||||
/* Error or warning link info message. */
|
||||
void (*einfo)
|
||||
(const char *fmt, ...);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Binary mode I/O.
|
||||
Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
GNU tools modified to support the i80960 (or tools that operate on
|
||||
object files created by such tools).
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
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.
|
||||
|
@ -22,7 +30,7 @@
|
|||
* bitset.h: New file. Moved here from ../opcode/cgen-bitset.h.
|
||||
Update license to GPL v3.
|
||||
|
||||
Copyright (C) 2009-2012 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009-2015 Free Software Foundation, Inc.
|
||||
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Basic CGEN modes.
|
||||
Copyright 2005, 2007, 2009 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2015 Free Software Foundation, Inc.
|
||||
Contributed by Red Hat.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Basic semantics ops support for CGEN.
|
||||
Copyright 2005-2013 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2015 Free Software Foundation, Inc.
|
||||
Contributed by Red Hat.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Header file the type CGEN_BITSET.
|
||||
Copyright 2002, 2005, 2009, 2013 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU opcodes library.
|
||||
|
||||
|
|
|
@ -1,3 +1,45 @@
|
|||
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.
|
||||
|
@ -363,7 +405,7 @@
|
|||
|
||||
For older changes see ChangeLog-9103
|
||||
|
||||
Copyright (C) 2004-2012 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004-2015 Free Software Foundation, Inc.
|
||||
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* ECOFF support on Alpha machines.
|
||||
coff/ecoff.h must be included before this file.
|
||||
|
||||
Copyright 2001, 2005, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Apollo M68K
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* ARM COFF support for BFD.
|
||||
Copyright 1998, 1999, 2000, 2002, 2003, 2010, 2013
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Modifications of internal.h and m68k.h needed by A/UX
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
This does not include symbol information, found in sym.h and
|
||||
symconst.h.
|
||||
|
||||
Copyright 2001, 2002, 2003, 2004, 2005, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* external.h -- External COFF structures
|
||||
|
||||
Copyright 2001, 2006, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* COFF information for PC running go32.
|
||||
|
||||
Copyright 2001, 2005, 2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Renesas H8/300 and H8/300-H
|
||||
|
||||
Copyright 2001, 2003, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Renesas H8/500
|
||||
|
||||
Copyright 2001, 2003, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Intel 386/486.
|
||||
|
||||
Copyright 2001, 2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* COFF information for the Intel i860.
|
||||
|
||||
Copyright 2001, 2003, 2010, 2011 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for 80960. Origins: Intel corp, natch.
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for HP/Intel IA-64.
|
||||
|
||||
Copyright 2000, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 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
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
/* Internal format of COFF object file data structures, for GNU BFD.
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
Copyright 1999, 2000, 2001, 2002, 2003, 2004. 2005, 2006, 2007, 2009,
|
||||
2010 Free Software Foundation, Inc.
|
||||
|
||||
Copyright (C) 1999-2015 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 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,
|
||||
|
@ -56,7 +55,7 @@ struct internal_extra_pe_filehdr
|
|||
unsigned short e_res2[10]; /* Reserved words, all 0x0 */
|
||||
bfd_vma e_lfanew; /* File address of new exe header, 0x80 */
|
||||
unsigned long dos_message[16]; /* text which always follows dos header */
|
||||
bfd_vma nt_signature; /* required NT signature, 0x4550 */
|
||||
bfd_vma nt_signature; /* required NT signature, 0x4550 */
|
||||
};
|
||||
|
||||
#define GO32_STUBSIZE 2048
|
||||
|
@ -67,14 +66,14 @@ struct internal_filehdr
|
|||
|
||||
/* coff-stgo32 EXE stub header before BFD tdata has been allocated.
|
||||
Its data is kept in INTERNAL_FILEHDR.GO32STUB afterwards.
|
||||
|
||||
|
||||
F_GO32STUB is set iff go32stub contains a valid data. Artifical headers
|
||||
created in BFD have no pre-set go32stub. */
|
||||
char go32stub[GO32_STUBSIZE];
|
||||
|
||||
/* Standard coff internal info. */
|
||||
unsigned short f_magic; /* magic number */
|
||||
unsigned short f_nscns; /* number of sections */
|
||||
unsigned int 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 */
|
||||
|
@ -110,7 +109,7 @@ struct internal_filehdr
|
|||
#define F_GO32STUB (0x4000)
|
||||
|
||||
/* Extra structure which is used in the optional header. */
|
||||
typedef struct _IMAGE_DATA_DIRECTORY
|
||||
typedef struct _IMAGE_DATA_DIRECTORY
|
||||
{
|
||||
bfd_vma VirtualAddress;
|
||||
long Size;
|
||||
|
@ -133,6 +132,44 @@ typedef struct _IMAGE_DATA_DIRECTORY
|
|||
/* 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
|
||||
|
@ -148,22 +185,22 @@ typedef struct _IMAGE_DATA_DIRECTORY
|
|||
# define PE_DEF_FILE_ALIGNMENT 0x200
|
||||
#endif
|
||||
|
||||
struct internal_extra_pe_aouthdr
|
||||
struct internal_extra_pe_aouthdr
|
||||
{
|
||||
/* 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;
|
||||
|
@ -171,40 +208,40 @@ struct internal_extra_pe_aouthdr
|
|||
bfd_vma BaseOfCode;
|
||||
/* Address of the first data section relative to image base. */
|
||||
bfd_vma BaseOfData;
|
||||
|
||||
/* PE stuff */
|
||||
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 */
|
||||
/* PE stuff */
|
||||
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. */
|
||||
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];
|
||||
};
|
||||
|
||||
|
@ -551,7 +588,11 @@ union internal_auxent
|
|||
|
||||
union
|
||||
{
|
||||
char x_fname[FILNMLEN];
|
||||
/* 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];
|
||||
struct
|
||||
{
|
||||
long x_zeroes;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for M68K
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for 88k bcs
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Motorola MCore support for BFD.
|
||||
Copyright 1999, 2000, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* ECOFF support on MIPS machines.
|
||||
coff/ecoff.h must be included before this file.
|
||||
|
||||
Copyright 1999, 2004, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Windows CE with MIPS VR4111
|
||||
|
||||
Copyright 2000, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 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
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* pe.h - PE COFF header information
|
||||
/* pe.h - PE COFF header information
|
||||
|
||||
Copyright 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2009, 2010
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
@ -41,6 +40,7 @@
|
|||
|
||||
/* 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
|
||||
|
@ -60,16 +60,16 @@
|
|||
|
||||
/* Section characteristics added for ppc-nt. */
|
||||
|
||||
#define IMAGE_SCN_TYPE_NO_PAD 0x00000008 /* Reserved. */
|
||||
#define IMAGE_SCN_TYPE_NO_PAD 0x00000008 /* Reserved. */
|
||||
|
||||
#define IMAGE_SCN_CNT_CODE 0x00000020 /* Section contains code. */
|
||||
#define IMAGE_SCN_CNT_INITIALIZED_DATA 0x00000040 /* Section contains initialized data. */
|
||||
#define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x00000080 /* Section contains uninitialized data. */
|
||||
#define IMAGE_SCN_CNT_CODE 0x00000020 /* Section contains code. */
|
||||
#define IMAGE_SCN_CNT_INITIALIZED_DATA 0x00000040 /* Section contains initialized data. */
|
||||
#define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x00000080 /* Section contains uninitialized data. */
|
||||
|
||||
#define IMAGE_SCN_LNK_OTHER 0x00000100 /* Reserved. */
|
||||
#define IMAGE_SCN_LNK_INFO 0x00000200 /* Section contains comments or some other type of information. */
|
||||
#define IMAGE_SCN_LNK_REMOVE 0x00000800 /* Section contents will not become part of image. */
|
||||
#define IMAGE_SCN_LNK_COMDAT 0x00001000 /* Section contents comdat. */
|
||||
#define IMAGE_SCN_LNK_OTHER 0x00000100 /* Reserved. */
|
||||
#define IMAGE_SCN_LNK_INFO 0x00000200 /* Section contains comments or some other type of information. */
|
||||
#define IMAGE_SCN_LNK_REMOVE 0x00000800 /* Section contents will not become part of image. */
|
||||
#define IMAGE_SCN_LNK_COMDAT 0x00001000 /* Section contents comdat. */
|
||||
|
||||
#define IMAGE_SCN_MEM_FARDATA 0x00008000
|
||||
|
||||
|
@ -78,7 +78,7 @@
|
|||
#define IMAGE_SCN_MEM_LOCKED 0x00040000
|
||||
#define IMAGE_SCN_MEM_PRELOAD 0x00080000
|
||||
|
||||
/* Bit position in the s_flags field where the alignment values start. */
|
||||
/* Bit position in the s_flags field where the alignment values start. */
|
||||
#define IMAGE_SCN_ALIGN_POWER_BIT_POS 20
|
||||
#define IMAGE_SCN_ALIGN_POWER_BIT_MASK 0x00f00000
|
||||
#define IMAGE_SCN_ALIGN_POWER_NUM(val) \
|
||||
|
@ -90,7 +90,7 @@
|
|||
#define IMAGE_SCN_ALIGN_2BYTES IMAGE_SCN_ALIGN_POWER_CONST (1)
|
||||
#define IMAGE_SCN_ALIGN_4BYTES IMAGE_SCN_ALIGN_POWER_CONST (2)
|
||||
#define IMAGE_SCN_ALIGN_8BYTES IMAGE_SCN_ALIGN_POWER_CONST (3)
|
||||
/* Default alignment if no others are specified. */
|
||||
/* Default alignment if no others are specified. */
|
||||
#define IMAGE_SCN_ALIGN_16BYTES IMAGE_SCN_ALIGN_POWER_CONST (4)
|
||||
#define IMAGE_SCN_ALIGN_32BYTES IMAGE_SCN_ALIGN_POWER_CONST (5)
|
||||
#define IMAGE_SCN_ALIGN_64BYTES IMAGE_SCN_ALIGN_POWER_CONST (6)
|
||||
|
@ -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)))
|
||||
|
||||
|
@ -164,9 +164,9 @@
|
|||
#define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER 12
|
||||
#define IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER 13
|
||||
#define IMAGE_SUBSYSTEM_XBOX 14
|
||||
|
||||
|
||||
/* Magic values that are true for all dos/nt implementations. */
|
||||
#define DOSMAGIC 0x5a4d
|
||||
#define DOSMAGIC 0x5a4d
|
||||
#define NT_SIGNATURE 0x00004550
|
||||
|
||||
/* NT allows long filenames, we want to accommodate this.
|
||||
|
@ -201,7 +201,7 @@ struct external_PEI_DOS_hdr
|
|||
|
||||
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 @@ struct external_PEI_filehdr
|
|||
/* 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. */
|
||||
|
@ -263,9 +263,9 @@ struct external_PEI_filehdr
|
|||
|
||||
#endif /* COFF_IMAGE_WITH_PE */
|
||||
|
||||
/* 32-bit PE a.out header: */
|
||||
/* 32-bit PE a.out header: */
|
||||
|
||||
typedef struct
|
||||
typedef struct
|
||||
{
|
||||
AOUTHDR standard;
|
||||
|
||||
|
@ -301,7 +301,7 @@ typedef struct
|
|||
/* Like PEAOUTHDR, except that the "standard" member has no BaseOfData
|
||||
(aka data_start) member and that some of the members are 8 instead
|
||||
of just 4 bytes long. */
|
||||
typedef struct
|
||||
typedef struct
|
||||
{
|
||||
#ifdef AOUTHDRSZ64
|
||||
AOUTHDR64 standard;
|
||||
|
@ -339,7 +339,7 @@ typedef struct
|
|||
#else
|
||||
#define PEPAOUTSZ 240
|
||||
#endif
|
||||
|
||||
|
||||
#undef E_FILNMLEN
|
||||
#define E_FILNMLEN 18 /* # characters in a file name. */
|
||||
|
||||
|
@ -359,6 +359,85 @@ typedef struct
|
|||
#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. */
|
||||
|
@ -506,4 +585,42 @@ struct external_pex64_scope_entry
|
|||
(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 */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Basic coff information for the PowerPC
|
||||
Based on coff/rs6000.h, coff/i386.h and others.
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* IBM RS/6000 "XCOFF" file definitions for BFD.
|
||||
Copyright (C) 1990, 1991, 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1990-2015 Free Software Foundation, Inc.
|
||||
Written by Mimi Phuong-Thao Vo of IBM
|
||||
and John Gilmore of Cygnus Support.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* IBM RS/6000 "XCOFF64" file definitions for BFD.
|
||||
Copyright (C) 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Renesas SH
|
||||
|
||||
Copyright 2000, 2003, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Sparc.
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
customized in a target-specific file, and then this file included (see
|
||||
tic54x.h for an example).
|
||||
|
||||
Copyright 2000, 2001, 2002, 2003, 2005, 2008, 2009, 2010
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Texas Instruments TMS320C3X
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* TI COFF information for Texas Instruments TMS320C4X/C3X.
|
||||
This file customizes the settings in coff/ti.h.
|
||||
|
||||
Copyright 2002, 2003, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2015 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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* TI COFF information for Texas Instruments TMS320C54X.
|
||||
This file customizes the settings in coff/ti.h.
|
||||
|
||||
Copyright 2000, 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for TI TMS320C80 (MVP)
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for WDC 65816
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for we32k
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* COFF information for AMD 64.
|
||||
Copyright 2006, 2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2006-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* Internal format of XCOFF object file data structures for BFD.
|
||||
|
||||
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
|
||||
2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2015 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.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* coff information for Zilog Z80
|
||||
Copyright 2005, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2015 Free Software Foundation, Inc.
|
||||
Contributed by Arnold Metselaar <arnold_m@operamail.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* coff information for Zilog Z800N
|
||||
|
||||
Copyright 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* Defs for interface to demanglers.
|
||||
Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002,
|
||||
2003, 2004, 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1992-2015 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
|
||||
|
@ -63,9 +62,10 @@ extern "C" {
|
|||
#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)
|
||||
#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)
|
||||
|
||||
/* Enumeration of possible demangling styles.
|
||||
|
||||
|
@ -87,7 +87,8 @@ extern enum demangling_styles
|
|||
edg_demangling = DMGL_EDG,
|
||||
gnu_v3_demangling = DMGL_GNU_V3,
|
||||
java_demangling = DMGL_JAVA,
|
||||
gnat_demangling = DMGL_GNAT
|
||||
gnat_demangling = DMGL_GNAT,
|
||||
dlang_demangling = DMGL_DLANG
|
||||
} current_demangling_style;
|
||||
|
||||
/* Define string names for the various demangling styles. */
|
||||
|
@ -102,6 +103,7 @@ extern enum demangling_styles
|
|||
#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. */
|
||||
|
||||
|
@ -115,6 +117,7 @@ extern enum demangling_styles
|
|||
#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. */
|
||||
|
@ -169,6 +172,9 @@ java_demangle_v3 (const char *mangled);
|
|||
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,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Interface between the opcode library and its callers.
|
||||
|
||||
Copyright 1999-2013 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2015 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
|
||||
|
@ -226,7 +226,6 @@ extern int print_insn_bfin (bfd_vma, disassemble_info *);
|
|||
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 *);
|
||||
|
@ -254,7 +253,6 @@ extern int print_insn_iq2000 (bfd_vma, disassemble_info *);
|
|||
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 *);
|
||||
|
@ -278,7 +276,7 @@ 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_openrisc (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_or1k (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 *);
|
||||
|
@ -297,6 +295,7 @@ extern int print_insn_tilegx (bfd_vma, disassemble_info *);
|
|||
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 *);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
/* -*- c -*-
|
||||
Declarations and definitions of codes relating to the DWARF2 and
|
||||
DWARF3 symbolic debugging information formats.
|
||||
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.
|
||||
Copyright (C) 1992-2015 Free Software Foundation, Inc.
|
||||
|
||||
Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
|
||||
Office (AJPO), Florida State University and Silicon Graphics Inc.
|
||||
|
@ -383,6 +381,8 @@ DW_AT (DW_AT_GNU_all_call_sites, 0x2117)
|
|||
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)
|
||||
|
@ -406,6 +406,20 @@ DW_AT (DW_AT_upc_threads_scaled, 0x3210)
|
|||
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)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
/* Declarations and definitions of codes relating to the DWARF2 and
|
||||
DWARF3 symbolic debugging information formats.
|
||||
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.
|
||||
Copyright (C) 1992-2015 Free Software Foundation, Inc.
|
||||
|
||||
Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
|
||||
Office (AJPO), Florida State University and Silicon Graphics Inc.
|
||||
|
@ -309,6 +307,10 @@ enum dwarf_source_language
|
|||
/* 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_lo_user = 0x8000, /* Implementation-defined range start. */
|
||||
DW_LANG_hi_user = 0xffff, /* Implementation-defined range start. */
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* An abstract string datatype.
|
||||
Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005, 2009
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-2015 Free Software Foundation, Inc.
|
||||
Contributed by Mark Mitchell (mark@markmitchell.com).
|
||||
|
||||
This file is part of GCC.
|
||||
|
|
|
@ -1,3 +1,115 @@
|
|||
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>
|
||||
|
||||
|
@ -1922,7 +2034,7 @@
|
|||
|
||||
For older changes see ChangeLog-9103
|
||||
|
||||
Copyright (C) 2004-2012 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004-2015 Free Software Foundation, Inc.
|
||||
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* AArch64 ELF support for BFD.
|
||||
|
||||
Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009-2015 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. */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* ALPHA ELF support for BFD.
|
||||
Copyright 1996, 1998, 2000, 2001, 2002, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2015 Free Software Foundation, Inc.
|
||||
|
||||
By Eric Youngdale, <eric@aib.com>. No processor supplement available
|
||||
for this platform.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* ARC ELF support for BFD.
|
||||
Copyright 1995, 1997, 1998, 2000, 2001, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2015 Free Software Foundation, Inc.
|
||||
Contributed by Doug Evans, (dje@cygnus.com)
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
|
|
@ -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-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
@ -320,6 +319,23 @@ enum
|
|||
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. */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* AVR ELF support for BFD.
|
||||
Copyright 1999, 2000, 2004, 2006, 2010, 2012
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2015 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 */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Blackfin ELF support for BFD.
|
||||
Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* ELF support for BFD.
|
||||
Copyright 1991-2013 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991-2015 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 */
|
||||
|
@ -301,6 +301,8 @@
|
|||
#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_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
|
||||
|
@ -339,9 +341,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 +359,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
|
||||
|
||||
|
@ -399,7 +395,8 @@
|
|||
|
||||
#define EM_CYGNUS_MEP 0xF00D /* Toshiba MeP */
|
||||
|
||||
#define EM_MOXIE 0xFEED /* Moxie */
|
||||
/* Old, unofficial value for Moxie. */
|
||||
#define EM_MOXIE_OLD 0xFEED
|
||||
|
||||
/* Old Sunplus S+core7 backend magic number. Written in the absence of an ABI. */
|
||||
#define EM_SCORE_OLD 95
|
||||
|
@ -408,6 +405,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 +959,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. */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* CR16 ELF support for BFD.
|
||||
Copyright 2007, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2015 Free Software Foundation, Inc.
|
||||
Contributed by M R Swami Reddy.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* CR16C ELF support for BFD.
|
||||
Copyright 2004, 2008, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* CRIS ELF support for BFD.
|
||||
Copyright 2000, 2001, 2004, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 Free Software Foundation, Inc.
|
||||
Contributed by Axis Communications AB, Lund, Sweden.
|
||||
Written by Hans-Peter Nilsson.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* CRX ELF support for BFD.
|
||||
Copyright 2004, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004-2015 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.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* d10v ELF support for BFD.
|
||||
Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* d30v ELF support for BFD.
|
||||
Copyright 1998, 2000, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* DLX support for BFD.
|
||||
Copyright 2002, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -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-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of both GCC and the BFD library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Adapteva EPIPHANY ELF support for BFD.
|
||||
Copyright (C) 2009, 2011 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009-2015 Free Software Foundation, Inc.
|
||||
Contributed by Embecosm on behalf of Adapteva, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
|
|
@ -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-2015 Free Software Foundation, Inc.
|
||||
|
||||
Written by Fred Fish @ Cygnus Support, from information published
|
||||
in "UNIX System V Release 4, Programmers Guide: ANSI C and
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* FR30 ELF support for BFD.
|
||||
Copyright 1998, 1999, 2000, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* FRV ELF support for BFD.
|
||||
Copyright (C) 2002, 2003, 2004, 2005, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* H8300/h8500 ELF support for BFD.
|
||||
Copyright 2001-2013 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -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-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* i370 ELF support for BFD.
|
||||
Copyright 2000, 2002, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue