1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 17:40:16 +02:00

[toolchain/binutils/2.19.1]: fixup the ubicom patch, refresh

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25552 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
kaloz 2011-02-16 14:05:08 +00:00
parent ad88cd3cc6
commit db4a8bc7c1
4 changed files with 61 additions and 82 deletions

View File

@ -1,6 +1,6 @@
--- a/bfd/elf32-arm.c --- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c
@@ -4621,6 +4621,10 @@ @@ -4621,6 +4621,10 @@ bfd_elf32_arm_init_maps (bfd *abfd)
Elf_Internal_Shdr *hdr; Elf_Internal_Shdr *hdr;
unsigned int i, localsyms; unsigned int i, localsyms;

View File

@ -18,10 +18,8 @@ floatformat.c:(.text+0x43e): undefined reference to `ldexp'
collect2: ld returned 1 exit status collect2: ld returned 1 exit status
make[4]: *** [as-new] Error 1 make[4]: *** [as-new] Error 1
Index: binutils-2.17.50/gas/configure.tgt --- a/gas/configure.tgt
=================================================================== +++ b/gas/configure.tgt
--- binutils-2.17.50.orig/gas/configure.tgt
+++ binutils-2.17.50/gas/configure.tgt
@@ -415,6 +415,12 @@ case ${generic_target} in @@ -415,6 +415,12 @@ case ${generic_target} in
*-*-netware) fmt=elf em=netware ;; *-*-netware) fmt=elf em=netware ;;
esac esac
@ -35,4 +33,3 @@ Index: binutils-2.17.50/gas/configure.tgt
case ${cpu_type} in case ${cpu_type} in
alpha | arm | i386 | ia64 | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k) alpha | arm | i386 | ia64 | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k)
bfd_gas=yes bfd_gas=yes

View File

@ -5578,24 +5578,6 @@
case EM_IQ2000: return "Vitesse IQ2000"; case EM_IQ2000: return "Vitesse IQ2000";
case EM_XTENSA_OLD: case EM_XTENSA_OLD:
case EM_XTENSA: return "Tensilica Xtensa Processor"; case EM_XTENSA: return "Tensilica Xtensa Processor";
--- a/config.sub
+++ b/config.sub
@@ -285,6 +285,7 @@ case $basic_machine in
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
| spu | strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
+ | ubicom32 \
| v850 | v850e \
| we32k \
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
@@ -370,6 +371,7 @@ case $basic_machine in
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
| tron-* \
+ | ubicom32-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -2666,6 +2666,12 @@ case "${target}" in @@ -2666,6 +2666,12 @@ case "${target}" in

View File

@ -166,7 +166,7 @@
bfd_elf32_bfin_vec) tb="$tb elf32-bfin.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_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.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 +++ b/bfd/cpu-avr32.c
@@ -0,0 +1,52 @@ @@ -0,0 +1,52 @@
+/* BFD library support routines for AVR32. +/* BFD library support routines for AVR32.
@ -221,7 +221,7 @@
+ +
+const bfd_arch_info_type bfd_avr32_arch = +const bfd_arch_info_type bfd_avr32_arch =
+ N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]); + N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]);
--- a/bfd/elf32-avr32.c --- /dev/null
+++ b/bfd/elf32-avr32.c +++ b/bfd/elf32-avr32.c
@@ -0,0 +1,3915 @@ @@ -0,0 +1,3915 @@
+/* AVR32-specific support for 32-bit ELF. +/* AVR32-specific support for 32-bit ELF.
@ -4139,7 +4139,7 @@
+#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE +#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
+ +
+#include "elf32-target.h" +#include "elf32-target.h"
--- a/bfd/elf32-avr32.h --- /dev/null
+++ b/bfd/elf32-avr32.h +++ b/bfd/elf32-avr32.h
@@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
+/* AVR32-specific support for 32-bit ELF. +/* AVR32-specific support for 32-bit ELF.
@ -4482,7 +4482,7 @@
input_scrub_end (); input_scrub_end ();
--- a/gas/config/tc-avr32.c --- /dev/null
+++ b/gas/config/tc-avr32.c +++ b/gas/config/tc-avr32.c
@@ -0,0 +1,4829 @@ @@ -0,0 +1,4829 @@
+/* Assembler implementation for AVR32. +/* Assembler implementation for AVR32.
@ -9314,7 +9314,7 @@
+ +
+/* vim: syntax=c sw=2 +/* vim: syntax=c sw=2
+ */ + */
--- a/gas/config/tc-avr32.h --- /dev/null
+++ b/gas/config/tc-avr32.h +++ b/gas/config/tc-avr32.h
@@ -0,0 +1,325 @@ @@ -0,0 +1,325 @@
+/* Assembler definitions for AVR32. +/* Assembler definitions for AVR32.
@ -9705,7 +9705,7 @@
@ifset BFIN @ifset BFIN
@include c-bfin.texi @include c-bfin.texi
@end ifset @end ifset
--- a/gas/doc/c-avr32.texi --- /dev/null
+++ b/gas/doc/c-avr32.texi +++ b/gas/doc/c-avr32.texi
@@ -0,0 +1,244 @@ @@ -0,0 +1,244 @@
+@c Copyright 2005, 2006, 2007, 2008, 2009 +@c Copyright 2005, 2006, 2007, 2008, 2009
@ -10095,7 +10095,7 @@
DEP_cris_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-cris.h \ DEP_cris_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-cris.h \
$(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h
--- a/gas/testsuite/gas/avr32/aliases.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/aliases.d +++ b/gas/testsuite/gas/avr32/aliases.d
@@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
+#as: +#as:
@ -10117,7 +10117,7 @@
+ c: b8 80 [ \t]+st\.b r12\[0x0\],r0 + c: b8 80 [ \t]+st\.b r12\[0x0\],r0
+ e: b8 00 [ \t]+st\.h r12\[0x0\],r0 + e: b8 00 [ \t]+st\.h r12\[0x0\],r0
+ 10: 99 00 [ \t]+st\.w 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 +++ b/gas/testsuite/gas/avr32/aliases.s
@@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
+ .text + .text
@ -10134,7 +10134,7 @@
+ st.b r12, r0 + st.b r12, r0
+ st.h r12, r0 + st.h r12, r0
+ st.w r12, r0 + st.w r12, r0
--- a/gas/testsuite/gas/avr32/allinsn.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/allinsn.d +++ b/gas/testsuite/gas/avr32/allinsn.d
@@ -0,0 +1,2987 @@ @@ -0,0 +1,2987 @@
+#as: +#as:
@ -13124,7 +13124,7 @@
+ *[0-9a-f]*: fc 15 00 01 movh r5,0x1 + *[0-9a-f]*: fc 15 00 01 movh r5,0x1
+ *[0-9a-f]*: fc 1c 7f ff movh r12,0x7fff + *[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 +++ b/gas/testsuite/gas/avr32/allinsn.exp
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
+# AVR32 assembler testsuite. -*- Tcl -*- +# AVR32 assembler testsuite. -*- Tcl -*-
@ -13132,7 +13132,7 @@
+if [istarget avr32-*-*] { +if [istarget avr32-*-*] {
+ run_dump_test "allinsn" + run_dump_test "allinsn"
+} +}
--- a/gas/testsuite/gas/avr32/allinsn.s --- /dev/null
+++ b/gas/testsuite/gas/avr32/allinsn.s +++ b/gas/testsuite/gas/avr32/allinsn.s
@@ -0,0 +1,3330 @@ @@ -0,0 +1,3330 @@
+ .data + .data
@ -16465,7 +16465,7 @@
+ movh r12, 32767 + movh r12, 32767
+ +
+ +
--- a/gas/testsuite/gas/avr32/avr32.exp --- /dev/null
+++ b/gas/testsuite/gas/avr32/avr32.exp +++ b/gas/testsuite/gas/avr32/avr32.exp
@@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
+# AVR32 assembler testsuite. -*- Tcl -*- +# AVR32 assembler testsuite. -*- Tcl -*-
@ -16491,7 +16491,7 @@
+ run_dump_test "symdiff" + run_dump_test "symdiff"
+ run_dump_test "symdiff_linkrelax" + run_dump_test "symdiff_linkrelax"
+} +}
--- a/gas/testsuite/gas/avr32/call_nopic.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/call_nopic.d +++ b/gas/testsuite/gas/avr32/call_nopic.d
@@ -0,0 +1,36 @@ @@ -0,0 +1,36 @@
+#source: call.s +#source: call.s
@ -16530,7 +16530,7 @@
+ +
+00000000 <different_section>: +00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0 + 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 +++ b/gas/testsuite/gas/avr32/call_nopic_linkrelax.d
@@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
+#source: call.s +#source: call.s
@ -16576,7 +16576,7 @@
+ +
+00000000 <different_section>: +00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0 + 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 +++ b/gas/testsuite/gas/avr32/call_pic.d
@@ -0,0 +1,36 @@ @@ -0,0 +1,36 @@
+#source: call.s +#source: call.s
@ -16615,7 +16615,7 @@
+ +
+00000000 <different_section>: +00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0 + 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 +++ b/gas/testsuite/gas/avr32/call_pic_linkrelax.d
@@ -0,0 +1,47 @@ @@ -0,0 +1,47 @@
+#source: call.s +#source: call.s
@ -16665,7 +16665,7 @@
+ +
+00000000 <different_section>: +00000000 <different_section>:
+ 0: e2 c0 00 00 sub r0,r1,0 + 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 +++ b/gas/testsuite/gas/avr32/call.s
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
+ +
@ -16698,7 +16698,7 @@
+ .section .text.init,"ax",@progbits + .section .text.init,"ax",@progbits
+different_section: +different_section:
+ sub r0, r1, 0 + sub r0, r1, 0
--- a/gas/testsuite/gas/avr32/dwarf2.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/dwarf2.d +++ b/gas/testsuite/gas/avr32/dwarf2.d
@@ -0,0 +1,42 @@ @@ -0,0 +1,42 @@
+#readelf: -wl +#readelf: -wl
@ -16743,7 +16743,7 @@
+ Special opcode .*: advance Address by 10 to 0xe and Line by 1 to 112 + Special opcode .*: advance Address by 10 to 0xe and Line by 1 to 112
+ Advance PC by 530 to 220 + Advance PC by 530 to 220
+ Extended opcode 1: End of Sequence + Extended opcode 1: End of Sequence
--- a/gas/testsuite/gas/avr32/dwarf2.s --- /dev/null
+++ b/gas/testsuite/gas/avr32/dwarf2.s +++ b/gas/testsuite/gas/avr32/dwarf2.s
@@ -0,0 +1,67 @@ @@ -0,0 +1,67 @@
+# Source file used to test DWARF2 information for AVR32. +# Source file used to test DWARF2 information for AVR32.
@ -16813,7 +16813,7 @@
+ .uleb128 0, 0 + .uleb128 0, 0
+ +
+ .byte 0 + .byte 0
--- a/gas/testsuite/gas/avr32/fpinsn.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/fpinsn.d +++ b/gas/testsuite/gas/avr32/fpinsn.d
@@ -0,0 +1,271 @@ @@ -0,0 +1,271 @@
+#as: +#as:
@ -17087,7 +17087,7 @@
+ *[0-9a-f]*: e1 a8 00 f0 cop cp0,cr0,cr15,cr0,0x10 + *[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 08 70 cop cp0,cr8,cr7,cr0,0x10
+ *[0-9a-f]*: e1 a8 06 80 cop cp0,cr6,cr8,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 +++ b/gas/testsuite/gas/avr32/fpinsn.s
@@ -0,0 +1,266 @@ @@ -0,0 +1,266 @@
+ +
@ -17356,7 +17356,7 @@
+ fcastd.s fr0, fr15 + fcastd.s fr0, fr15
+ fcastd.s fr8, fr7 + fcastd.s fr8, fr7
+ fcastd.s fr6, fr8 + fcastd.s fr6, fr8
--- a/gas/testsuite/gas/avr32/hwrd-lwrd.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/hwrd-lwrd.d +++ b/gas/testsuite/gas/avr32/hwrd-lwrd.d
@@ -0,0 +1,47 @@ @@ -0,0 +1,47 @@
+#as: +#as:
@ -17406,7 +17406,7 @@
+ 58: R_AVR32_LO16 \.text\+0x60 + 58: R_AVR32_LO16 \.text\+0x60
+ 5c: e0 10 00 00 andl r0,0x0 + 5c: e0 10 00 00 andl r0,0x0
+ 5c: R_AVR32_LO16 extsym1 + 5c: R_AVR32_LO16 extsym1
--- a/gas/testsuite/gas/avr32/hwrd-lwrd.s --- /dev/null
+++ b/gas/testsuite/gas/avr32/hwrd-lwrd.s +++ b/gas/testsuite/gas/avr32/hwrd-lwrd.s
@@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
+ +
@ -17448,7 +17448,7 @@
+ andl r0, lo(extsym1) + andl r0, lo(extsym1)
+ +
+sym2: +sym2:
--- a/gas/testsuite/gas/avr32/jmptable.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/jmptable.d +++ b/gas/testsuite/gas/avr32/jmptable.d
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
+#source: jmptable.s +#source: jmptable.s
@ -17471,7 +17471,7 @@
+ 12: d7 03 nop + 12: d7 03 nop
+ 14: d7 03 nop + 14: d7 03 nop
+ 16: 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 +++ b/gas/testsuite/gas/avr32/jmptable_linkrelax.d
@@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
+#source: jmptable.s +#source: jmptable.s
@ -17499,7 +17499,7 @@
+ 12: d7 03 nop + 12: d7 03 nop
+ 14: d7 03 nop + 14: d7 03 nop
+ 16: d7 03 nop + 16: d7 03 nop
--- a/gas/testsuite/gas/avr32/jmptable.s --- /dev/null
+++ b/gas/testsuite/gas/avr32/jmptable.s +++ b/gas/testsuite/gas/avr32/jmptable.s
@@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
+ +
@ -17516,7 +17516,7 @@
+1: nop +1: nop
+2: nop +2: nop
+3: nop +3: nop
--- a/gas/testsuite/gas/avr32/lda_nopic.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/lda_nopic.d +++ b/gas/testsuite/gas/avr32/lda_nopic.d
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
+#source: lda.s +#source: lda.s
@ -17551,7 +17551,7 @@
+ ... + ...
+0001001c <toofar_positive>: +0001001c <toofar_positive>:
+ 1001c: fe ce 00 00 sub lr,pc,0 + 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 +++ b/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d
@@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
+#source: lda.s +#source: lda.s
@ -17595,7 +17595,7 @@
+ \.\.\. + \.\.\.
+00010020 <toofar_positive>: +00010020 <toofar_positive>:
+ 10020: fe ce 00 00 sub lr,pc,0 + 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 +++ b/gas/testsuite/gas/avr32/lda_pic.d
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
+#source: lda.s +#source: lda.s
@ -17630,7 +17630,7 @@
+ ... + ...
+00010014 <toofar_positive>: +00010014 <toofar_positive>:
+ 10014: fe ce 00 00 sub lr,pc,0 + 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 +++ b/gas/testsuite/gas/avr32/lda_pic_linkrelax.d
@@ -0,0 +1,40 @@ @@ -0,0 +1,40 @@
+#source: lda.s +#source: lda.s
@ -17673,7 +17673,7 @@
+ ... + ...
+0001002c <toofar_positive>: +0001002c <toofar_positive>:
+ 1002c: fe ce 00 00 sub lr,pc,0 + 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 +++ b/gas/testsuite/gas/avr32/lda.s
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
+ +
@ -17706,7 +17706,7 @@
+ .data + .data
+different_section: +different_section:
+ .long 0x12345678 + .long 0x12345678
--- a/gas/testsuite/gas/avr32/pcrel.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/pcrel.d +++ b/gas/testsuite/gas/avr32/pcrel.d
@@ -0,0 +1,64 @@ @@ -0,0 +1,64 @@
+#as: +#as:
@ -17773,7 +17773,7 @@
+ e: d7 03 nop + e: d7 03 nop
+ 10: e0 a0 .. .. rcall [0-9a-f]+ <.*> + 10: e0 a0 .. .. rcall [0-9a-f]+ <.*>
+ 10: R_AVR32_22H_PCREL \.text\+0xc + 10: R_AVR32_22H_PCREL \.text\+0xc
--- a/gas/testsuite/gas/avr32/pcrel.s --- /dev/null
+++ b/gas/testsuite/gas/avr32/pcrel.s +++ b/gas/testsuite/gas/avr32/pcrel.s
@@ -0,0 +1,57 @@ @@ -0,0 +1,57 @@
+ +
@ -17833,7 +17833,7 @@
+ rcall test_rcall2 + rcall test_rcall2
+ nop + nop
+ rcall test_rcall2 + rcall test_rcall2
--- a/gas/testsuite/gas/avr32/pico.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/pico.d +++ b/gas/testsuite/gas/avr32/pico.d
@@ -0,0 +1,149 @@ @@ -0,0 +1,149 @@
+#as: +#as:
@ -17985,7 +17985,7 @@
+ *[0-9a-f]*: ed a0 33 01 stcm\.w cp1,--r0,cr8 + *[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 a7 33 80 stcm\.w cp1,--r7,cr15
+ *[0-9a-f]*: ed a8 33 7f stcm\.w cp1,--r8,cr8-cr14 + *[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 +++ b/gas/testsuite/gas/avr32/pico.s
@@ -0,0 +1,144 @@ @@ -0,0 +1,144 @@
+ +
@ -18132,7 +18132,7 @@
+ picostm.w --r0, coeff1_a + picostm.w --r0, coeff1_a
+ picostm.w --r7, config + picostm.w --r7, config
+ picostm.w --r8, coeff1_a-vmu2_out + 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 +++ b/gas/testsuite/gas/avr32/pic_reloc.d
@@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
+#as: +#as:
@ -18162,7 +18162,7 @@
+ 18: R_AVR32_GOT16S \.L4 + 18: R_AVR32_GOT16S \.L4
+ 1c: ec f0 00 00 ld.w r0,r6\[0\] + 1c: ec f0 00 00 ld.w r0,r6\[0\]
+ 1c: R_AVR32_GOT16S ldw_got + 1c: R_AVR32_GOT16S ldw_got
--- a/gas/testsuite/gas/avr32/pic_reloc.s --- /dev/null
+++ b/gas/testsuite/gas/avr32/pic_reloc.s +++ b/gas/testsuite/gas/avr32/pic_reloc.s
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
+ +
@ -18183,7 +18183,7 @@
+ ld.w r0,r6[.L4@got] + ld.w r0,r6[.L4@got]
+ ld.w r0,r6[ldw_got@got] + ld.w r0,r6[ldw_got@got]
+.L4: +.L4:
--- a/gas/testsuite/gas/avr32/symdiff.d --- /dev/null
+++ b/gas/testsuite/gas/avr32/symdiff.d +++ b/gas/testsuite/gas/avr32/symdiff.d
@@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
+#source: symdiff.s +#source: symdiff.s
@ -18210,7 +18210,7 @@
+ a: d7 03 nop + a: d7 03 nop
+ c: d7 03 nop + c: d7 03 nop
+ e: 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 +++ b/gas/testsuite/gas/avr32/symdiff_linkrelax.d
@@ -0,0 +1,28 @@ @@ -0,0 +1,28 @@
+#source: symdiff.s +#source: symdiff.s
@ -18241,7 +18241,7 @@
+ a: d7 03 nop + a: d7 03 nop
+ c: d7 03 nop + c: d7 03 nop
+ e: d7 03 nop + e: d7 03 nop
--- a/gas/testsuite/gas/avr32/symdiff.s --- /dev/null
+++ b/gas/testsuite/gas/avr32/symdiff.s +++ b/gas/testsuite/gas/avr32/symdiff.s
@@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
+ +
@ -18328,7 +18328,7 @@
extern void print_s390_disassembler_options (FILE *); extern void print_s390_disassembler_options (FILE *);
extern int get_arm_regname_num_options (void); extern int get_arm_regname_num_options (void);
extern int set_arm_regname_option (int); extern int set_arm_regname_option (int);
--- a/include/elf/avr32.h --- /dev/null
+++ b/include/elf/avr32.h +++ b/include/elf/avr32.h
@@ -0,0 +1,98 @@ @@ -0,0 +1,98 @@
+/* AVR32 ELF support for BFD. +/* AVR32 ELF support for BFD.
@ -18463,7 +18463,7 @@
bfin-*-elf) targ_emul=elf32bfin; bfin-*-elf) targ_emul=elf32bfin;
targ_extra_emuls="elf32bfinfd" targ_extra_emuls="elf32bfinfd"
targ_extra_libpath=$targ_extra_emuls targ_extra_libpath=$targ_extra_emuls
--- a/ld/emulparams/avr32elf.sh --- /dev/null
+++ b/ld/emulparams/avr32elf.sh +++ b/ld/emulparams/avr32elf.sh
@@ -0,0 +1,274 @@ @@ -0,0 +1,274 @@
+# This script is called from ld/genscript.sh +# This script is called from ld/genscript.sh
@ -18740,7 +18740,7 @@
+ ;; + ;;
+ +
+esac +esac
--- a/ld/emulparams/avr32linux.sh --- /dev/null
+++ b/ld/emulparams/avr32linux.sh +++ b/ld/emulparams/avr32linux.sh
@@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
+ARCH=avr32 +ARCH=avr32
@ -18757,7 +18757,7 @@
+# essential for uClinux. We don't use those .s* sections on AVR32 +# essential for uClinux. We don't use those .s* sections on AVR32
+# anyway, so it shouldn't hurt for regular Linux either... +# anyway, so it shouldn't hurt for regular Linux either...
+NO_SMALL_DATA=yes +NO_SMALL_DATA=yes
--- a/ld/emultempl/avr32elf.em --- /dev/null
+++ b/ld/emultempl/avr32elf.em +++ b/ld/emultempl/avr32elf.em
@@ -0,0 +1,162 @@ @@ -0,0 +1,162 @@
+# This shell script emits a C file. -*- C -*- +# This shell script emits a C file. -*- C -*-
@ -19229,7 +19229,7 @@
ecoff_i860.o \ ecoff_i860.o \
ecoff_sparc.o \ ecoff_sparc.o \
eelf32_spu.o \ eelf32_spu.o \
@@ -1480,6 +1530,194 @@ eavr6.c: $(srcdir)/emulparams/avr6.sh $( @@ -1480,6 +1527,194 @@ eavr6.c: $(srcdir)/emulparams/avr6.sh $(
$(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \ $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
${GEN_DEPENDS} ${GEN_DEPENDS}
${GENSCRIPTS} avr6 "$(tdir_avr2)" ${GENSCRIPTS} avr6 "$(tdir_avr2)"
@ -19424,7 +19424,7 @@
ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \ ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS} $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS}
${GENSCRIPTS} coff_i860 "$(tdir_coff_i860)" ${GENSCRIPTS} coff_i860 "$(tdir_coff_i860)"
--- a/ld/scripttempl/avr32.sc --- /dev/null
+++ b/ld/scripttempl/avr32.sc +++ b/ld/scripttempl/avr32.sc
@@ -0,0 +1,459 @@ @@ -0,0 +1,459 @@
+# +#
@ -19886,7 +19886,7 @@
+ ${RELOCATING+${STACKNOTE}} + ${RELOCATING+${STACKNOTE}}
+} +}
+EOF +EOF
--- a/ld/testsuite/ld-avr32/avr32.exp --- /dev/null
+++ b/ld/testsuite/ld-avr32/avr32.exp +++ b/ld/testsuite/ld-avr32/avr32.exp
@@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
+# Expect script for AVR32 ELF linker tests. +# Expect script for AVR32 ELF linker tests.
@ -19914,7 +19914,7 @@
+} +}
+ +
+run_dump_test "pcrel" +run_dump_test "pcrel"
--- a/ld/testsuite/ld-avr32/pcrel.d --- /dev/null
+++ b/ld/testsuite/ld-avr32/pcrel.d +++ b/ld/testsuite/ld-avr32/pcrel.d
@@ -0,0 +1,74 @@ @@ -0,0 +1,74 @@
+#name: AVR32 ELF PC-relative external relocs +#name: AVR32 ELF PC-relative external relocs
@ -19991,7 +19991,7 @@
+Disassembly of section \.text\.pcrel21: +Disassembly of section \.text\.pcrel21:
+a0200000 <extsym21>: +a0200000 <extsym21>:
+a0200000: d7 03 nop +a0200000: d7 03 nop
--- a/ld/testsuite/ld-avr32/pcrel.ld --- /dev/null
+++ b/ld/testsuite/ld-avr32/pcrel.ld +++ b/ld/testsuite/ld-avr32/pcrel.ld
@@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
+ENTRY(_start) +ENTRY(_start)
@ -20017,7 +20017,7 @@
+ *(.text.pcrel21) + *(.text.pcrel21)
+ } + }
+} +}
--- a/ld/testsuite/ld-avr32/symbols.s --- /dev/null
+++ b/ld/testsuite/ld-avr32/symbols.s +++ b/ld/testsuite/ld-avr32/symbols.s
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
+ .text + .text
@ -20040,7 +20040,7 @@
+ .global extsym21 + .global extsym21
+extsym21: +extsym21:
+ nop + nop
--- a/opcodes/avr32-asm.c --- /dev/null
+++ b/opcodes/avr32-asm.c +++ b/opcodes/avr32-asm.c
@@ -0,0 +1,264 @@ @@ -0,0 +1,264 @@
+/* Assembler interface for AVR32. +/* Assembler interface for AVR32.
@ -20307,7 +20307,7 @@
+ { cr_table, AVR32_NR_CPREGS, NULL, N_("coprocessor register expected") }, + { cr_table, AVR32_NR_CPREGS, NULL, N_("coprocessor register expected") },
+ }; + };
+#endif +#endif
--- a/opcodes/avr32-asm.h --- /dev/null
+++ b/opcodes/avr32-asm.h +++ b/opcodes/avr32-asm.h
@@ -0,0 +1,42 @@ @@ -0,0 +1,42 @@
+/* Assembler interface for AVR32. +/* Assembler interface for AVR32.
@ -20352,7 +20352,7 @@
+avr32_make_regmask8(unsigned long regmask16, unsigned long *regmask8); +avr32_make_regmask8(unsigned long regmask16, unsigned long *regmask8);
+ +
+#endif /* __OPCODES_AVR32_ASM_H */ +#endif /* __OPCODES_AVR32_ASM_H */
--- a/opcodes/avr32-dis.c --- /dev/null
+++ b/opcodes/avr32-dis.c +++ b/opcodes/avr32-dis.c
@@ -0,0 +1,891 @@ @@ -0,0 +1,891 @@
+/* Print AVR32 instructions for GDB and objdump. +/* Print AVR32 instructions for GDB and objdump.
@ -21246,7 +21246,7 @@
+{ +{
+ +
+} +}
--- a/opcodes/avr32-opc.c --- /dev/null
+++ b/opcodes/avr32-opc.c +++ b/opcodes/avr32-opc.c
@@ -0,0 +1,6946 @@ @@ -0,0 +1,6946 @@
+/* Opcode tables for AVR32. +/* Opcode tables for AVR32.
@ -28195,7 +28195,7 @@
+#undef NORMAL_MNEMONIC +#undef NORMAL_MNEMONIC
+#undef ALIAS_MNEMONIC +#undef ALIAS_MNEMONIC
+#undef FP_MNEMONIC +#undef FP_MNEMONIC
--- a/opcodes/avr32-opc.h --- /dev/null
+++ b/opcodes/avr32-opc.h +++ b/opcodes/avr32-opc.h
@@ -0,0 +1,2377 @@ @@ -0,0 +1,2377 @@
+/* Opcode tables for AVR32. +/* Opcode tables for AVR32.