-Index: binutils-2.18/bfd/archures.c
-===================================================================
---- binutils-2.18.orig/bfd/archures.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/archures.c 2008-11-25 15:25:40.000000000 +0100
-@@ -346,6 +346,11 @@
+--- a/bfd/archures.c
++++ b/bfd/archures.c
+@@ -346,6 +346,11 @@ DESCRIPTION
.#define bfd_mach_avr4 4
.#define bfd_mach_avr5 5
.#define bfd_mach_avr6 6
. bfd_arch_bfin, {* ADI Blackfin *}
.#define bfd_mach_bfin 1
. bfd_arch_cr16, {* National Semiconductor CompactRISC (ie CR16). *}
-@@ -438,6 +443,7 @@
+@@ -438,6 +443,7 @@ extern const bfd_arch_info_type bfd_alph
extern const bfd_arch_info_type bfd_arc_arch;
extern const bfd_arch_info_type bfd_arm_arch;
extern const bfd_arch_info_type bfd_avr_arch;
extern const bfd_arch_info_type bfd_bfin_arch;
extern const bfd_arch_info_type bfd_cr16_arch;
extern const bfd_arch_info_type bfd_cr16c_arch;
-@@ -509,6 +515,7 @@
+@@ -509,6 +515,7 @@ static const bfd_arch_info_type * const
&bfd_arc_arch,
&bfd_arm_arch,
&bfd_avr_arch,
&bfd_bfin_arch,
&bfd_cr16_arch,
&bfd_cr16c_arch,
-Index: binutils-2.18/bfd/config.bfd
-===================================================================
---- binutils-2.18.orig/bfd/config.bfd 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/config.bfd 2008-11-25 15:25:40.000000000 +0100
-@@ -335,6 +335,10 @@
+--- a/bfd/config.bfd
++++ b/bfd/config.bfd
+@@ -335,6 +335,10 @@ case "${targ}" in
targ_underscore=yes
;;
c30-*-*aout* | tic30-*-*aout*)
targ_defvec=tic30_aout_vec
;;
-Index: binutils-2.18/bfd/configure.in
-===================================================================
---- binutils-2.18.orig/bfd/configure.in 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/configure.in 2008-11-25 15:25:40.000000000 +0100
-@@ -619,6 +619,7 @@
+--- a/bfd/configure.in
++++ b/bfd/configure.in
+@@ -619,6 +619,7 @@ do
bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
-Index: binutils-2.18/bfd/cpu-avr32.c
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/cpu-avr32.c 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/cpu-avr32.c
@@ -0,0 +1,51 @@
+/* BFD library support routines for AVR32.
+ Copyright 2003-2006 Atmel Corporation.
+
+const bfd_arch_info_type bfd_avr32_arch =
+ N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]);
-Index: binutils-2.18/bfd/elf32-avr32.c
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/elf32-avr32.c 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/elf32-avr32.c
@@ -0,0 +1,3915 @@
+/* AVR32-specific support for 32-bit ELF.
+ Copyright 2003-2006 Atmel Corporation.
+#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
+
+#include "elf32-target.h"
-Index: binutils-2.18/bfd/elf32-avr32.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/elf32-avr32.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/elf32-avr32.h
@@ -0,0 +1,23 @@
+/* AVR32-specific support for 32-bit ELF.
+ Copyright 2007 Atmel Corporation.
+
+void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
+ int direct_data_refs);
-Index: binutils-2.18/bfd/elf-bfd.h
-===================================================================
---- binutils-2.18.orig/bfd/elf-bfd.h 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/elf-bfd.h 2008-11-25 15:25:40.000000000 +0100
-@@ -1400,6 +1400,10 @@
+--- a/bfd/elf-bfd.h
++++ b/bfd/elf-bfd.h
+@@ -1400,6 +1400,10 @@ struct elf_obj_tdata
find_nearest_line. */
struct mips_elf_find_line *find_line_info;
/* A place to stash dwarf1 info for this bfd. */
struct dwarf1_debug *dwarf1_find_line_info;
-Index: binutils-2.18/bfd/Makefile.am
-===================================================================
---- binutils-2.18.orig/bfd/Makefile.am 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/Makefile.am 2008-11-25 15:25:40.000000000 +0100
-@@ -63,6 +63,7 @@
+--- a/bfd/Makefile.am
++++ b/bfd/Makefile.am
+@@ -63,6 +63,7 @@ ALL_MACHINES = \
cpu-arc.lo \
cpu-arm.lo \
cpu-avr.lo \
cpu-bfin.lo \
cpu-cr16.lo \
cpu-cr16c.lo \
-@@ -243,6 +244,7 @@
+@@ -243,6 +244,7 @@ BFD32_BACKENDS = \
elf32-arc.lo \
elf32-arm.lo \
elf32-avr.lo \
elf32-bfin.lo \
elf32-cr16.lo \
elf32-cr16c.lo \
-@@ -1328,6 +1330,10 @@
+@@ -1328,6 +1330,10 @@ elf32-cr16.lo: elf32-cr16.c $(INCDIR)/fi
$(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
$(INCDIR)/elf/cr16.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
$(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
$(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
-Index: binutils-2.18/bfd/reloc.c
-===================================================================
---- binutils-2.18.orig/bfd/reloc.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/reloc.c 2008-11-25 15:25:40.000000000 +0100
-@@ -3948,6 +3948,131 @@
+--- a/bfd/reloc.c
++++ b/bfd/reloc.c
+@@ -3948,6 +3948,131 @@ ENUMDOC
instructions
ENUM
BFD_RELOC_390_12
ENUMDOC
Direct 12 bit.
-Index: binutils-2.18/bfd/targets.c
-===================================================================
---- binutils-2.18.orig/bfd/targets.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/targets.c 2008-11-25 15:25:40.000000000 +0100
-@@ -564,6 +564,7 @@
+--- a/bfd/targets.c
++++ b/bfd/targets.c
+@@ -564,6 +564,7 @@ extern const bfd_target bfd_efi_app_ia32
extern const bfd_target bfd_efi_app_x86_64_vec;
extern const bfd_target bfd_efi_app_ia64_vec;
extern const bfd_target bfd_elf32_avr_vec;
extern const bfd_target bfd_elf32_bfin_vec;
extern const bfd_target bfd_elf32_bfinfdpic_vec;
extern const bfd_target bfd_elf32_big_generic_vec;
-@@ -884,6 +885,7 @@
+@@ -884,6 +885,7 @@ static const bfd_target * const _bfd_tar
&bfd_efi_app_ia64_vec,
#endif
&bfd_elf32_avr_vec,
&bfd_elf32_bfin_vec,
&bfd_elf32_bfinfdpic_vec,
-Index: binutils-2.18/binutils/Makefile.am
-===================================================================
---- binutils-2.18.orig/binutils/Makefile.am 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/binutils/Makefile.am 2008-11-25 15:25:40.000000000 +0100
-@@ -577,7 +577,7 @@
+--- a/binutils/Makefile.am
++++ b/binutils/Makefile.am
+@@ -577,7 +577,7 @@ readelf.o: readelf.c sysdep.h $(INCDIR)/
$(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bucomm.h dwarf.h \
$(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
$(INCDIR)/elf/h8.h $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/alpha.h \
$(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/crx.h \
$(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
$(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/hppa.h \
-Index: binutils-2.18/binutils/readelf.c
-===================================================================
---- binutils-2.18.orig/binutils/readelf.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/binutils/readelf.c 2008-11-25 15:25:40.000000000 +0100
+--- a/binutils/readelf.c
++++ b/binutils/readelf.c
@@ -21,7 +21,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
#include "elf/bfin.h"
#include "elf/cr16.h"
#include "elf/cris.h"
-@@ -303,7 +304,7 @@
+@@ -303,7 +304,7 @@ static void (*byte_put) (unsigned char *
#define streq(a,b) (strcmp ((a), (b)) == 0)
#define strneq(a,b,n) (strncmp ((a), (b), (n)) == 0)
#define const_strneq(a,b) (strncmp ((a), (b), sizeof (b) - 1) == 0)
static void *
get_data (void *var, FILE *file, long offset, size_t size, size_t nmemb,
const char *reason)
-@@ -614,6 +615,7 @@
+@@ -614,6 +615,7 @@ guess_is_rela (unsigned long e_machine)
case EM_ALPHA:
case EM_ALTERA_NIOS2:
case EM_AVR:
case EM_AVR_OLD:
case EM_BLACKFIN:
case EM_CR16:
-@@ -1006,6 +1008,10 @@
+@@ -1006,6 +1008,10 @@ dump_relocations (FILE *file,
rtype = elf_avr_reloc_type (type);
break;
case EM_OLD_SPARCV9:
case EM_SPARC32PLUS:
case EM_SPARCV9:
-@@ -1763,6 +1769,7 @@
+@@ -1763,6 +1769,7 @@ get_machine_name (unsigned e_machine)
case EM_VAX: return "Digital VAX";
case EM_AVR_OLD:
case EM_AVR: return "Atmel AVR 8-bit microcontroller";
case EM_CRIS: return "Axis Communications 32-bit embedded processor";
case EM_JAVELIN: return "Infineon Technologies 32-bit embedded cpu";
case EM_FIREPATH: return "Element 14 64-bit DSP processor";
-Index: binutils-2.18/gas/as.c
-===================================================================
---- binutils-2.18.orig/gas/as.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/as.c 2008-11-25 15:25:40.000000000 +0100
-@@ -441,10 +441,10 @@
+--- a/gas/as.c
++++ b/gas/as.c
+@@ -441,10 +441,10 @@ parse_args (int * pargc, char *** pargv)
the end of the preceeding line so that it is simpler to
selectively add and remove lines from this list. */
{"alternate", no_argument, NULL, OPTION_ALTERNATE}
,{"a", optional_argument, NULL, 'a'}
/* Handle -al=<FILE>. */
,{"al", optional_argument, NULL, OPTION_AL}
-@@ -803,8 +803,15 @@
+@@ -803,8 +803,15 @@ This program has absolutely no warranty.
case 'a':
if (optarg)
{
if (md_parse_option (optc, optarg) != 0)
break;
-@@ -1234,7 +1241,7 @@
+@@ -1234,7 +1241,7 @@ main (int argc, char ** argv)
keep_it = 0;
if (!keep_it)
input_scrub_end ();
-Index: binutils-2.18/gas/config/bfin-aux.h
-===================================================================
---- binutils-2.18.orig/gas/config/bfin-aux.h 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/config/bfin-aux.h 2008-11-25 15:25:40.000000000 +0100
-@@ -1,151 +1,151 @@
--/* bfin-aux.h ADI Blackfin Header file for gas\r
-- Copyright 2005, 2007\r
-- Free Software Foundation, Inc.\r
--\r
-- This file is part of GAS, the GNU Assembler.\r
--\r
-- GAS is free software; you can redistribute it and/or modify\r
-- it under the terms of the GNU General Public License as published by\r
-- the Free Software Foundation; either version 3, or (at your option)\r
-- any later version.\r
--\r
-- GAS is distributed in the hope that it will be useful,\r
-- but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-- GNU General Public License for more details.\r
--\r
-- You should have received a copy of the GNU General Public License\r
-- along with GAS; see the file COPYING. If not, write to the Free\r
-- Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA\r
-- 02110-1301, USA. */\r
--\r
--#include "bfin-defs.h"\r
--\r
--#define REG_T Register *\r
--\r
--INSTR_T\r
--bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,\r
-- int h01, int h11, int h00, int h10,\r
-- int op0, REG_T dst, REG_T src0, REG_T src1, int w0);\r
--\r
--INSTR_T\r
--bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,\r
-- int h01, int h11, int h00, int h10,\r
-- int op0, REG_T dst, REG_T src0, REG_T src1, int w0);\r
--\r
--INSTR_T\r
--bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,\r
-- REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);\r
--\r
--INSTR_T\r
--bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,\r
-- int sop, int hls);\r
--\r
--INSTR_T\r
--bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,\r
-- int sop, int hls);\r
--\r
--INSTR_T\r
--bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,\r
-- int reloc);\r
--\r
--INSTR_T\r
--bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,\r
-- Expr_Node *offset);\r
--\r
--INSTR_T\r
--bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);\r
--\r
--INSTR_T\r
--bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);\r
--\r
--INSTR_T\r
--bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);\r
--\r
--INSTR_T\r
--bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);\r
--\r
--INSTR_T\r
--bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);\r
--\r
--INSTR_T\r
--bfin_gen_alu2op (REG_T dst, REG_T src, int opc);\r
--\r
--INSTR_T\r
--bfin_gen_compi2opd (REG_T dst, int src, int op);\r
--\r
--INSTR_T\r
--bfin_gen_compi2opp (REG_T dst, int src, int op);\r
--\r
--INSTR_T\r
--bfin_gen_dagmodik (REG_T i, int op);\r
--\r
--INSTR_T\r
--bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);\r
--\r
--INSTR_T\r
--bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);\r
--\r
--INSTR_T\r
--bfin_gen_logi2op (int dst, int src, int opc);\r
--\r
--INSTR_T\r
--bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);\r
--\r
--INSTR_T\r
--bfin_gen_ccmv (REG_T src, REG_T dst, int t);\r
--\r
--INSTR_T\r
--bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);\r
--\r
--INSTR_T\r
--bfin_gen_cc2stat (int cbit, int op, int d);\r
--\r
--INSTR_T\r
--bfin_gen_regmv (REG_T src, REG_T dst);\r
--\r
--INSTR_T\r
--bfin_gen_cc2dreg (int op, REG_T reg);\r
--\r
--INSTR_T\r
--bfin_gen_brcc (int t, int b, Expr_Node *offset);\r
--\r
--INSTR_T\r
--bfin_gen_ujump (Expr_Node *offset);\r
--\r
--INSTR_T\r
--bfin_gen_cactrl (REG_T reg, int a, int op);\r
--\r
--INSTR_T\r
--bfin_gen_progctrl (int prgfunc, int poprnd);\r
--\r
--INSTR_T\r
--bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,\r
-- Expr_Node *eoffset, REG_T reg);\r
--\r
--INSTR_T\r
--bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);\r
--\r
--INSTR_T\r
--bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);\r
--\r
--INSTR_T\r
--bfin_gen_pushpopreg (REG_T reg, int w);\r
--\r
--INSTR_T\r
--bfin_gen_calla (Expr_Node *addr, int s);\r
--\r
--INSTR_T\r
--bfin_gen_linkage (int r, int framesize);\r
--\r
--INSTR_T\r
--bfin_gen_pseudodbg (int fn, int reg, int grp);\r
--\r
--INSTR_T\r
--bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);\r
--\r
--bfd_boolean\r
--bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);\r
--\r
--INSTR_T\r
--bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);\r
-+/* bfin-aux.h ADI Blackfin Header file for gas
-+ Copyright 2005, 2007
-+ Free Software Foundation, Inc.
-+
-+ This file is part of GAS, the GNU Assembler.
-+
-+ GAS 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, or (at your option)
-+ any later version.
-+
-+ GAS 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 GAS; see the file COPYING. If not, write to the Free
-+ Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
-+ 02110-1301, USA. */
-+
-+#include "bfin-defs.h"
-+
-+#define REG_T Register *
-+
-+INSTR_T
-+bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,
-+ int h01, int h11, int h00, int h10,
-+ int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
-+
-+INSTR_T
-+bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,
-+ int h01, int h11, int h00, int h10,
-+ int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
-+
-+INSTR_T
-+bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,
-+ REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);
-+
-+INSTR_T
-+bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,
-+ int sop, int hls);
-+
-+INSTR_T
-+bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,
-+ int sop, int hls);
-+
-+INSTR_T
-+bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,
-+ int reloc);
-+
-+INSTR_T
-+bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,
-+ Expr_Node *offset);
-+
-+INSTR_T
-+bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);
-+
-+INSTR_T
-+bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);
-+
-+INSTR_T
-+bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);
-+
-+INSTR_T
-+bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);
-+
-+INSTR_T
-+bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);
-+
-+INSTR_T
-+bfin_gen_alu2op (REG_T dst, REG_T src, int opc);
-+
-+INSTR_T
-+bfin_gen_compi2opd (REG_T dst, int src, int op);
-+
-+INSTR_T
-+bfin_gen_compi2opp (REG_T dst, int src, int op);
-+
-+INSTR_T
-+bfin_gen_dagmodik (REG_T i, int op);
-+
-+INSTR_T
-+bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);
-+
-+INSTR_T
-+bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);
-+
-+INSTR_T
-+bfin_gen_logi2op (int dst, int src, int opc);
-+
-+INSTR_T
-+bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);
-+
-+INSTR_T
-+bfin_gen_ccmv (REG_T src, REG_T dst, int t);
-+
-+INSTR_T
-+bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);
-+
-+INSTR_T
-+bfin_gen_cc2stat (int cbit, int op, int d);
-+
-+INSTR_T
-+bfin_gen_regmv (REG_T src, REG_T dst);
-+
-+INSTR_T
-+bfin_gen_cc2dreg (int op, REG_T reg);
-+
-+INSTR_T
-+bfin_gen_brcc (int t, int b, Expr_Node *offset);
-+
-+INSTR_T
-+bfin_gen_ujump (Expr_Node *offset);
-+
-+INSTR_T
-+bfin_gen_cactrl (REG_T reg, int a, int op);
-+
-+INSTR_T
-+bfin_gen_progctrl (int prgfunc, int poprnd);
-+
-+INSTR_T
-+bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,
-+ Expr_Node *eoffset, REG_T reg);
-+
-+INSTR_T
-+bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);
-+
-+INSTR_T
-+bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);
-+
-+INSTR_T
-+bfin_gen_pushpopreg (REG_T reg, int w);
-+
-+INSTR_T
-+bfin_gen_calla (Expr_Node *addr, int s);
-+
-+INSTR_T
-+bfin_gen_linkage (int r, int framesize);
-+
-+INSTR_T
-+bfin_gen_pseudodbg (int fn, int reg, int grp);
-+
-+INSTR_T
-+bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);
-+
-+bfd_boolean
-+bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
-+
-+INSTR_T
-+bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
-Index: binutils-2.18/gas/config/tc-avr32.c
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/config/tc-avr32.c 2008-11-25 15:25:40.000000000 +0100
-@@ -0,0 +1,4800 @@
+--- /dev/null
++++ b/gas/config/tc-avr32.c
+@@ -0,0 +1,4806 @@
+/* Assembler implementation for AVR32.
+ Copyright 2003-2006 Atmel Corporation.
+
+ if (fixP->fx_done)
+ value += fx_offset;
+
++ /* For hosts with longs bigger than 32-bits make sure that the top
++ bits of a 32-bit negative value read in by the parser are set,
++ so that the correct comparisons are made. */
++ if (value & 0x80000000)
++ value |= (-1L << 31);
++
+ switch (fixP->fx_r_type)
+ {
+ case BFD_RELOC_32:
+
+/* vim: syntax=c sw=2
+ */
-Index: binutils-2.18/gas/config/tc-avr32.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/config/tc-avr32.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/config/tc-avr32.h
@@ -0,0 +1,325 @@
+/* Assembler definitions for AVR32.
+ Copyright 2003-2006 Atmel Corporation.
+ (fixP)->tc_fix_data.max = 0; \
+ } \
+ while (0)
-Index: binutils-2.18/gas/configure.tgt
-===================================================================
---- binutils-2.18.orig/gas/configure.tgt 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/configure.tgt 2008-11-25 15:25:40.000000000 +0100
-@@ -33,6 +33,7 @@
+--- a/gas/configure.tgt
++++ b/gas/configure.tgt
+@@ -33,6 +33,7 @@ case ${cpu} in
am33_2.0) cpu_type=mn10300 endian=little ;;
arm*be|arm*b) cpu_type=arm endian=big ;;
arm*) cpu_type=arm endian=little ;;
bfin*) cpu_type=bfin endian=little ;;
c4x*) cpu_type=tic4x ;;
cr16*) cpu_type=cr16 endian=little ;;
-@@ -129,6 +130,9 @@
+@@ -129,6 +130,9 @@ case ${generic_target} in
bfin-*elf) fmt=elf ;;
cr16-*-elf*) fmt=elf ;;
cris-*-linux-* | crisv32-*-linux-*)
fmt=multi em=linux ;;
cris-*-* | crisv32-*-*) fmt=multi ;;
-Index: binutils-2.18/gas/doc/all.texi
-===================================================================
---- binutils-2.18.orig/gas/doc/all.texi 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/doc/all.texi 2008-11-25 15:25:40.000000000 +0100
+--- a/gas/doc/all.texi
++++ b/gas/doc/all.texi
@@ -30,6 +30,7 @@
@set ARC
@set ARM
@set BFIN
@set CR16
@set CRIS
-Index: binutils-2.18/gas/doc/as.texinfo
-===================================================================
---- binutils-2.18.orig/gas/doc/as.texinfo 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/doc/as.texinfo 2008-11-25 15:25:40.000000000 +0100
-@@ -6353,6 +6353,9 @@
+--- a/gas/doc/as.texinfo
++++ b/gas/doc/as.texinfo
+@@ -6353,6 +6353,9 @@ subject, see the hardware manufacturer's
@ifset AVR
* AVR-Dependent:: AVR Dependent Features
@end ifset
@ifset BFIN
* BFIN-Dependent:: BFIN Dependent Features
@end ifset
-@@ -6476,6 +6479,10 @@
+@@ -6476,6 +6479,10 @@ subject, see the hardware manufacturer's
@include c-avr.texi
@end ifset
@ifset BFIN
@include c-bfin.texi
@end ifset
-Index: binutils-2.18/gas/doc/c-avr32.texi
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/doc/c-avr32.texi 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/doc/c-avr32.texi
@@ -0,0 +1,247 @@
+@c Copyright 2005, 2006
+@c Atmel Corporation
+deleting any superfluous constant pool- and GOT-entries.
+
+@end table
-Index: binutils-2.18/gas/doc/Makefile.am
-===================================================================
---- binutils-2.18.orig/gas/doc/Makefile.am 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/doc/Makefile.am 2008-11-25 15:25:40.000000000 +0100
-@@ -33,6 +33,7 @@
+--- a/gas/doc/Makefile.am
++++ b/gas/doc/Makefile.am
+@@ -33,6 +33,7 @@ CPU_DOCS = \
c-arc.texi \
c-arm.texi \
c-avr.texi \
c-bfin.texi \
c-cr16.texi \
c-d10v.texi \
-Index: binutils-2.18/gas/Makefile.am
-===================================================================
---- binutils-2.18.orig/gas/Makefile.am 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/Makefile.am 2008-11-25 15:25:40.000000000 +0100
-@@ -47,6 +47,7 @@
+--- a/gas/Makefile.am
++++ b/gas/Makefile.am
+@@ -47,6 +47,7 @@ CPU_TYPES = \
arc \
arm \
avr \
bfin \
cr16 \
cris \
-@@ -241,6 +242,7 @@
+@@ -241,6 +242,7 @@ TARGET_CPU_CFILES = \
config/tc-arc.c \
config/tc-arm.c \
config/tc-avr.c \
config/tc-bfin.c \
config/tc-cr16.c \
config/tc-cris.c \
-@@ -296,6 +298,7 @@
+@@ -296,6 +298,7 @@ TARGET_CPU_HFILES = \
config/tc-arc.h \
config/tc-arm.h \
config/tc-avr.h \
config/tc-bfin.h \
config/tc-cr16.h \
config/tc-cris.h \
-@@ -1050,6 +1053,11 @@
+@@ -1050,6 +1053,11 @@ DEPTC_avr_elf = $(srcdir)/config/obj-elf
$(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr.h dwarf2dbg.h \
$(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
$(INCDIR)/opcode/avr.h
DEPTC_bfin_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
$(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h dwarf2dbg.h \
-@@ -1487,6 +1495,11 @@
+@@ -1487,6 +1495,11 @@ DEPOBJ_avr_elf = $(srcdir)/config/obj-el
$(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr.h dwarf2dbg.h \
$(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
$(INCDIR)/obstack.h struc-symbol.h dwarf2dbg.h $(INCDIR)/aout/aout64.h
DEPOBJ_bfin_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
$(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h dwarf2dbg.h \
-@@ -1858,6 +1871,9 @@
+@@ -1858,6 +1871,9 @@ DEP_cr16_elf = $(srcdir)/config/obj-elf.
$(INCDIR)/bfdlink.h $(srcdir)/config/tc-cr16.h dwarf2dbg.h \
$(srcdir)/config/obj-coff.h $(INCDIR)/coff/internal.h \
$(BFDDIR)/libcoff.h
DEP_cris_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-cris.h \
$(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h
DEP_cris_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
-Index: binutils-2.18/gas/testsuite/gas/avr32/aliases.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/aliases.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/aliases.d
@@ -0,0 +1,19 @@
+#as:
+#objdump: -dr
+ c: b8 80 [ \t]+st\.b r12\[0x0\],r0
+ e: b8 00 [ \t]+st\.h r12\[0x0\],r0
+ 10: 99 00 [ \t]+st\.w r12\[0x0\],r0
-Index: binutils-2.18/gas/testsuite/gas/avr32/aliases.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/aliases.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/aliases.s
@@ -0,0 +1,14 @@
+ .text
+ .global ld_nodisp
+ st.b r12, r0
+ st.h r12, r0
+ st.w r12, r0
-Index: binutils-2.18/gas/testsuite/gas/avr32/allinsn.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/allinsn.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/allinsn.d
@@ -0,0 +1,2987 @@
+#as:
+#objdump: -dr
+ *[0-9a-f]*: fc 15 00 01 movh r5,0x1
+ *[0-9a-f]*: fc 1c 7f ff movh r12,0x7fff
+
-Index: binutils-2.18/gas/testsuite/gas/avr32/allinsn.exp
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/allinsn.exp 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/allinsn.exp
@@ -0,0 +1,5 @@
+# AVR32 assembler testsuite. -*- Tcl -*-
+
+if [istarget avr32-*-*] {
+ run_dump_test "allinsn"
+}
-Index: binutils-2.18/gas/testsuite/gas/avr32/allinsn.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/allinsn.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/allinsn.s
@@ -0,0 +1,3330 @@
+ .data
+foodata: .word 42
+ movh r12, 32767
+
+
-Index: binutils-2.18/gas/testsuite/gas/avr32/avr32.exp
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/avr32.exp 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/avr32.exp
@@ -0,0 +1,23 @@
+# AVR32 assembler testsuite. -*- Tcl -*-
+
+ run_dump_test "symdiff"
+ run_dump_test "symdiff_linkrelax"
+}
-Index: binutils-2.18/gas/testsuite/gas/avr32/call_nopic.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/call_nopic.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/call_nopic.d
@@ -0,0 +1,36 @@
+#source: call.s
+#as:
+
+00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/call_nopic_linkrelax.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/call_nopic_linkrelax.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/call_nopic_linkrelax.d
@@ -0,0 +1,43 @@
+#source: call.s
+#as: --linkrelax
+
+00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/call_pic.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/call_pic.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/call_pic.d
@@ -0,0 +1,36 @@
+#source: call.s
+#as: --pic
+
+00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/call_pic_linkrelax.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/call_pic_linkrelax.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/call_pic_linkrelax.d
@@ -0,0 +1,47 @@
+#source: call.s
+#as: --pic --linkrelax
+
+00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/call.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/call.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/call.s
@@ -0,0 +1,30 @@
+
+ .text
+ .section .text.init,"ax",@progbits
+different_section:
+ sub r0, r1, 0
-Index: binutils-2.18/gas/testsuite/gas/avr32/dwarf2.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/dwarf2.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/dwarf2.d
@@ -0,0 +1,42 @@
+#readelf: -wl
+#name: dwarf2
+ Special opcode .*: advance Address by 10 to 0xe and Line by 1 to 112
+ Advance PC by 530 to 220
+ Extended opcode 1: End of Sequence
-Index: binutils-2.18/gas/testsuite/gas/avr32/dwarf2.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/dwarf2.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/dwarf2.s
@@ -0,0 +1,67 @@
+# Source file used to test DWARF2 information for AVR32.
+
+ .uleb128 0, 0
+
+ .byte 0
-Index: binutils-2.18/gas/testsuite/gas/avr32/fpinsn.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/fpinsn.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/fpinsn.d
@@ -0,0 +1,271 @@
+#as:
+#objdump: -dr
+ *[0-9a-f]*: e1 a8 00 f0 cop cp0,cr0,cr15,cr0,0x10
+ *[0-9a-f]*: e1 a8 08 70 cop cp0,cr8,cr7,cr0,0x10
+ *[0-9a-f]*: e1 a8 06 80 cop cp0,cr6,cr8,cr0,0x10
-Index: binutils-2.18/gas/testsuite/gas/avr32/fpinsn.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/fpinsn.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/fpinsn.s
@@ -0,0 +1,266 @@
+
+ .text
+ fcastd.s fr0, fr15
+ fcastd.s fr8, fr7
+ fcastd.s fr6, fr8
-Index: binutils-2.18/gas/testsuite/gas/avr32/hwrd-lwrd.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/hwrd-lwrd.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/hwrd-lwrd.d
@@ -0,0 +1,47 @@
+#as:
+#objdump: -dr
+ 58: R_AVR32_LO16 \.text\+0x60
+ 5c: e0 10 00 00 andl r0,0x0
+ 5c: R_AVR32_LO16 extsym1
-Index: binutils-2.18/gas/testsuite/gas/avr32/hwrd-lwrd.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/hwrd-lwrd.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/hwrd-lwrd.s
@@ -0,0 +1,39 @@
+
+ .equ sym1, 0x12345678
+ andl r0, lo(extsym1)
+
+sym2:
-Index: binutils-2.18/gas/testsuite/gas/avr32/jmptable.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/jmptable.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/jmptable.d
@@ -0,0 +1,20 @@
+#source: jmptable.s
+#as:
+ 12: d7 03 nop
+ 14: d7 03 nop
+ 16: d7 03 nop
-Index: binutils-2.18/gas/testsuite/gas/avr32/jmptable_linkrelax.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/jmptable_linkrelax.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/jmptable_linkrelax.d
@@ -0,0 +1,25 @@
+#source: jmptable.s
+#as: --linkrelax
+ 12: d7 03 nop
+ 14: d7 03 nop
+ 16: d7 03 nop
-Index: binutils-2.18/gas/testsuite/gas/avr32/jmptable.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/jmptable.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/jmptable.s
@@ -0,0 +1,14 @@
+
+ .text
+1: nop
+2: nop
+3: nop
-Index: binutils-2.18/gas/testsuite/gas/avr32/lda_nopic.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/lda_nopic.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/lda_nopic.d
@@ -0,0 +1,32 @@
+#source: lda.s
+#as:
+ ...
+0001001c <toofar_positive>:
+ 1001c: fe ce 00 00 sub lr,pc,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d
@@ -0,0 +1,41 @@
+#source: lda.s
+#as: --linkrelax
+ \.\.\.
+00010020 <toofar_positive>:
+ 10020: fe ce 00 00 sub lr,pc,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/lda_pic.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/lda_pic.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/lda_pic.d
@@ -0,0 +1,32 @@
+#source: lda.s
+#as: --pic
+ ...
+00010014 <toofar_positive>:
+ 10014: fe ce 00 00 sub lr,pc,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/lda_pic_linkrelax.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/lda_pic_linkrelax.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/lda_pic_linkrelax.d
@@ -0,0 +1,40 @@
+#source: lda.s
+#as: --pic --linkrelax
+ ...
+0001002c <toofar_positive>:
+ 1002c: fe ce 00 00 sub lr,pc,0
-Index: binutils-2.18/gas/testsuite/gas/avr32/lda.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/lda.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/lda.s
@@ -0,0 +1,30 @@
+
+ .text
+ .data
+different_section:
+ .long 0x12345678
-Index: binutils-2.18/gas/testsuite/gas/avr32/pcrel.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/pcrel.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/pcrel.d
@@ -0,0 +1,64 @@
+#as:
+#objdump: -dr
+ e: d7 03 nop
+ 10: e0 a0 .. .. rcall [0-9a-f]+ <.*>
+ 10: R_AVR32_22H_PCREL \.text\+0xc
-Index: binutils-2.18/gas/testsuite/gas/avr32/pcrel.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/pcrel.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/pcrel.s
@@ -0,0 +1,57 @@
+
+ .text
+ rcall test_rcall2
+ nop
+ rcall test_rcall2
-Index: binutils-2.18/gas/testsuite/gas/avr32/pico.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/pico.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/pico.d
@@ -0,0 +1,149 @@
+#as:
+#objdump: -dr
+ *[0-9a-f]*: ed a0 33 01 stcm\.w cp1,--r0,cr8
+ *[0-9a-f]*: ed a7 33 80 stcm\.w cp1,--r7,cr15
+ *[0-9a-f]*: ed a8 33 7f stcm\.w cp1,--r8,cr8-cr14
-Index: binutils-2.18/gas/testsuite/gas/avr32/pico.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/pico.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/pico.s
@@ -0,0 +1,144 @@
+
+ .text
+ picostm.w --r0, coeff1_a
+ picostm.w --r7, config
+ picostm.w --r8, coeff1_a-vmu2_out
-Index: binutils-2.18/gas/testsuite/gas/avr32/pic_reloc.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/pic_reloc.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/pic_reloc.d
@@ -0,0 +1,27 @@
+#as:
+#objdump: -dr
+ 18: R_AVR32_GOT16S \.L4
+ 1c: ec f0 00 00 ld.w r0,r6\[0\]
+ 1c: R_AVR32_GOT16S ldw_got
-Index: binutils-2.18/gas/testsuite/gas/avr32/pic_reloc.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/pic_reloc.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/pic_reloc.s
@@ -0,0 +1,18 @@
+
+ .text
+ ld.w r0,r6[.L4@got]
+ ld.w r0,r6[ldw_got@got]
+.L4:
-Index: binutils-2.18/gas/testsuite/gas/avr32/symdiff.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/symdiff.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/symdiff.d
@@ -0,0 +1,24 @@
+#source: symdiff.s
+#as:
+ a: d7 03 nop
+ c: d7 03 nop
+ e: d7 03 nop
-Index: binutils-2.18/gas/testsuite/gas/avr32/symdiff_linkrelax.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/symdiff_linkrelax.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/symdiff_linkrelax.d
@@ -0,0 +1,28 @@
+#source: symdiff.s
+#as: --linkrelax
+ a: d7 03 nop
+ c: d7 03 nop
+ e: d7 03 nop
-Index: binutils-2.18/gas/testsuite/gas/avr32/symdiff.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/gas/testsuite/gas/avr32/symdiff.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/gas/testsuite/gas/avr32/symdiff.s
@@ -0,0 +1,19 @@
+
+ .text
+.L1: nop
+ nop
+.L2: nop
-Index: binutils-2.18/gas/write.c
-===================================================================
---- binutils-2.18.orig/gas/write.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/gas/write.c 2008-11-25 15:25:40.000000000 +0100
-@@ -1955,6 +1955,10 @@
+--- a/gas/write.c
++++ b/gas/write.c
+@@ -1955,6 +1955,10 @@ relax_frag (segT segment, fragS *fragP,
#endif /* defined (TC_GENERIC_RELAX_TABLE) */
/* Relax_align. Advance location counter to next address that has 'alignment'
lowest order bits all 0s, return size of adjustment made. */
static relax_addressT
-@@ -1974,6 +1978,7 @@
+@@ -1974,6 +1978,7 @@ relax_align (register relax_addressT add
#endif
return (new_address - address);
}
/* Now we have a segment, not a crowd of sub-segments, we can make
fr_address values.
-@@ -2017,7 +2022,7 @@
+@@ -2017,7 +2022,7 @@ relax_segment (struct frag *segment_frag
case rs_align_code:
case rs_align_test:
{
if (fragP->fr_subtype != 0 && offset > fragP->fr_subtype)
offset = 0;
-@@ -2218,10 +2223,10 @@
+@@ -2218,10 +2223,10 @@ relax_segment (struct frag *segment_frag
{
addressT oldoff, newoff;
if (fragP->fr_subtype != 0)
{
-Index: binutils-2.18/include/dis-asm.h
-===================================================================
---- binutils-2.18.orig/include/dis-asm.h 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/include/dis-asm.h 2008-11-25 15:25:40.000000000 +0100
-@@ -204,13 +204,14 @@
+--- a/include/dis-asm.h
++++ b/include/dis-asm.h
+@@ -204,13 +204,14 @@ typedef struct disassemble_info
} disassemble_info;
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 *);
-@@ -242,7 +243,7 @@
- extern int print_insn_little_mips (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_little_score (bfd_vma, disassemble_info *);
- extern int print_insn_m32c (bfd_vma, disassemble_info *);
- extern int print_insn_m32r (bfd_vma, disassemble_info *);
- extern int print_insn_m68hc11 (bfd_vma, disassemble_info *);
-@@ -290,7 +291,9 @@
+@@ -290,7 +291,9 @@ extern void print_i386_disassembler_opti
extern void print_mips_disassembler_options (FILE *);
extern void print_ppc_disassembler_options (FILE *);
extern void print_arm_disassembler_options (FILE *);
extern int get_arm_regname_num_options (void);
extern int set_arm_regname_option (int);
extern int get_arm_regnames (int, const char **, const char **, const char *const **);
-@@ -306,7 +309,7 @@
+@@ -306,7 +309,7 @@ extern void disassemble_init_for_target
/* Document any target specific options available from the disassembler. */
extern void disassembler_usage (FILE *);
/* This block of definitions is for particular callers who read instructions
into a buffer before calling the instruction decoder. */
-Index: binutils-2.18/include/elf/avr32.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/include/elf/avr32.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/include/elf/avr32.h
@@ -0,0 +1,98 @@
+/* AVR32 ELF support for BFD.
+ Copyright 2003-2006 Atmel Corporation.
+
+/* The total size in bytes of the Global Offset Table */
+#define DT_AVR32_GOTSZ 0x70000001
-Index: binutils-2.18/include/elf/common.h
-===================================================================
---- binutils-2.18.orig/include/elf/common.h 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/include/elf/common.h 2008-11-25 15:25:40.000000000 +0100
+--- a/include/elf/common.h
++++ b/include/elf/common.h
@@ -259,6 +259,9 @@
/* V850 backend magic number. Written in the absense of an ABI. */
#define EM_CYGNUS_V850 0x9080
/* old S/390 backend magic number. Written in the absence of an ABI. */
#define EM_S390_OLD 0xa390
-Index: binutils-2.18/ld/configdoc.texi
-===================================================================
---- binutils-2.18.orig/ld/configdoc.texi 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/configdoc.texi 2008-11-25 15:25:40.000000000 +0100
+--- a/ld/configdoc.texi
++++ b/ld/configdoc.texi
@@ -7,6 +7,7 @@
@set H8300
@set HPPA
@set M68HC11
@set MMIX
@set MSP430
-Index: binutils-2.18/ld/configure.tgt
-===================================================================
---- binutils-2.18.orig/ld/configure.tgt 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/configure.tgt 2008-11-25 15:25:40.000000000 +0100
-@@ -109,6 +109,9 @@
+--- a/ld/configure.tgt
++++ b/ld/configure.tgt
+@@ -109,6 +109,9 @@ xscale-*-elf) targ_emul=armelf
avr-*-*) targ_emul=avr2
targ_extra_emuls="avr1 avr3 avr4 avr5 avr6"
;;
bfin-*-elf) targ_emul=elf32bfin;
targ_extra_emuls="elf32bfinfd"
targ_extra_libpath=$targ_extra_emuls
-Index: binutils-2.18/ld/emulparams/avr32elf.sh
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/emulparams/avr32elf.sh 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/emulparams/avr32elf.sh
@@ -0,0 +1,163 @@
+# This script is called from ld/genscript.sh
+# There is a difference on how 'bash' and POSIX handles
+ ;;
+
+esac
-Index: binutils-2.18/ld/emulparams/avr32linux.sh
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/emulparams/avr32linux.sh 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/emulparams/avr32linux.sh
@@ -0,0 +1,14 @@
+ARCH=avr32
+SCRIPT_NAME=elf
+# essential for uClinux. We don't use those .s* sections on AVR32
+# anyway, so it shouldn't hurt for regular Linux either...
+NO_SMALL_DATA=yes
-Index: binutils-2.18/ld/emultempl/avr32elf.em
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/emultempl/avr32elf.em 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/emultempl/avr32elf.em
@@ -0,0 +1,133 @@
+# This shell script emits a C file. -*- C -*-
+# Copyright (C) 2007 Atmel Corporation
+#
+LDEMUL_AFTER_OPEN=avr32_elf_after_open
+LDEMUL_GET_SCRIPT=avr32_elf_get_script
-Index: binutils-2.18/ld/ld.info
-===================================================================
---- binutils-2.18.orig/ld/ld.info 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/ld.info 2008-11-25 15:25:40.000000000 +0100
-@@ -4347,6 +4347,8 @@
+--- a/ld/ld.info
++++ b/ld/ld.info
+@@ -4347,6 +4347,8 @@ not listed.
* ARM:: `ld' and the ARM family
* HPPA ELF32:: `ld' and HPPA 32-bit ELF
* MMIX:: `ld' and MMIX
-@@ -4487,7 +4489,7 @@
+@@ -4487,7 +4489,7 @@ PIC. This avoids problems on uClinux ta
used to generate relocatable binaries.
\1f
4.4 `ld' and the ARM family
===========================
-@@ -4588,7 +4590,31 @@
+@@ -4588,7 +4590,31 @@ enumeration values fitted into the small
diagnosed.
\1f
4.5 `ld' and HPPA 32-bit ELF Support
====================================
-@@ -6336,6 +6362,7 @@
+@@ -6336,6 +6362,7 @@ LD Index
* --no-check-sections: Options. (line 765)
* --no-define-common: Options. (line 787)
* --no-demangle: Options. (line 816)
* --no-dotsyms: PowerPC64 ELF64. (line 33)
* --no-enum-size-warning: ARM. (line 94)
* --no-gc-sections: Options. (line 848)
-@@ -6534,6 +6561,7 @@
+@@ -6534,6 +6561,7 @@ LD Index
* AT(LMA): Output Section LMA. (line 6)
* AT>LMA_REGION: Output Section LMA. (line 6)
* automatic data imports: WIN32. (line 170)
* back end: BFD. (line 6)
* BASE (MRI): MRI. (line 54)
* BE8: ARM. (line 23)
-@@ -7018,6 +7046,7 @@
+@@ -7018,6 +7046,7 @@ Node: H8/300\7f183897
Node: i960\7f185522
Node: M68HC11/68HC12\7f187207
Node: ARM\7f188910
Node: HPPA ELF32\7f193760
Node: MMIX\7f195383
Node: MSP430\7f196600
-Index: binutils-2.18/ld/ld.texinfo
-===================================================================
---- binutils-2.18.orig/ld/ld.texinfo 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/ld.texinfo 2008-11-25 15:25:40.000000000 +0100
+--- a/ld/ld.texinfo
++++ b/ld/ld.texinfo
@@ -21,6 +21,7 @@
@set UsesEnvVars
@set GENERIC
@set H8300
@set HPPA
@set I960
-@@ -139,6 +140,9 @@
+@@ -139,6 +140,9 @@ section entitled ``GNU Free Documentatio
@ifset ARM
* ARM:: ld and the ARM family
@end ifset
@ifset HPPA
* HPPA ELF32:: ld and HPPA 32-bit ELF
@end ifset
-@@ -5248,6 +5252,9 @@
+@@ -5248,6 +5252,9 @@ functionality are not listed.
@ifset ARM
* ARM:: @command{ld} and the ARM family
@end ifset
@ifset HPPA
* HPPA ELF32:: @command{ld} and HPPA 32-bit ELF
@end ifset
-@@ -5589,6 +5596,52 @@
+@@ -5589,6 +5596,52 @@ not be diagnosed.
@end ifclear
@end ifset
@ifset HPPA
@ifclear GENERIC
@raisesections
-Index: binutils-2.18/ld/Makefile.am
-===================================================================
---- binutils-2.18.orig/ld/Makefile.am 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/Makefile.am 2008-11-25 15:25:40.000000000 +0100
-@@ -137,7 +137,34 @@
+--- a/ld/Makefile.am
++++ b/ld/Makefile.am
+@@ -137,7 +137,34 @@ ALL_EMULATIONS = \
eavr3.o \
eavr4.o \
eavr5.o \
ecoff_i860.o \
ecoff_sparc.o \
eelf32_spu.o \
-@@ -622,6 +649,114 @@
+@@ -622,6 +649,114 @@ eavr6.c: $(srcdir)/emulparams/avr6.sh $(
$(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
${GEN_DEPENDS}
${GENSCRIPTS} avr6 "$(tdir_avr2)"
ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS}
${GENSCRIPTS} coff_i860 "$(tdir_coff_i860)"
-@@ -1877,7 +2012,9 @@
+@@ -1877,7 +2012,9 @@ install-exec-local: ld-new$(EXEEXT)
|| $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
fi
$(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
for f in ldscripts/*; do \
$(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
-Index: binutils-2.18/ld/scripttempl/elf_xip.sc
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/scripttempl/elf_xip.sc 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/scripttempl/elf_xip.sc
@@ -0,0 +1,456 @@
+#
+# Unusual variables checked by this code:
+ ${RELOCATING+${STACKNOTE}}
+}
+EOF
-Index: binutils-2.18/ld/testsuite/ld-auto-import/client.c
-===================================================================
---- binutils-2.18.orig/ld/testsuite/ld-auto-import/client.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/testsuite/ld-auto-import/client.c 2008-11-25 15:25:40.000000000 +0100
-@@ -1,55 +1,55 @@
--#include <stdio.h>\r
--\r
--extern int var;\r
--extern void (*func_ptr)(void);\r
--extern void print_var (void);\r
--extern void print_foo (void);\r
--extern int foo;\r
--extern int var2[2];\r
--\r
--typedef struct\r
--{\r
-- int * var;\r
-- void (* func_ptr)(void);\r
--}\r
--TEST;\r
--\r
--TEST xyz = { &var, print_var };\r
--\r
--int\r
--main (void)\r
--{\r
-- print_var ();\r
--\r
-- printf ("We see var = %d\n", var);\r
-- printf ("Setting var = 456\n");\r
--\r
-- var = 456;\r
--\r
-- print_var ();\r
-- printf ("We see var = %d\n\n", var);\r
--\r
-- var = 90;\r
-- print_var ();\r
-- printf ("We see var = %d\n\n", var);\r
--\r
-- print_foo ();\r
-- printf ("We see foo = %d\n", foo);\r
-- printf ("Setting foo = 19\n");\r
-- foo = 19;\r
-- print_foo ();\r
-- printf ("We see foo = %d\n\n", foo);\r
-- fflush (stdout);\r
--\r
-- printf ("Calling dllimported function pointer\n");\r
-- func_ptr ();\r
--\r
-- printf ("Calling functions using global structure\n"); \r
-- xyz.func_ptr ();\r
-- * xyz.var = 40;\r
-- xyz.func_ptr ();\r
--\r
-- printf ("We see var2[0] = %d\n\n", var2[0]);\r
--\r
-- return 0;\r
--}\r
-+#include <stdio.h>
-+
-+extern int var;
-+extern void (*func_ptr)(void);
-+extern void print_var (void);
-+extern void print_foo (void);
-+extern int foo;
-+extern int var2[2];
-+
-+typedef struct
-+{
-+ int * var;
-+ void (* func_ptr)(void);
-+}
-+TEST;
-+
-+TEST xyz = { &var, print_var };
-+
-+int
-+main (void)
-+{
-+ print_var ();
-+
-+ printf ("We see var = %d\n", var);
-+ printf ("Setting var = 456\n");
-+
-+ var = 456;
-+
-+ print_var ();
-+ printf ("We see var = %d\n\n", var);
-+
-+ var = 90;
-+ print_var ();
-+ printf ("We see var = %d\n\n", var);
-+
-+ print_foo ();
-+ printf ("We see foo = %d\n", foo);
-+ printf ("Setting foo = 19\n");
-+ foo = 19;
-+ print_foo ();
-+ printf ("We see foo = %d\n\n", foo);
-+ fflush (stdout);
-+
-+ printf ("Calling dllimported function pointer\n");
-+ func_ptr ();
-+
-+ printf ("Calling functions using global structure\n");
-+ xyz.func_ptr ();
-+ * xyz.var = 40;
-+ xyz.func_ptr ();
-+
-+ printf ("We see var2[0] = %d\n\n", var2[0]);
-+
-+ return 0;
-+}
-Index: binutils-2.18/ld/testsuite/ld-auto-import/dll.c
-===================================================================
---- binutils-2.18.orig/ld/testsuite/ld-auto-import/dll.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/testsuite/ld-auto-import/dll.c 2008-11-25 15:25:40.000000000 +0100
-@@ -1,20 +1,20 @@
--int var = 123;\r
--int foo = 121;\r
--\r
--int var2[2]= { 123, 456 };\r
--\r
--#include <stdio.h>\r
--\r
--void\r
--print_var (void)\r
--{\r
-- printf ("DLL sees var = %d\n", var);\r
--}\r
--\r
--void\r
--print_foo (void)\r
--{\r
-- printf ("DLL sees foo = %d\n", foo);\r
--}\r
--\r
--void (* func_ptr)(void) = print_foo;\r
-+int var = 123;
-+int foo = 121;
-+
-+int var2[2]= { 123, 456 };
-+
-+#include <stdio.h>
-+
-+void
-+print_var (void)
-+{
-+ printf ("DLL sees var = %d\n", var);
-+}
-+
-+void
-+print_foo (void)
-+{
-+ printf ("DLL sees foo = %d\n", foo);
-+}
-+
-+void (* func_ptr)(void) = print_foo;
-Index: binutils-2.18/ld/testsuite/ld-avr32/avr32.exp
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/testsuite/ld-avr32/avr32.exp 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/testsuite/ld-avr32/avr32.exp
@@ -0,0 +1,25 @@
+# Expect script for AVR32 ELF linker tests.
+# Copyright 2004-2006 Atmel Corporation.
+}
+
+run_dump_test "pcrel"
-Index: binutils-2.18/ld/testsuite/ld-avr32/pcrel.d
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/testsuite/ld-avr32/pcrel.d 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/testsuite/ld-avr32/pcrel.d
@@ -0,0 +1,74 @@
+#name: AVR32 ELF PC-relative external relocs
+#source: symbols.s
+Disassembly of section \.text\.pcrel21:
+a0200000 <extsym21>:
+a0200000: d7 03 nop
-Index: binutils-2.18/ld/testsuite/ld-avr32/pcrel.ld
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/testsuite/ld-avr32/pcrel.ld 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/testsuite/ld-avr32/pcrel.ld
@@ -0,0 +1,23 @@
+ENTRY(_start)
+SECTIONS
+ *(.text.pcrel21)
+ }
+}
-Index: binutils-2.18/ld/testsuite/ld-avr32/symbols.s
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/ld/testsuite/ld-avr32/symbols.s 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/ld/testsuite/ld-avr32/symbols.s
@@ -0,0 +1,20 @@
+ .text
+ .global _start
+ .global extsym21
+extsym21:
+ nop
-Index: binutils-2.18/opcodes/avr32-asm.c
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/opcodes/avr32-asm.c 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/opcodes/avr32-asm.c
@@ -0,0 +1,264 @@
+/* Assembler interface for AVR32.
+ Copyright 2005, 2006 Atmel Corporation.
+ { cr_table, AVR32_NR_CPREGS, NULL, N_("coprocessor register expected") },
+ };
+#endif
-Index: binutils-2.18/opcodes/avr32-asm.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/opcodes/avr32-asm.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/opcodes/avr32-asm.h
@@ -0,0 +1,42 @@
+/* Assembler interface for AVR32.
+ Copyright 2005, 2006 Atmel Corporation.
+avr32_make_regmask8(unsigned long regmask16, unsigned long *regmask8);
+
+#endif /* __OPCODES_AVR32_ASM_H */
-Index: binutils-2.18/opcodes/avr32-dis.c
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/opcodes/avr32-dis.c 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/opcodes/avr32-dis.c
@@ -0,0 +1,891 @@
+/* Print AVR32 instructions for GDB and objdump.
+ Copyright 2005, 2006 Atmel Corporation.
+{
+
+}
-Index: binutils-2.18/opcodes/avr32-opc.c
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/opcodes/avr32-opc.c 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/opcodes/avr32-opc.c
@@ -0,0 +1,6932 @@
+/* Opcode tables for AVR32.
+ Copyright 2005, 2006 Atmel Corporation.
+#undef NORMAL_MNEMONIC
+#undef ALIAS_MNEMONIC
+#undef FP_MNEMONIC
-Index: binutils-2.18/opcodes/avr32-opc.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/opcodes/avr32-opc.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/opcodes/avr32-opc.h
@@ -0,0 +1,2370 @@
+/* Opcode tables for AVR32.
+ Copyright 2005, 2006 Atmel Corporation.
+ AVR32_PARSER__END_
+ };
+#define AVR32_NR_PARSERS AVR32_PARSER__END_
-Index: binutils-2.18/opcodes/configure.in
-===================================================================
---- binutils-2.18.orig/opcodes/configure.in 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/opcodes/configure.in 2008-11-25 15:25:40.000000000 +0100
-@@ -158,6 +158,7 @@
+--- a/opcodes/configure.in
++++ b/opcodes/configure.in
+@@ -158,6 +158,7 @@ if test x${all_targets} = xfalse ; then
bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
bfd_arm_arch) ta="$ta arm-dis.lo" ;;
bfd_avr_arch) ta="$ta avr-dis.lo" ;;
bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
-@@ -216,7 +217,7 @@
+@@ -216,7 +217,7 @@ if test x${all_targets} = xfalse ; then
ta="$ta sh64-dis.lo sh64-opc.lo"
archdefs="$archdefs -DINCLUDE_SHMEDIA"
break;;
done
ta="$ta sh-dis.lo cgen-bitset.lo" ;;
bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
-Index: binutils-2.18/opcodes/disassemble.c
-===================================================================
---- binutils-2.18.orig/opcodes/disassemble.c 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/opcodes/disassemble.c 2008-11-25 15:25:40.000000000 +0100
+--- a/opcodes/disassemble.c
++++ b/opcodes/disassemble.c
@@ -27,6 +27,7 @@
#define ARCH_arc
#define ARCH_arm
#define ARCH_bfin
#define ARCH_cr16
#define ARCH_cris
-@@ -128,6 +129,11 @@
+@@ -128,6 +129,11 @@ disassembler (abfd)
disassemble = print_insn_avr;
break;
#endif
#ifdef ARCH_bfin
case bfd_arch_bfin:
disassemble = print_insn_bfin;
-@@ -346,9 +352,9 @@
+@@ -346,9 +352,9 @@ disassembler (abfd)
#ifdef ARCH_score
case bfd_arch_score:
if (bfd_big_endian (abfd))
break;
#endif
#ifdef ARCH_sh
-@@ -466,6 +472,9 @@
+@@ -466,6 +472,9 @@ disassembler_usage (stream)
#ifdef ARCH_i386
print_i386_disassembler_options (stream);
#endif
return;
}
-Index: binutils-2.18/opcodes/Makefile.am
-===================================================================
---- binutils-2.18.orig/opcodes/Makefile.am 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/opcodes/Makefile.am 2008-11-25 15:25:40.000000000 +0100
-@@ -30,6 +30,7 @@
+--- a/opcodes/Makefile.am
++++ b/opcodes/Makefile.am
+@@ -30,6 +30,7 @@ LIBIBERTY = ../libiberty/libiberty.a
# Header files.
HFILES = \
cgen-ops.h cgen-types.h \
fr30-desc.h fr30-opc.h \
frv-desc.h frv-opc.h \
h8500-opc.h \
-@@ -63,6 +64,9 @@
+@@ -63,6 +64,9 @@ CFILES = \
arc-ext.c \
arm-dis.c \
avr-dis.c \
bfin-dis.c \
cgen-asm.c \
cgen-bitset.c \
-@@ -217,6 +221,9 @@
+@@ -217,6 +221,9 @@ ALL_MACHINES = \
arc-ext.lo \
arm-dis.lo \
avr-dis.lo \
bfin-dis.lo \
cgen-asm.lo \
cgen-bitset.lo \
-@@ -674,6 +681,15 @@
+@@ -674,6 +681,15 @@ avr-dis.lo: avr-dis.c sysdep.h config.h
$(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
opintl.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
$(INCDIR)/opcode/avr.h
bfin-dis.lo: bfin-dis.c $(INCDIR)/opcode/bfin.h $(INCDIR)/dis-asm.h \
$(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h
cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
-Index: binutils-2.18/configure
-===================================================================
---- binutils-2.18.orig/configure 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/configure 2008-11-25 15:25:40.000000000 +0100
-@@ -6125,10 +6125,10 @@
- *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
- *)
-
-- # For an installed makeinfo, we require it to be from texinfo 4.4 or
-+ # For an installed makeinfo, we require it to be from texinfo 4.6 or
- # higher, else we use the "missing" dummy.
- if ${MAKEINFO} --version \
-- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
-+ | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
- :
- else
- MAKEINFO="$MISSING makeinfo"
-Index: binutils-2.18/configure.ac
-===================================================================
---- binutils-2.18.orig/configure.ac 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/configure.ac 2008-11-25 15:25:40.000000000 +0100
-@@ -2400,10 +2400,10 @@
- *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
- *)
- changequote(,)
-- # For an installed makeinfo, we require it to be from texinfo 4.4 or
-+ # For an installed makeinfo, we require it to be from texinfo 4.6 or
- # higher, else we use the "missing" dummy.
- if ${MAKEINFO} --version \
-- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
-+ | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
- :
- else
- MAKEINFO="$MISSING makeinfo"
-Index: binutils-2.18/bfd/bfd-in2.h
-===================================================================
---- binutils-2.18.orig/bfd/bfd-in2.h 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/bfd-in2.h 2008-11-25 15:25:40.000000000 +0100
-@@ -2017,6 +2017,11 @@
+--- a/bfd/bfd-in2.h
++++ b/bfd/bfd-in2.h
+@@ -2017,6 +2017,11 @@ enum bfd_architecture
#define bfd_mach_avr4 4
#define bfd_mach_avr5 5
#define bfd_mach_avr6 6
bfd_arch_bfin, /* ADI Blackfin */
#define bfd_mach_bfin 1
bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */
-@@ -3758,6 +3763,88 @@
+@@ -3758,6 +3763,88 @@ instructions */
instructions */
BFD_RELOC_AVR_6_ADIW,
/* Direct 12 bit. */
BFD_RELOC_390_12,
-Index: binutils-2.18/bfd/bfd-in3.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/bfd-in3.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/bfd-in3.h
@@ -0,0 +1,5406 @@
+/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
+ generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",
+}
+#endif
+#endif
-Index: binutils-2.18/bfd/bfd_stdint.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/bfd_stdint.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/bfd_stdint.h
@@ -0,0 +1,47 @@
+/* generated for gcc (GCC) 4.2.4 (Ubuntu 4.2.4-3ubuntu4) */
+
+#endif
+
+#endif /* GCC_GENERATED_STDINT_H */
-Index: binutils-2.18/bfd/configure
-===================================================================
---- binutils-2.18.orig/bfd/configure 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/configure 2008-11-25 15:25:40.000000000 +0100
-@@ -19041,6 +19041,7 @@
+--- a/bfd/configure
++++ b/bfd/configure
+@@ -19041,6 +19041,7 @@ do
bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
-Index: binutils-2.18/bfd/doc/bfd.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/doc/bfd.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/doc/bfd.h
@@ -0,0 +1,5493 @@
+/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
+ generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",
+}
+#endif
+#endif
-Index: binutils-2.18/bfd/doc/libbfd.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/doc/libbfd.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/doc/libbfd.h
@@ -0,0 +1,2074 @@
+/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
+ generated from "libbfd-in.h", "init.c", "libbfd.c", "bfdio.c",
+/* Extracted from elf.c. */
+struct elf_internal_shdr *bfd_elf_find_section (bfd *abfd, char *name);
+
-Index: binutils-2.18/bfd/doc/libcoff.h
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/doc/libcoff.h 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/doc/libcoff.h
@@ -0,0 +1,936 @@
+/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
+ generated from "libcoff-in.h" and "coffcode.h".
+#define bfd_coff_final_link_postscript(a,p) \
+ ((coff_backend_info (a)->_bfd_coff_final_link_postscript) (a, p))
+
-Index: binutils-2.18/bfd/libbfd.h
-===================================================================
---- binutils-2.18.orig/bfd/libbfd.h 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/libbfd.h 2008-11-25 15:25:40.000000000 +0100
-@@ -1601,6 +1601,48 @@
+--- a/bfd/libbfd.h
++++ b/bfd/libbfd.h
+@@ -1601,6 +1601,48 @@ static const char *const bfd_reloc_code_
"BFD_RELOC_AVR_LDI",
"BFD_RELOC_AVR_6",
"BFD_RELOC_AVR_6_ADIW",
"BFD_RELOC_390_12",
"BFD_RELOC_390_GOT12",
"BFD_RELOC_390_PLT32",
-Index: binutils-2.18/bfd/libtool
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/libtool 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/libtool
@@ -0,0 +1,7871 @@
+#! /bin/bash
+
+# sh-indentation:2
+# End:
+# vi:sw=2
-Index: binutils-2.18/bfd/Makefile.in
-===================================================================
---- binutils-2.18.orig/bfd/Makefile.in 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/bfd/Makefile.in 2008-11-25 15:25:40.000000000 +0100
-@@ -312,6 +312,7 @@
+--- a/bfd/Makefile.in
++++ b/bfd/Makefile.in
+@@ -312,6 +312,7 @@ ALL_MACHINES = \
cpu-arc.lo \
cpu-arm.lo \
cpu-avr.lo \
cpu-bfin.lo \
cpu-cr16.lo \
cpu-cr16c.lo \
-@@ -493,6 +494,7 @@
+@@ -493,6 +494,7 @@ BFD32_BACKENDS = \
elf32-arc.lo \
elf32-arm.lo \
elf32-avr.lo \
elf32-bfin.lo \
elf32-cr16.lo \
elf32-cr16c.lo \
-@@ -1908,6 +1910,10 @@
+@@ -1908,6 +1910,10 @@ elf32-cr16.lo: elf32-cr16.c $(INCDIR)/fi
$(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
$(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
$(INCDIR)/elf/cr16.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
$(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
$(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
-Index: binutils-2.18/bfd/po/Makefile.in
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/bfd/po/Makefile.in 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/bfd/po/Makefile.in
@@ -0,0 +1,297 @@
+# Makefile for program source directory in GNU NLS utilities package.
+# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
+# Tell versions [3.59,3.63) of GNU make not to export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
-Index: binutils-2.18/binutils/Makefile.in
-===================================================================
---- binutils-2.18.orig/binutils/Makefile.in 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/binutils/Makefile.in 2008-11-25 15:25:40.000000000 +0100
-@@ -1327,7 +1327,7 @@
+--- a/binutils/Makefile.in
++++ b/binutils/Makefile.in
+@@ -1327,7 +1327,7 @@ readelf.o: readelf.c sysdep.h $(INCDIR)/
$(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bucomm.h dwarf.h \
$(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
$(INCDIR)/elf/h8.h $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/alpha.h \
$(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h $(INCDIR)/elf/crx.h \
$(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
$(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/hppa.h \
-Index: binutils-2.18/ld/Makefile.in
-===================================================================
---- binutils-2.18.orig/ld/Makefile.in 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/ld/Makefile.in 2008-11-25 15:25:40.000000000 +0100
-@@ -384,7 +384,34 @@
+--- a/ld/Makefile.in
++++ b/ld/Makefile.in
+@@ -384,7 +384,34 @@ ALL_EMULATIONS = \
eavr3.o \
eavr4.o \
eavr5.o \
ecoff_i860.o \
ecoff_sparc.o \
eelf32_spu.o \
-@@ -1448,6 +1475,114 @@
+@@ -1448,6 +1475,114 @@ eavr6.c: $(srcdir)/emulparams/avr6.sh $(
$(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
${GEN_DEPENDS}
${GENSCRIPTS} avr6 "$(tdir_avr2)"
ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS}
${GENSCRIPTS} coff_i860 "$(tdir_coff_i860)"
-@@ -2679,7 +2814,9 @@
+@@ -2679,7 +2814,9 @@ install-exec-local: ld-new$(EXEEXT)
|| $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
fi
$(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
for f in ldscripts/*; do \
$(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
-Index: binutils-2.18/libiberty/required-list
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.18/libiberty/required-list 2008-11-25 15:25:40.000000000 +0100
+--- /dev/null
++++ b/libiberty/required-list
@@ -0,0 +1 @@
+./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o
-Index: binutils-2.18/opcodes/configure
-===================================================================
---- binutils-2.18.orig/opcodes/configure 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/opcodes/configure 2008-11-25 15:25:40.000000000 +0100
-@@ -11418,6 +11418,7 @@
+--- a/opcodes/configure
++++ b/opcodes/configure
+@@ -11418,6 +11418,7 @@ if test x${all_targets} = xfalse ; then
bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
bfd_arm_arch) ta="$ta arm-dis.lo" ;;
bfd_avr_arch) ta="$ta avr-dis.lo" ;;
bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
-@@ -11476,7 +11477,7 @@
+@@ -11476,7 +11477,7 @@ if test x${all_targets} = xfalse ; then
ta="$ta sh64-dis.lo sh64-opc.lo"
archdefs="$archdefs -DINCLUDE_SHMEDIA"
break;;
done
ta="$ta sh-dis.lo cgen-bitset.lo" ;;
bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
-Index: binutils-2.18/opcodes/Makefile.in
-===================================================================
---- binutils-2.18.orig/opcodes/Makefile.in 2008-11-25 15:24:48.000000000 +0100
-+++ binutils-2.18/opcodes/Makefile.in 2008-11-25 15:25:40.000000000 +0100
-@@ -257,6 +257,7 @@
+--- a/opcodes/Makefile.in
++++ b/opcodes/Makefile.in
+@@ -257,6 +257,7 @@ LIBIBERTY = ../libiberty/libiberty.a
# Header files.
HFILES = \
cgen-ops.h cgen-types.h \
fr30-desc.h fr30-opc.h \
frv-desc.h frv-opc.h \
h8500-opc.h \
-@@ -291,6 +292,9 @@
+@@ -291,6 +292,9 @@ CFILES = \
arc-ext.c \
arm-dis.c \
avr-dis.c \
bfin-dis.c \
cgen-asm.c \
cgen-bitset.c \
-@@ -445,6 +449,9 @@
+@@ -445,6 +449,9 @@ ALL_MACHINES = \
arc-ext.lo \
arm-dis.lo \
avr-dis.lo \
bfin-dis.lo \
cgen-asm.lo \
cgen-bitset.lo \
-@@ -1225,6 +1232,15 @@
+@@ -1225,6 +1232,15 @@ avr-dis.lo: avr-dis.c sysdep.h config.h
$(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
opintl.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
$(INCDIR)/opcode/avr.h