[package/ubox] depend on libubox
[openwrt/svn-archive/archive.git] / toolchain / binutils / patches / 2.19.1 / 700-avr32.patch
index dcc75a7c7a408b54becab619f198e4923177ddee..8020c6faf3da2ea0fb4842e92980a60c671ba434 100644 (file)
@@ -13,7 +13,7 @@
  .  bfd_arch_bfin,        {* ADI Blackfin *}
  .#define bfd_mach_bfin          1
  .  bfd_arch_cr16,       {* National Semiconductor CompactRISC (ie CR16). *}
-@@ -454,6 +460,7 @@ extern const bfd_arch_info_type bfd_alph
+@@ -449,6 +455,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;
@@ -21,7 +21,7 @@
  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;
-@@ -526,6 +533,7 @@ static const bfd_arch_info_type * const 
+@@ -520,6 +527,7 @@ static const bfd_arch_info_type * const
      &bfd_arc_arch,
      &bfd_arm_arch,
      &bfd_avr_arch,
@@ -44,7 +44,7 @@
    bfd_arch_bfin,        /* ADI Blackfin */
  #define bfd_mach_bfin          1
    bfd_arch_cr16,       /* National Semiconductor CompactRISC (ie CR16). */
-@@ -3748,6 +3754,88 @@ instructions  */
+@@ -3743,6 +3749,88 @@ instructions  */
  instructions  */
    BFD_RELOC_AVR_6_ADIW,
  
      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" ;;
---- a/bfd/cpu-avr32.c
+--- /dev/null
 +++ b/bfd/cpu-avr32.c
 @@ -0,0 +1,52 @@
 +/* BFD library support routines for AVR32.
 +
 +const bfd_arch_info_type bfd_avr32_arch =
 +  N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]);
---- a/bfd/elf32-avr32.c
+--- /dev/null
 +++ b/bfd/elf32-avr32.c
 @@ -0,0 +1,3915 @@
 +/* AVR32-specific support for 32-bit ELF.
 +#define elf_backend_got_header_size   AVR32_GOT_HEADER_SIZE
 +
 +#include "elf32-target.h"
---- a/bfd/elf32-avr32.h
+--- /dev/null
 +++ b/bfd/elf32-avr32.h
 @@ -0,0 +1,23 @@
 +/* AVR32-specific support for 32-bit ELF.
        cpu-bfin.lo \
        cpu-cr16.lo \
        cpu-cr16c.lo \
-@@ -247,6 +248,7 @@ BFD32_BACKENDS = \
+@@ -245,6 +246,7 @@ BFD32_BACKENDS = \
        elf32-arc.lo \
        elf32-arm.lo \
        elf32-avr.lo \
        elf32-bfin.lo \
        elf32-cr16.lo \
        elf32-cr16c.lo \
-@@ -1355,6 +1357,10 @@ elf32-cr16.lo: elf32-cr16.c $(INCDIR)/fi
+@@ -1350,6 +1352,10 @@ elf32-cr16.lo: elf32-cr16.c $(INCDIR)/fi
    $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
    $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
    $(INCDIR)/elf/cr16.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
        cpu-bfin.lo \
        cpu-cr16.lo \
        cpu-cr16c.lo \
-@@ -501,6 +502,7 @@ BFD32_BACKENDS = \
+@@ -499,6 +500,7 @@ BFD32_BACKENDS = \
        elf32-arc.lo \
        elf32-arm.lo \
        elf32-avr.lo \
        elf32-bfin.lo \
        elf32-cr16.lo \
        elf32-cr16c.lo \
-@@ -1939,6 +1941,10 @@ elf32-cr16.lo: elf32-cr16.c $(INCDIR)/fi
+@@ -1934,6 +1936,10 @@ elf32-cr16.lo: elf32-cr16.c $(INCDIR)/fi
    $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
    $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
    $(INCDIR)/elf/cr16.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
  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;
-@@ -898,6 +899,7 @@ static const bfd_target * const _bfd_tar
+@@ -896,6 +897,7 @@ static const bfd_target * const _bfd_tar
        &bfd_efi_rtdrv_ia64_vec,
  #endif
        &bfd_elf32_avr_vec,
  
    input_scrub_end ();
  
---- a/gas/config/tc-avr32.c
+--- /dev/null
 +++ b/gas/config/tc-avr32.c
 @@ -0,0 +1,4829 @@
 +/* Assembler implementation for AVR32.
 +
 +/* vim: syntax=c sw=2
 + */
---- a/gas/config/tc-avr32.h
+--- /dev/null
 +++ b/gas/config/tc-avr32.h
 @@ -0,0 +1,325 @@
 +/* Assembler definitions for AVR32.
    bfin*)              cpu_type=bfin endian=little ;;
    c4x*)                       cpu_type=tic4x ;;
    cr16*)              cpu_type=cr16 endian=little ;;
-@@ -134,6 +135,9 @@ case ${generic_target} in
+@@ -133,6 +134,9 @@ case ${generic_target} in
  
    cr16-*-elf*)                                fmt=elf ;;
  
  @ifset BFIN
  @include c-bfin.texi
  @end ifset
---- a/gas/doc/c-avr32.texi
+--- /dev/null
 +++ b/gas/doc/c-avr32.texi
 @@ -0,0 +1,244 @@
 +@c Copyright 2005, 2006, 2007, 2008, 2009
        bfin \
        cr16 \
        cris \
-@@ -242,6 +243,7 @@ TARGET_CPU_CFILES = \
+@@ -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 \
-@@ -303,6 +305,7 @@ TARGET_CPU_HFILES = \
+@@ -301,6 +303,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 \
-@@ -1075,6 +1078,11 @@ DEPTC_avr_elf = $(srcdir)/config/obj-elf
+@@ -1073,6 +1076,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/external.h $(INCDIR)/elf/internal.h \
    $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h dwarf2dbg.h \
-@@ -1511,6 +1519,11 @@ DEPOBJ_avr_elf = $(srcdir)/config/obj-el
+@@ -1501,6 +1509,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 \
    struc-symbol.h $(INCDIR)/aout/aout64.h
  DEPOBJ_bfin_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
    $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
    $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h dwarf2dbg.h \
-@@ -1884,6 +1897,9 @@ DEP_cr16_elf = $(srcdir)/config/obj-elf.
+@@ -1869,6 +1882,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
        bfin \
        cr16 \
        cris \
-@@ -489,6 +490,7 @@ TARGET_CPU_CFILES = \
+@@ -488,6 +489,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 \
-@@ -550,6 +552,7 @@ TARGET_CPU_HFILES = \
+@@ -548,6 +550,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 \
-@@ -844,6 +847,12 @@ DEPTC_avr_elf = $(srcdir)/config/obj-elf
+@@ -841,6 +844,12 @@ DEPTC_avr_elf = $(srcdir)/config/obj-elf
    $(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/external.h $(INCDIR)/elf/internal.h \
    $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h dwarf2dbg.h \
-@@ -1359,6 +1368,12 @@ DEPOBJ_avr_elf = $(srcdir)/config/obj-el
+@@ -1349,6 +1358,12 @@ DEPOBJ_avr_elf = $(srcdir)/config/obj-el
    $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
    struc-symbol.h $(INCDIR)/aout/aout64.h
  
  DEPOBJ_bfin_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
    $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
    $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h dwarf2dbg.h \
-@@ -1814,6 +1829,10 @@ DEP_cr16_elf = $(srcdir)/config/obj-elf.
+@@ -1799,6 +1814,10 @@ DEP_cr16_elf = $(srcdir)/config/obj-elf.
    $(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
  
---- a/gas/testsuite/gas/avr32/aliases.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/aliases.d
 @@ -0,0 +1,19 @@
 +#as:
 +   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
---- a/gas/testsuite/gas/avr32/aliases.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/aliases.s
 @@ -0,0 +1,14 @@
 +      .text
 +      st.b    r12, r0
 +      st.h    r12, r0
 +      st.w    r12, r0
---- a/gas/testsuite/gas/avr32/allinsn.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/allinsn.d
 @@ -0,0 +1,2987 @@
 +#as:
 + *[0-9a-f]*:  fc 15 00 01     movh r5,0x1
 + *[0-9a-f]*:  fc 1c 7f ff     movh r12,0x7fff
 +
---- a/gas/testsuite/gas/avr32/allinsn.exp
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/allinsn.exp
 @@ -0,0 +1,5 @@
 +# AVR32 assembler testsuite. -*- Tcl -*-
 +if [istarget avr32-*-*] {
 +    run_dump_test "allinsn"
 +}
---- a/gas/testsuite/gas/avr32/allinsn.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/allinsn.s
 @@ -0,0 +1,3330 @@
 + .data
 +      movh    r12, 32767
 +      
 +              
---- a/gas/testsuite/gas/avr32/avr32.exp
+--- /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"
 +}
---- a/gas/testsuite/gas/avr32/call_nopic.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/call_nopic.d
 @@ -0,0 +1,36 @@
 +#source: call.s
 +
 +00000000 <different_section>:
 +   0: e2 c0 00 00     sub r0,r1,0
---- a/gas/testsuite/gas/avr32/call_nopic_linkrelax.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/call_nopic_linkrelax.d
 @@ -0,0 +1,43 @@
 +#source: call.s
 +
 +00000000 <different_section>:
 +   0: e2 c0 00 00     sub r0,r1,0
---- a/gas/testsuite/gas/avr32/call_pic.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/call_pic.d
 @@ -0,0 +1,36 @@
 +#source: call.s
 +
 +00000000 <different_section>:
 +   0: e2 c0 00 00     sub r0,r1,0
---- a/gas/testsuite/gas/avr32/call_pic_linkrelax.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/call_pic_linkrelax.d
 @@ -0,0 +1,47 @@
 +#source: call.s
 +
 +00000000 <different_section>:
 +   0: e2 c0 00 00     sub r0,r1,0
---- a/gas/testsuite/gas/avr32/call.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/call.s
 @@ -0,0 +1,30 @@
 +
 +      .section .text.init,"ax",@progbits
 +different_section:
 +      sub     r0, r1, 0
---- a/gas/testsuite/gas/avr32/dwarf2.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/dwarf2.d
 @@ -0,0 +1,42 @@
 +#readelf: -wl
 +  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
---- a/gas/testsuite/gas/avr32/dwarf2.s
+--- /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
---- a/gas/testsuite/gas/avr32/fpinsn.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/fpinsn.d
 @@ -0,0 +1,271 @@
 +#as:
 + *[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
---- a/gas/testsuite/gas/avr32/fpinsn.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/fpinsn.s
 @@ -0,0 +1,266 @@
 +
 +      fcastd.s fr0, fr15
 +      fcastd.s fr8, fr7
 +      fcastd.s fr6, fr8
---- a/gas/testsuite/gas/avr32/hwrd-lwrd.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/hwrd-lwrd.d
 @@ -0,0 +1,47 @@
 +#as:
 +                      58: R_AVR32_LO16        \.text\+0x60
 +  5c: e0 10 00 00     andl r0,0x0
 +                      5c: R_AVR32_LO16        extsym1
---- a/gas/testsuite/gas/avr32/hwrd-lwrd.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/hwrd-lwrd.s
 @@ -0,0 +1,39 @@
 +
 +        andl  r0, lo(extsym1)
 +
 +sym2:
---- a/gas/testsuite/gas/avr32/jmptable.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/jmptable.d
 @@ -0,0 +1,20 @@
 +#source: jmptable.s
 +  12: d7 03           nop
 +  14: d7 03           nop
 +  16: d7 03           nop
---- a/gas/testsuite/gas/avr32/jmptable_linkrelax.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/jmptable_linkrelax.d
 @@ -0,0 +1,25 @@
 +#source: jmptable.s
 +  12: d7 03           nop
 +  14: d7 03           nop
 +  16: d7 03           nop
---- a/gas/testsuite/gas/avr32/jmptable.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/jmptable.s
 @@ -0,0 +1,14 @@
 +
 +1:    nop
 +2:    nop
 +3:    nop
---- a/gas/testsuite/gas/avr32/lda_nopic.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/lda_nopic.d
 @@ -0,0 +1,32 @@
 +#source: lda.s
 +      ...
 +0001001c <toofar_positive>:
 +   1001c:     fe ce 00 00     sub lr,pc,0
---- a/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d
 @@ -0,0 +1,41 @@
 +#source: lda.s
 +      \.\.\.
 +00010020 <toofar_positive>:
 +   10020:     fe ce 00 00     sub lr,pc,0
---- a/gas/testsuite/gas/avr32/lda_pic.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/lda_pic.d
 @@ -0,0 +1,32 @@
 +#source: lda.s
 +      ...
 +00010014 <toofar_positive>:
 +   10014:     fe ce 00 00     sub lr,pc,0
---- a/gas/testsuite/gas/avr32/lda_pic_linkrelax.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/lda_pic_linkrelax.d
 @@ -0,0 +1,40 @@
 +#source: lda.s
 +      ...
 +0001002c <toofar_positive>:
 +   1002c:     fe ce 00 00     sub lr,pc,0
---- a/gas/testsuite/gas/avr32/lda.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/lda.s
 @@ -0,0 +1,30 @@
 +
 +      .data
 +different_section:
 +      .long   0x12345678
---- a/gas/testsuite/gas/avr32/pcrel.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/pcrel.d
 @@ -0,0 +1,64 @@
 +#as:
 +   e: d7 03           nop
 +  10: e0 a0 .. ..     rcall [0-9a-f]+ <.*>
 +                      10: R_AVR32_22H_PCREL   \.text\+0xc
---- a/gas/testsuite/gas/avr32/pcrel.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/pcrel.s
 @@ -0,0 +1,57 @@
 +
 +      rcall   test_rcall2
 +      nop
 +      rcall   test_rcall2
---- a/gas/testsuite/gas/avr32/pico.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/pico.d
 @@ -0,0 +1,149 @@
 +#as:
 + *[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
---- a/gas/testsuite/gas/avr32/pico.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/pico.s
 @@ -0,0 +1,144 @@
 +
 +      picostm.w       --r0, coeff1_a
 +      picostm.w       --r7, config
 +      picostm.w       --r8, coeff1_a-vmu2_out
---- a/gas/testsuite/gas/avr32/pic_reloc.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/pic_reloc.d
 @@ -0,0 +1,27 @@
 +#as:
 +                      18: R_AVR32_GOT16S      \.L4
 +  1c: ec f0 00 00     ld.w r0,r6\[0\]
 +                      1c: R_AVR32_GOT16S      ldw_got
---- a/gas/testsuite/gas/avr32/pic_reloc.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/pic_reloc.s
 @@ -0,0 +1,18 @@
 +
 +      ld.w    r0,r6[.L4@got]
 +      ld.w    r0,r6[ldw_got@got]
 +.L4:
---- a/gas/testsuite/gas/avr32/symdiff.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/symdiff.d
 @@ -0,0 +1,24 @@
 +#source: symdiff.s
 +   a: d7 03           nop
 +   c: d7 03           nop
 +   e: d7 03           nop
---- a/gas/testsuite/gas/avr32/symdiff_linkrelax.d
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/symdiff_linkrelax.d
 @@ -0,0 +1,28 @@
 +#source: symdiff.s
 +   a: d7 03           nop
 +   c: d7 03           nop
 +   e: d7 03           nop
---- a/gas/testsuite/gas/avr32/symdiff.s
+--- /dev/null
 +++ b/gas/testsuite/gas/avr32/symdiff.s
 @@ -0,0 +1,19 @@
 +
 +.L2:  nop
 --- a/gas/write.c
 +++ b/gas/write.c
-@@ -1993,6 +1993,10 @@ relax_frag (segT segment, fragS *fragP, 
+@@ -1993,6 +1993,10 @@ relax_frag (segT segment, fragS *fragP,
  
  #endif /* defined (TC_GENERIC_RELAX_TABLE)  */
  
  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 *);
-@@ -293,7 +294,9 @@ extern void print_i386_disassembler_opti
+@@ -292,7 +293,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 void print_s390_disassembler_options (FILE *);
  extern int  get_arm_regname_num_options (void);
  extern int  set_arm_regname_option (int);
---- a/include/elf/avr32.h
+--- /dev/null
 +++ b/include/elf/avr32.h
 @@ -0,0 +1,98 @@
 +/* AVR32 ELF support for BFD.
  bfin-*-elf)           targ_emul=elf32bfin;
                        targ_extra_emuls="elf32bfinfd"
                        targ_extra_libpath=$targ_extra_emuls
---- a/ld/emulparams/avr32elf.sh
+--- /dev/null
 +++ b/ld/emulparams/avr32elf.sh
 @@ -0,0 +1,274 @@
 +# This script is called from ld/genscript.sh 
 +    ;;
 +
 +esac
---- a/ld/emulparams/avr32linux.sh
+--- /dev/null
 +++ b/ld/emulparams/avr32linux.sh
 @@ -0,0 +1,14 @@
 +ARCH=avr32
 +# 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
---- a/ld/emultempl/avr32elf.em
+--- /dev/null
 +++ b/ld/emultempl/avr32elf.em
 @@ -0,0 +1,162 @@
 +# This shell script emits a C file. -*- C -*-
        ecoff_i860.o \
        ecoff_sparc.o \
        eelf32_spu.o \
-@@ -648,6 +695,194 @@ eavr6.c: $(srcdir)/emulparams/avr6.sh $(
+@@ -646,6 +693,194 @@ eavr6.c: $(srcdir)/emulparams/avr6.sh $(
    $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    ${GEN_DEPENDS}
        ${GENSCRIPTS} avr6 "$(tdir_avr2)"
        ecoff_i860.o \
        ecoff_sparc.o \
        eelf32_spu.o \
-@@ -1480,6 +1530,194 @@ eavr6.c: $(srcdir)/emulparams/avr6.sh $(
+@@ -1478,6 +1525,194 @@ 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)"
---- a/ld/scripttempl/avr32.sc
+--- /dev/null
 +++ b/ld/scripttempl/avr32.sc
 @@ -0,0 +1,459 @@
 +#
 +  ${RELOCATING+${STACKNOTE}}
 +}
 +EOF
---- a/ld/testsuite/ld-avr32/avr32.exp
+--- /dev/null
 +++ b/ld/testsuite/ld-avr32/avr32.exp
 @@ -0,0 +1,25 @@
 +# Expect script for AVR32 ELF linker tests.
 +}
 +
 +run_dump_test "pcrel"
---- a/ld/testsuite/ld-avr32/pcrel.d
+--- /dev/null
 +++ b/ld/testsuite/ld-avr32/pcrel.d
 @@ -0,0 +1,74 @@
 +#name: AVR32 ELF PC-relative external relocs
 +Disassembly of section \.text\.pcrel21:
 +a0200000 <extsym21>:
 +a0200000:     d7 03           nop
---- a/ld/testsuite/ld-avr32/pcrel.ld
+--- /dev/null
 +++ b/ld/testsuite/ld-avr32/pcrel.ld
 @@ -0,0 +1,23 @@
 +ENTRY(_start)
 +              *(.text.pcrel21)
 +      }
 +}
---- a/ld/testsuite/ld-avr32/symbols.s
+--- /dev/null
 +++ b/ld/testsuite/ld-avr32/symbols.s
 @@ -0,0 +1,20 @@
 +      .text
 +      .global extsym21
 +extsym21:
 +      nop
---- a/opcodes/avr32-asm.c
+--- /dev/null
 +++ b/opcodes/avr32-asm.c
 @@ -0,0 +1,264 @@
 +/* Assembler interface for AVR32.
 +    { cr_table,  AVR32_NR_CPREGS,  NULL, N_("coprocessor register expected") },
 +  };
 +#endif
---- a/opcodes/avr32-asm.h
+--- /dev/null
 +++ b/opcodes/avr32-asm.h
 @@ -0,0 +1,42 @@
 +/* Assembler interface for AVR32.
 +avr32_make_regmask8(unsigned long regmask16, unsigned long *regmask8);
 +
 +#endif /* __OPCODES_AVR32_ASM_H */
---- a/opcodes/avr32-dis.c
+--- /dev/null
 +++ b/opcodes/avr32-dis.c
 @@ -0,0 +1,891 @@
 +/* Print AVR32 instructions for GDB and objdump.
 +{
 +
 +}
---- a/opcodes/avr32-opc.c
+--- /dev/null
 +++ b/opcodes/avr32-opc.c
 @@ -0,0 +1,6946 @@
 +/* Opcode tables for AVR32.
 +#undef NORMAL_MNEMONIC
 +#undef ALIAS_MNEMONIC
 +#undef FP_MNEMONIC
---- a/opcodes/avr32-opc.h
+--- /dev/null
 +++ b/opcodes/avr32-opc.h
 @@ -0,0 +1,2377 @@
 +/* Opcode tables for AVR32.
  #define ARCH_bfin
  #define ARCH_cr16
  #define ARCH_cris
-@@ -129,6 +130,11 @@ disassembler (abfd)
+@@ -128,6 +129,11 @@ disassembler (abfd)
        disassemble = print_insn_avr;
        break;
  #endif
  #ifdef ARCH_bfin
      case bfd_arch_bfin:
        disassemble = print_insn_bfin;
-@@ -472,6 +478,9 @@ disassembler_usage (stream)
+@@ -466,6 +472,9 @@ disassembler_usage (stream)
  #ifdef ARCH_i386
    print_i386_disassembler_options (stream);
  #endif