aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.tgt
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-05-11 12:01:57 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-05-11 12:06:33 -0700
commit5197d474361b4748e0339ae60e6dc9975f2313df (patch)
treea86f19e173d2f1b4d1af9d6d6aff8bd624a53352 /ld/configure.tgt
parent7e0a81123db953de03f6482f7c10f306407d348e (diff)
downloadgdb-5197d474361b4748e0339ae60e6dc9975f2313df.zip
gdb-5197d474361b4748e0339ae60e6dc9975f2313df.tar.gz
gdb-5197d474361b4748e0339ae60e6dc9975f2313df.tar.bz2
Default e_machine to EM_IAMCU for i?86-*-elfiamcu
This patch sets the default ELF output format of assembler and linker to EM_IAMCU when binutils is configured to i?86-*-elfiamcu target. gas/ * configure.tgt (arch): Set to iamcu for i386-*-elfiamcu target. * config/tc-i386.c (i386_mach): Support iamcu. (i386_target_format): Likewise. ld/ * configure.tgt: Support i[3-7]86-*-elfiamcu target. ld/testsuite/ * ld-i386/i386.exp (iamcu_tests): Run iamcu-4. * ld-i386/iamcu-4.d: New file.
Diffstat (limited to 'ld/configure.tgt')
-rw-r--r--ld/configure.tgt2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/configure.tgt b/ld/configure.tgt
index e1f5be7..e4eacd4 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -304,6 +304,8 @@ x86_64-*-netbsd*) targ_emul=elf_x86_64
sed -e 's/netbsd/netbsdelf/'`;;
esac ;;
i[3-7]86-*-netware) targ_emul=i386nw ;;
+i[3-7]86-*-elfiamcu) targ_emul=elf_iamcu
+ targ_extra_emuls=elf_i386 ;;
i[3-7]86-*-elf*) targ_emul=elf_i386
targ_extra_emuls=elf_iamcu ;;
x86_64-*-elf*) targ_emul=elf_x86_64