36591ba149
Andrew Jenner <andrew@codesourcery.com> Based on patches from Altera Corporation. bfd/ * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo. (ALL_MACHINES_CFILES): Add cpu-nios2.c. (BFD_BACKENDS): Add elf32-nios2.lo. (BFD32_BACKENDS_CFILES): Add elf32-nios2.c. * Makefile.in: Regenerated. * configure.in: Add entries for bfd_elf32_bignios2_vec and bfd_elf32_littlenios2_vec. * configure: Regenerated. * config.bfd: Add cases for nios2. * archures.c (enum bfd_architecture): Add bfd_arch_nios2. (bfd_mach_nios2): Define. (bfd_nios2_arch): Declare. (bfd_archures_list): Add bfd_nios2_arch. * targets.c (bfd_elf32_bignios2_vec): Declare. (bfd_elf32_littlenios2_vec): Declare. (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and bfd_elf32_littlenios2_vec. * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA. * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations. * bfd-in2.h: Regenerated. * libbfd.h: Regenerated. * cpu-nios2.c: New file. * elf32-nios2.c: New file. opcodes/ * Makefile.am (TARGET_LIBOPCODES_CFILES): Add nios2-dis.c and nios2-opc.c. * Makefile.in: Regenerated. * configure.in: Add case for bfd_nios2_arch. * configure: Regenerated. * disassemble.c (ARCH_nios2): Define. (disassembler): Add case for bfd_arch_nios2. * nios2-dis.c: New file. * nios2-opc.c: New file. include/ * dis-asm.h (print_insn_big_nios2): Declare. (print_insn_little_nios2): Declare. include/elf * nios2.h: New file. include/opcode/ * nios2.h: New file. gas/ * Makefile.am (TARGET_CPU_CFILES): Add config/tc-nios2.c. (TARGET_CPU_HFILES): Add config/tc-nios2.h. * Makefile.in: Regenerated. * configure.tgt: Add case for nios2*-linux*. * config/obj-elf.c: Conditionally include elf/nios2.h. * config/tc-nios2.c: New file. * config/tc-nios2.h: New file. * doc/Makefile.am (CPU_DOCS): Add c-nios2.texi. * doc/Makefile.in: Regenerated. * doc/all.texi: Set NIOSII. * doc/as.texinfo (Overview): Add Nios II options. (Machine Dependencies): Include c-nios2.texi. * doc/c-nios2.texi: New file. * NEWS: Note Altera Nios II support. gas/testsuite/ * gas/nios2/add.d: New. * gas/nios2/add.s: New. * gas/nios2/align_fill.d: New. * gas/nios2/align_fill.s: New. * gas/nios2/align_text.d: New. * gas/nios2/align_text.s: New. * gas/nios2/and.d: New. * gas/nios2/and.s: New. * gas/nios2/branch.d: New. * gas/nios2/branch.s: New. * gas/nios2/break.d: New. * gas/nios2/break.s: New. * gas/nios2/bret.d: New. * gas/nios2/bret.s: New. * gas/nios2/cache.d: New. * gas/nios2/cache.s: New. * gas/nios2/call26.d: New. * gas/nios2/call26.s: New. * gas/nios2/call.d: New. * gas/nios2/call.s: New. * gas/nios2/cmp.d: New. * gas/nios2/cmp.s: New. * gas/nios2/comments.d: New. * gas/nios2/comments.s: New. * gas/nios2/complex.d: New. * gas/nios2/complex.s: New. * gas/nios2/ctl.d: New. * gas/nios2/ctl.s: New. * gas/nios2/custom.d: New. * gas/nios2/custom.s: New. * gas/nios2/etbt.d: New. * gas/nios2/etbt.s: New. * gas/nios2/flushda.d: New. * gas/nios2/flushda.s: New. * gas/nios2/illegal.l: New. * gas/nios2/illegal.s: New. * gas/nios2/jmp.d: New. * gas/nios2/jmp.s: New. * gas/nios2/ldb.d: New. * gas/nios2/ldb.s: New. * gas/nios2/ldh.d: New. * gas/nios2/ldh.s: New. * gas/nios2/ldw.d: New. * gas/nios2/ldw.s: New. * gas/nios2/lineseparator.d: New. * gas/nios2/lineseparator.s: New. * gas/nios2/mov.d: New. * gas/nios2/movia.d: New. * gas/nios2/movia.s: New. * gas/nios2/movi.d: New. * gas/nios2/movi.s: New. * gas/nios2/mov.s: New. * gas/nios2/mul.d: New. * gas/nios2/mul.s: New. * gas/nios2/nios2.exp: New. * gas/nios2/nor.d: New. * gas/nios2/nor.s: New. * gas/nios2/or.d: New. * gas/nios2/or.s: New. * gas/nios2/ret.d: New. * gas/nios2/ret.s: New. * gas/nios2/rol.d: New. * gas/nios2/rol.s: New. * gas/nios2/rotate.d: New. * gas/nios2/rotate.s: New. * gas/nios2/stb.d: New. * gas/nios2/stb.s: New. * gas/nios2/sth.d: New. * gas/nios2/sth.s: New. * gas/nios2/stw.d: New. * gas/nios2/stw.s: New. * gas/nios2/sub.d: New. * gas/nios2/sub.s: New. * gas/nios2/sync.d: New. * gas/nios2/sync.s: New. * gas/nios2/trap.d: New. * gas/nios2/trap.s: New. * gas/nios2/tret.d: New. * gas/nios2/tret.s: New. * gas/nios2/warn_noat.l: New. * gas/nios2/warn_noat.s: New. * gas/nios2/warn_nobreak.l: New. * gas/nios2/warn_nobreak.s: New. * gas/nios2/xor.d: New. * gas/nios2/xor.s: New. ld/ * Makefile.am (enios2elf.c): New rule. * Makefile.in: Regenerated. * configure.tgt: Add case for nios2*-*-*. * emulparams/nios2elf.sh: New file. * NEWS: Note Altera Nios II support. ld/testsuite/ * ld-nios2/emit-relocs-1a.s: New. * ld-nios2/emit-relocs-1b.s: New. * ld-nios2/emit-relocs-1.d: New. * ld-nios2/emit-relocs-1.ld: New. * ld-nios2/gprel.d: New. * ld-nios2/gprel.s: New. * ld-nios2/hilo16.d: New. * ld-nios2/hilo16.s: New. * ld-nios2/hilo16_symbol.s: New. * ld-nios2/imm5.d: New. * ld-nios2/imm5.s: New. * ld-nios2/imm5_symbol.s: New. * ld-nios2/nios2.exp: New. * ld-nios2/pcrel16.d: New. * ld-nios2/pcrel16_label.s: New. * ld-nios2/pcrel16.s: New. * ld-nios2/relax_callr.d: New. * ld-nios2/relax_callr.ld: New. * ld-nios2/relax_callr.s: New. * ld-nios2/relax_cjmp.d: New. * ld-nios2/relax_cjmp.s: New. * ld-nios2/relax_jmp.ld: New. * ld-nios2/relax_section.d: New. * ld-nios2/relax_section.s: New. * ld-nios2/relax_ujmp.d: New. * ld-nios2/relax_ujmp.s: New. * ld-nios2/reloc.d: New. * ld-nios2/reloc.s: New. * ld-nios2/reloc_symbol.s: New. * ld-nios2/s16.d: New. * ld-nios2/s16.s: New. * ld-nios2/s16_symbol.s: New. * ld-nios2/u16.d: New. * ld-nios2/u16.s: New. * ld-nios2/u16_symbol.s: New. * ld-elf/indirect.exp: Skip on targets that don't support -shared -fPIC. * ld-elfcomm/elfcomm.exp: Build with -G0 for nios2. * ld-plugin/lto.exp: Skip shared library tests on targets that don't support them. Skip execution tests on non-native targets. binutils/ * readelf.c: Include elf/nios2.h. (dump_relocations): Add case for EM_ALTERA_NIOS2. (get_nios2_dynamic_type): New. (get_dynamic_type): Add case for EM_ALTERA_NIOS2. (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case. (is_16bit_abs_reloc): Likewise. (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases. * NEWS: Note Altera Nios II support. * MAINTAINERS: Add Nios II maintainers. |
||
---|---|---|
.. | ||
aout_gnu.h | ||
atof-ieee.c | ||
atof-vax.c | ||
bfin-aux.h | ||
bfin-defs.h | ||
bfin-lex-wrapper.c | ||
bfin-lex.l | ||
bfin-parse.y | ||
e-crisaout.c | ||
e-criself.c | ||
e-i386aout.c | ||
e-i386coff.c | ||
e-i386elf.c | ||
e-mipsecoff.c | ||
e-mipself.c | ||
itbl-mips.h | ||
m68k-parse.h | ||
m68k-parse.y | ||
obj-aout.c | ||
obj-aout.h | ||
obj-coff-seh.c | ||
obj-coff-seh.h | ||
obj-coff.c | ||
obj-coff.h | ||
obj-ecoff.c | ||
obj-ecoff.h | ||
obj-elf.c | ||
obj-elf.h | ||
obj-evax.c | ||
obj-evax.h | ||
obj-fdpicelf.c | ||
obj-fdpicelf.h | ||
obj-macho.c | ||
obj-macho.h | ||
obj-multi.c | ||
obj-multi.h | ||
obj-som.c | ||
obj-som.h | ||
rl78-defs.h | ||
rl78-parse.y | ||
rx-defs.h | ||
rx-parse.y | ||
tc-aarch64.c | ||
tc-aarch64.h | ||
tc-alpha.c | ||
tc-alpha.h | ||
tc-arc.c | ||
tc-arc.h | ||
tc-arm.c | ||
tc-arm.h | ||
tc-avr.c | ||
tc-avr.h | ||
tc-bfin.c | ||
tc-bfin.h | ||
tc-cr16.c | ||
tc-cr16.h | ||
tc-cris.c | ||
tc-cris.h | ||
tc-crx.c | ||
tc-crx.h | ||
tc-d10v.c | ||
tc-d10v.h | ||
tc-d30v.c | ||
tc-d30v.h | ||
tc-dlx.c | ||
tc-dlx.h | ||
tc-epiphany.c | ||
tc-epiphany.h | ||
tc-fr30.c | ||
tc-fr30.h | ||
tc-frv.c | ||
tc-frv.h | ||
tc-generic.c | ||
tc-generic.h | ||
tc-h8300.c | ||
tc-h8300.h | ||
tc-hppa.c | ||
tc-hppa.h | ||
tc-i370.c | ||
tc-i370.h | ||
tc-i386-intel.c | ||
tc-i386.c | ||
tc-i386.h | ||
tc-i860.c | ||
tc-i860.h | ||
tc-i960.c | ||
tc-i960.h | ||
tc-ia64.c | ||
tc-ia64.h | ||
tc-ip2k.c | ||
tc-ip2k.h | ||
tc-iq2000.c | ||
tc-iq2000.h | ||
tc-lm32.c | ||
tc-lm32.h | ||
tc-m32c.c | ||
tc-m32c.h | ||
tc-m32r.c | ||
tc-m32r.h | ||
tc-m68hc11.c | ||
tc-m68hc11.h | ||
tc-m68k.c | ||
tc-m68k.h | ||
tc-m68851.h | ||
tc-mcore.c | ||
tc-mcore.h | ||
tc-mep.c | ||
tc-mep.h | ||
tc-metag.c | ||
tc-metag.h | ||
tc-microblaze.c | ||
tc-microblaze.h | ||
tc-mips.c | ||
tc-mips.h | ||
tc-mmix.c | ||
tc-mmix.h | ||
tc-mn10200.c | ||
tc-mn10200.h | ||
tc-mn10300.c | ||
tc-mn10300.h | ||
tc-moxie.c | ||
tc-moxie.h | ||
tc-msp430.c | ||
tc-msp430.h | ||
tc-mt.c | ||
tc-mt.h | ||
tc-nios2.c | ||
tc-nios2.h | ||
tc-ns32k.c | ||
tc-ns32k.h | ||
tc-openrisc.c | ||
tc-openrisc.h | ||
tc-or32.c | ||
tc-or32.h | ||
tc-pdp11.c | ||
tc-pdp11.h | ||
tc-pj.c | ||
tc-pj.h | ||
tc-ppc.c | ||
tc-ppc.h | ||
tc-rl78.c | ||
tc-rl78.h | ||
tc-rx.c | ||
tc-rx.h | ||
tc-s390.c | ||
tc-s390.h | ||
tc-score.c | ||
tc-score.h | ||
tc-score7.c | ||
tc-sh.c | ||
tc-sh.h | ||
tc-sh64.c | ||
tc-sh64.h | ||
tc-sparc.c | ||
tc-sparc.h | ||
tc-spu.c | ||
tc-spu.h | ||
tc-tic4x.c | ||
tc-tic4x.h | ||
tc-tic6x.c | ||
tc-tic6x.h | ||
tc-tic30.c | ||
tc-tic30.h | ||
tc-tic54x.c | ||
tc-tic54x.h | ||
tc-tilegx.c | ||
tc-tilegx.h | ||
tc-tilepro.c | ||
tc-tilepro.h | ||
tc-v850.c | ||
tc-v850.h | ||
tc-vax.c | ||
tc-vax.h | ||
tc-xc16x.c | ||
tc-xc16x.h | ||
tc-xgate.c | ||
tc-xgate.h | ||
tc-xstormy16.c | ||
tc-xstormy16.h | ||
tc-xtensa.c | ||
tc-xtensa.h | ||
tc-z8k.c | ||
tc-z8k.h | ||
tc-z80.c | ||
tc-z80.h | ||
te-386bsd.h | ||
te-aix5.h | ||
te-armeabi.h | ||
te-armlinuxeabi.h | ||
te-dragonfly.h | ||
te-dynix.h | ||
te-epoc-pe.h | ||
te-freebsd.h | ||
te-generic.h | ||
te-gnu.h | ||
te-go32.h | ||
te-hppa.h | ||
te-hppa64.h | ||
te-hppalinux64.h | ||
te-hpux.h | ||
te-i386aix.h | ||
te-ia64aix.h | ||
te-interix.h | ||
te-irix.h | ||
te-linux.h | ||
te-lnews.h | ||
te-lynx.h | ||
te-mach.h | ||
te-macos.h | ||
te-nacl.h | ||
te-nbsd.h | ||
te-nbsd532.h | ||
te-netware.h | ||
te-pc532mach.h | ||
te-pe.h | ||
te-pep.h | ||
te-psos.h | ||
te-riscix.h | ||
te-solaris.h | ||
te-sparcaout.h | ||
te-sun3.h | ||
te-svr4.h | ||
te-symbian.h | ||
te-tmips.h | ||
te-uclinux.h | ||
te-vms.c | ||
te-vms.h | ||
te-vxworks.h | ||
te-wince-pe.h | ||
vax-inst.h | ||
xtensa-istack.h | ||
xtensa-relax.c | ||
xtensa-relax.h |