summaryrefslogtreecommitdiff
path: root/gas/configure.tgt
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-06-19 21:22:10 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-06-19 21:22:10 +0000
commit778c9c9e34e03fe152911cfd5455511a83432b55 (patch)
tree5d61e34c3bbeeb24c32ffe69ba3f8ed5c661a4df /gas/configure.tgt
parent38b56eda7ea117def3d5075110c0221fa1989878 (diff)
downloadbinutils-redhat-778c9c9e34e03fe152911cfd5455511a83432b55.tar.gz
Fix misc x32 bugs.
bfd/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_backend_post_process_headers): Defined for x32. binutils/testsuite/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/elfedit-1.d: Updated for x32. gas/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * configure.tgt: Support x32. ld/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * configure.tgt: Support x32. ld/testsuite/ 2011-06-19 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/eh1.d: Skip x32. * ld-elf/eh2.d: Likewise. * ld-elf/eh3.d: Likewise. * ld-elf/eh4.d: Likewise. * ld-elfvsb/elfvsb.exp: Only xfail 64bit x86_64-*-linux*. * ld-shared/shared.exp: Likewise. * ld-ifunc/ifunc-1-local-x86.d: Support x32. * ld-ifunc/ifunc-1-x86.d: Likewise. * ld-ifunc/ifunc-3a-x86.d: Likewise. * ld-x86-64/pcrel16.d: Likewise. * ld-x86-64/x86-64.exp (x86_64tests): Add missing -melf_x86_64.
Diffstat (limited to 'gas/configure.tgt')
-rw-r--r--gas/configure.tgt9
1 files changed, 8 insertions, 1 deletions
diff --git a/gas/configure.tgt b/gas/configure.tgt
index a171a32bbf..7f7f611806 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -81,7 +81,14 @@ case ${cpu} in
sparclite*) cpu_type=sparc arch=sparclite ;;
sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
v850*) cpu_type=v850 ;;
- x86_64*) cpu_type=i386 arch=x86_64;;
+ x86_64*)
+ cpu_type=i386
+ if [ x"$vendor" = xx32 ]; then
+ arch=x86_64:32
+ else
+ arch=x86_64
+ fi
+ ;;
xtensa*) cpu_type=xtensa arch=xtensa ;;
*) cpu_type=${cpu} ;;
esac