diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 30 | ||||
-rw-r--r-- | include/bfdlink.h | 3 | ||||
-rw-r--r-- | include/elf/ChangeLog | 14 | ||||
-rw-r--r-- | include/elf/arm.h | 3 | ||||
-rw-r--r-- | include/elf/dwarf.h | 54 | ||||
-rw-r--r-- | include/elf/m68k.h | 3 | ||||
-rw-r--r-- | include/libiberty.h | 15 | ||||
-rw-r--r-- | include/opcode/arm.h | 9 | ||||
-rw-r--r-- | include/xtensa-isa.h | 15 |
9 files changed, 113 insertions, 33 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index d45c62a3c..6f64e063b 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,29 @@ +2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h (xstrndup): Declare. + +2005-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h (make_relative_prefix): Add ATTRIBUTE_MALLOC. + +2005-03-22 Bob Wilson <bob.wilson@acm.org> + + * xtensa-isa.h: Update a comment and whitespace. + +2005-03-16 H.J. Lu <hongjiu.lu@intel.com> + + * bfdlink.h (bfd_link_info): Add gc_sections. + +2005-03-12 Zack Weinberg <zack@codesourcery.com> + + * opcode/arm.h: Adjust comments for ARM_EXT_V4T and ARM_EXT_V5T. + Add ARM_EXT_V6T2, ARM_ARCH_V6T2, ARM_ARCH_V6KT2, ARM_ARCH_V6ZT2, + and ARM_ARCH_V6ZKT2. + +2005-03-09 Mark Mitchell <mark@codesourcery.com> + + * libiberty.h (gettimeofday): Declare. + 2005-03-01 Jan Beulich <jbeulich@novell.com> * libiberty.h: Declare unlink_if_ordinary. @@ -54,7 +80,7 @@ * dis-asm.h: Add prototype for print_insn_maxq_little. 2004-11-05 Tomer Levi <Tomer.Levi@nsc.com> - + * opcode/crx.h (enum argtype): Rename types, remove unused types. 2004-10-27 Richard Earnshaw <rearnsha@arm.com> @@ -67,7 +93,7 @@ (enum reg_type): Remove CRX_PC_REGTYPE, CRX_MTPR_REGTYPE. (enum operand_type): Rearrange operands, edit comments. replace us<N> with ui<N> for unsigned immediate. - replace d<N> with disps<N>/dispu<N>/dispe<N> for signed/unsigned/escaped + replace d<N> with disps<N>/dispu<N>/dispe<N> for signed/unsigned/escaped displacements (respectively). replace rbase_ridx_scl2_dispu<N> with rindex_disps<N> for register index. (instruction type): Add NO_TYPE_INS. diff --git a/include/bfdlink.h b/include/bfdlink.h index 9d9315437..ad3290644 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -324,6 +324,9 @@ struct bfd_link_info /* TRUE if we should warn when adding a DT_TEXTREL to a shared object. */ unsigned int warn_shared_textrel: 1; + /* TRUE if unreferenced sections should be removed. */ + unsigned int gc_sections: 1; + /* What to do with unresolved symbols in an object file. When producing executables the default is GENERATE_ERROR. When producing shared libraries the default is IGNORE. The diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 91a81b995..b273adba9 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,17 @@ +2005-03-23 Ben Elliston <bje@au.ibm.com> + + * dwarf.h: Merge with GCC's dwarf.h. + +2005-03-18 C Jaipraash <cjaiprakash@noida.hcltech.com> + + * m68k.h (EF_CFV4E): Define. + +2005-03-17 Paul Brook <paul@codesourcery.com> + Dan Jacobowitz <dan@codesourcery.com> + Mark Mitchell <mark@codesourcery.com> + + * arm.h (PT_ARM_EXIDX): Define. + 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com> Joseph Myers <joseph@codesourcery.com> diff --git a/include/elf/arm.h b/include/elf/arm.h index 78678295d..de3ed0664 100644 --- a/include/elf/arm.h +++ b/include/elf/arm.h @@ -37,6 +37,9 @@ #define EF_ARM_VFP_FLOAT 0x400 #define EF_ARM_MAVERICK_FLOAT 0x800 +/* Frame unwind information */ +#define PT_ARM_EXIDX (PT_LOPROC + 1) + /* Other constants defined in the ARM ELF spec. version B-01. */ #define EF_ARM_SYMSARESORTED 0x04 /* NB conflicts with EF_INTERWORK */ #define EF_ARM_DYNSYMSUSESEGIDX 0x08 /* NB conflicts with EF_APCS26 */ diff --git a/include/elf/dwarf.h b/include/elf/dwarf.h index f79397253..170d60a5f 100644 --- a/include/elf/dwarf.h +++ b/include/elf/dwarf.h @@ -1,25 +1,26 @@ /* Declarations and definitions of codes relating to the DWARF symbolic debugging information format. - Written by Ron Guilmette (rfg@ncd.com) + Written by Ron Guilmette (rfg@netcom.com) -Copyright 1992, 1993, 1995, 1999 Free Software Foundation, Inc. +Copyright 1992, 1993, 1995, 1999, 2005 Free Software Foundation, Inc. -This file is part of GNU CC. +This file is part of GCC. -GNU CC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. -GNU CC 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. +GCC 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 GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +along with GCC; see the file COPYING. If not, write to the Free +Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. */ /* This file is derived from the DWARF specification (a public document) Revision 1.0.1 (April 8, 1992) developed by the UNIX International @@ -170,8 +171,8 @@ enum dwarf_attribute { AT_body_end = (0x8050|FORM_ADDR) }; -#define AT_lo_user 0x8000 /* implementation-defined range start */ -#define AT_hi_user 0xffff /* implementation-defined range end */ +#define AT_lo_user 0x2000 /* implementation-defined range start */ +#define AT_hi_user 0x3ff0 /* implementation-defined range end */ /* Location atom names and codes. */ @@ -182,7 +183,11 @@ enum dwarf_location_atom { OP_CONST = 0x04, OP_DEREF2 = 0x05, OP_DEREF4 = 0x06, - OP_ADD = 0x07 + OP_ADD = 0x07, + + /* GNU extensions. */ + + OP_MULT = 0x80 }; #define OP_LO_USER 0x80 /* implementation-defined range start */ @@ -217,7 +222,7 @@ enum dwarf_fundamental_type { /* GNU extensions The low order byte must indicate the size (in bytes) for the type. - All of these types will probably break "classic" svr4 SDB */ + All of these types will probably break "classic" svr4 SDB. */ FT_long_long = 0x8008, FT_signed_long_long = 0x8108, @@ -235,6 +240,9 @@ enum dwarf_fundamental_type { FT_int64 = 0x9908, FT_signed_int64 = 0x9a08, FT_unsigned_int64 = 0x9b08, + FT_int128 = 0x9c10, + FT_signed_int128 = 0x9d10, + FT_unsigned_int128 = 0x9e10, FT_real32 = 0xa004, FT_real64 = 0xa108, @@ -280,10 +288,10 @@ enum dwarf_subscr_data_formats { /* Derived from above for ease of use. */ -#define FMT_CODE(_FUNDAMENTAL_TYPE_P, _UB_CONST_P, _LB_CONST_P) \ +#define FMT_CODE(_FUNDAMENTAL_TYPE_P, _LB_CONST_P, _UB_CONST_P) \ (((_FUNDAMENTAL_TYPE_P) ? 0 : 4) \ - | ((_UB_CONST_P) ? 0 : 2) \ - | ((_LB_CONST_P) ? 0 : 1)) + | ((_LB_CONST_P) ? 0 : 2) \ + | ((_UB_CONST_P) ? 0 : 1)) /* Source language names and codes. */ @@ -298,11 +306,7 @@ enum dwarf_source_language { LANG_FORTRAN90 = 0x00000008, LANG_PASCAL83 = 0x00000009, LANG_MODULA2 = 0x0000000a, - - /* GNU extensions */ - - LANG_CHILL = 0x00009af3, /* random value for GNU Chill */ - LANG_JAVA = 0x00009af4 /* random value + 1 for GNU Java */ + LANG_JAVA = 0x0000000b }; #define LANG_lo_user 0x00008000 /* implementation-defined range start */ diff --git a/include/elf/m68k.h b/include/elf/m68k.h index fe66c5552..d6bc54f3d 100644 --- a/include/elf/m68k.h +++ b/include/elf/m68k.h @@ -1,5 +1,5 @@ /* MC68k ELF support for BFD. - Copyright 1998, 1999, 2000, 2002 Free Software Foundation, Inc. + Copyright 1998, 1999, 2000, 2002, 2005 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -54,5 +54,6 @@ END_RELOC_NUMBERS (R_68K_max) #define EF_CPU32 0x00810000 #define EF_M68000 0x01000000 +#define EF_CFV4E 0x00008000 #endif diff --git a/include/libiberty.h b/include/libiberty.h index 4df814092..49a2fb6fd 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -145,6 +145,15 @@ extern int fdmatch PARAMS ((int fd1, int fd2)); extern char * getpwd PARAMS ((void)); +/* Get the current time. */ +/* Prototypes vary from system to system, so we only provide a + prototype on systems where we know that we need it. */ +#ifdef __MINGW32__ +/* Forward declaration to avoid #include <sys/time.h>. */ +struct timeval; +extern int gettimeofday PARAMS ((struct timeval *, void *)); +#endif + /* Get the amount of time the process has run, in microseconds. */ extern long get_run_time PARAMS ((void)); @@ -153,7 +162,7 @@ extern long get_run_time PARAMS ((void)); return value using malloc. */ extern char *make_relative_prefix PARAMS ((const char *, const char *, - const char *)); + const char *)) ATTRIBUTE_MALLOC; /* Choose a temporary directory to use for scratch files. */ @@ -246,6 +255,10 @@ extern PTR xcalloc PARAMS ((size_t, size_t)) ATTRIBUTE_MALLOC; extern char *xstrdup PARAMS ((const char *)) ATTRIBUTE_MALLOC; +/* Copy at most N characters from string into a buffer without fail. */ + +extern char *xstrndup PARAMS ((const char *, size_t)) ATTRIBUTE_MALLOC; + /* Copy an existing memory buffer to a new memory buffer without fail. */ extern PTR xmemdup PARAMS ((const PTR, size_t, size_t)) ATTRIBUTE_MALLOC; diff --git a/include/opcode/arm.h b/include/opcode/arm.h index dd90e2ac6..db3666591 100644 --- a/include/opcode/arm.h +++ b/include/opcode/arm.h @@ -25,15 +25,16 @@ #define ARM_EXT_V3 0x00000008 /* MSR MRS. */ #define ARM_EXT_V3M 0x00000010 /* Allow long multiplies. */ #define ARM_EXT_V4 0x00000020 /* Allow half word loads. */ -#define ARM_EXT_V4T 0x00000040 /* Thumb v1. */ +#define ARM_EXT_V4T 0x00000040 /* Thumb. */ #define ARM_EXT_V5 0x00000080 /* Allow CLZ, etc. */ -#define ARM_EXT_V5T 0x00000100 /* Thumb v2. */ +#define ARM_EXT_V5T 0x00000100 /* Improved interworking. */ #define ARM_EXT_V5ExP 0x00000200 /* DSP core set. */ #define ARM_EXT_V5E 0x00000400 /* DSP Double transfers. */ #define ARM_EXT_V5J 0x00000800 /* Jazelle extension. */ #define ARM_EXT_V6 0x00001000 /* ARM V6. */ #define ARM_EXT_V6K 0x00002000 /* ARM V6K. */ #define ARM_EXT_V6Z 0x00004000 /* ARM V6Z. */ +#define ARM_EXT_V6T2 0x00008000 /* Thumb-2. */ /* Co-processor space extensions. */ #define ARM_CEXT_XSCALE 0x00800000 /* Allow MIA etc. */ @@ -65,6 +66,10 @@ #define ARM_ARCH_V6K (ARM_ARCH_V6 | ARM_EXT_V6K) #define ARM_ARCH_V6Z (ARM_ARCH_V6 | ARM_EXT_V6Z) #define ARM_ARCH_V6ZK (ARM_ARCH_V6 | ARM_EXT_V6K | ARM_EXT_V6Z) +#define ARM_ARCH_V6T2 (ARM_ARCH_V6 | ARM_EXT_V6T2) +#define ARM_ARCH_V6KT2 (ARM_ARCH_V6 | ARM_EXT_V6T2 | ARM_EXT_V6K) +#define ARM_ARCH_V6ZT2 (ARM_ARCH_V6 | ARM_EXT_V6T2 | ARM_EXT_V6Z) +#define ARM_ARCH_V6ZKT2 (ARM_ARCH_V6 | ARM_EXT_V6T2 | ARM_EXT_V6K | ARM_EXT_V6Z) /* Processors with specific extensions in the co-processor space. */ #define ARM_ARCH_XSCALE (ARM_ARCH_V5TE | ARM_CEXT_XSCALE) diff --git a/include/xtensa-isa.h b/include/xtensa-isa.h index 5c22902ee..043b9cdd5 100644 --- a/include/xtensa-isa.h +++ b/include/xtensa-isa.h @@ -65,7 +65,7 @@ extern "C" { typedef struct xtensa_isa_opaque { int unused; } *xtensa_isa; -/* Opcodes, formats, regfiles, states, sysregs, ctypes, and protos are +/* Most of the Xtensa ISA entities (e.g., opcodes, regfiles, etc.) are represented here using sequential integers beginning with 0. The specific values are only fixed for a particular instantiation of an xtensa_isa structure, so these values should only be used @@ -168,6 +168,7 @@ xtensa_isa_errno (xtensa_isa isa); extern char * xtensa_isa_error_msg (xtensa_isa isa); + /* Instruction buffers. */ @@ -215,6 +216,7 @@ extern void xtensa_insnbuf_from_chars (xtensa_isa isa, xtensa_insnbuf insn, const unsigned char *cp, int num_chars); + /* ISA information. */ @@ -279,6 +281,7 @@ xtensa_isa_num_interfaces (xtensa_isa isa); extern int xtensa_isa_num_funcUnits (xtensa_isa isa); + /* Instruction formats. */ @@ -342,6 +345,7 @@ extern int xtensa_format_set_slot (xtensa_isa isa, xtensa_format fmt, int slot, xtensa_insnbuf insn, const xtensa_insnbuf slotbuf); + /* Opcode information. */ @@ -412,7 +416,6 @@ xtensa_opcode_is_call (xtensa_isa isa, xtensa_opcode opc); extern int xtensa_opcode_num_operands (xtensa_isa isa, xtensa_opcode opc); - extern int xtensa_opcode_num_stateOperands (xtensa_isa isa, xtensa_opcode opc); @@ -438,6 +441,7 @@ xtensa_opcode_num_funcUnit_uses (xtensa_isa isa, xtensa_opcode opc); extern xtensa_funcUnit_use * xtensa_opcode_funcUnit_use (xtensa_isa isa, xtensa_opcode opc, int u); + /* Operand information. */ @@ -572,6 +576,7 @@ extern int xtensa_operand_undo_reloc (xtensa_isa isa, xtensa_opcode opc, int opnd, uint32 *valp, uint32 pc); + /* State Operands. */ @@ -588,6 +593,7 @@ xtensa_stateOperand_state (xtensa_isa isa, xtensa_opcode opc, int stOp); extern char xtensa_stateOperand_inout (xtensa_isa isa, xtensa_opcode opc, int stOp); + /* Interface Operands. */ @@ -598,6 +604,7 @@ extern xtensa_interface xtensa_interfaceOperand_interface (xtensa_isa isa, xtensa_opcode opc, int ifOp); + /* Register Files. */ @@ -651,6 +658,7 @@ xtensa_regfile_num_bits (xtensa_isa isa, xtensa_regfile rf); extern int xtensa_regfile_num_entries (xtensa_isa isa, xtensa_regfile rf); + /* Processor States. */ @@ -680,6 +688,7 @@ xtensa_state_num_bits (xtensa_isa isa, xtensa_state st); extern int xtensa_state_is_exported (xtensa_isa isa, xtensa_state st); + /* Sysregs ("special registers" and "user registers"). */ @@ -717,6 +726,7 @@ xtensa_sysreg_number (xtensa_isa isa, xtensa_sysreg sysreg); extern int xtensa_sysreg_is_user (xtensa_isa isa, xtensa_sysreg sysreg); + /* Interfaces. */ @@ -768,6 +778,7 @@ xtensa_interface_has_side_effect (xtensa_isa isa, xtensa_interface intf); extern int xtensa_interface_class_id (xtensa_isa isa, xtensa_interface intf); + /* Functional Units. */ |