This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix misc x32 issues


On Mon, Jun 20, 2011 at 5:26 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Jun 19, 2011 at 7:31 PM, Mike Frysinger <vapier@gentoo.org> wrote:
>> On Sunday, June 19, 2011 19:47:28 H.J. Lu wrote:
>>> On Sun, Jun 19, 2011 at 3:29 PM, Mike Frysinger <vapier@gentoo.org> wrote:
>>> > On Sunday, June 19, 2011 17:53:59 Andreas Schwab wrote:
>>> >> "H.J. Lu" writes:
>>> >> > I checked in this patch to fix misc x32 issues. ?I configured binutils
>>> >>
>>> >> > for target x86_64-x32-linux-gnu to build binutils with x32 format:
>>> >> x32 is not a vendor.
>>> >
>>> > yeah, that doesnt seem right. ?i dont think any other target is doing
>>> > this.
>>>
>>> This is mainly for testing before there is x32-linux
>>
>> then should it really be committed to the tree ? ?doesnt your binutils
>> releases already carry custom patches ?
>
> That is a good idea. I will move those parts to the Linux binutils.
>

This is the patch I checked in.

Thanks.

-- 
H.J.
---
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1d13136..9d08c19 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* configure.tgt: Revert x32 change.
+
 2011-06-20  Nick Clifton  <nickc@redhat.com>

 	* doc/Makefile.am: (CPU_DOCS): Add c-xstormy16.texi.
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 7f7f611..a171a32 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -81,14 +81,7 @@ 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
-    if [ x"$vendor" = xx32 ]; then
-      arch=x86_64:32
-    else
-      arch=x86_64
-    fi
-    ;;
+  x86_64*)		cpu_type=i386 arch=x86_64;;
   xtensa*)		cpu_type=xtensa arch=xtensa ;;
   *)			cpu_type=${cpu} ;;
 esac
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 099104d..206aa1e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* configure.tgt: Revert x32 change.
+
 2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>

 	* configure.tgt: Support x32.
diff --git a/ld/configure.tgt b/ld/configure.tgt
index dd05975..f35298c 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -190,11 +190,6 @@ i[3-7]86-*-linux-*)	targ_emul=elf_i386
 			targ64_extra_libpath=elf_x86_64
 			targ_extra_libpath=elf32_x86_64
 			tdir_i386linux=${targ_alias}aout ;;
-x86_64-x32-linux-*)	targ_emul=elf32_x86_64
-			targ_extra_emuls="elf_x86_64 elf_i386 i386linux elf_l1om"
-			targ_extra_libpath="elf_i386 elf_x86_64 elf_l1om"
-			tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
-			tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;;
 x86_64-*-linux-*)	targ_emul=elf_x86_64
 			targ_extra_emuls="elf32_x86_64 elf_i386 i386linux elf_l1om"
 			targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om"
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 4db226f..fd124d5 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* ld-elf/eh1.d: Revert x32 change.
+	* ld-elf/eh2.d: Likewise.
+	* ld-elf/eh3.d: Likewise.
+	* ld-elf/eh4.d: Likewise.
+
 2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>

 	* ld-elf/eh1.d: Skip x32.
diff --git a/ld/testsuite/ld-elf/eh1.d b/ld/testsuite/ld-elf/eh1.d
index 4275de1..f0874f7 100644
--- a/ld/testsuite/ld-elf/eh1.d
+++ b/ld/testsuite/ld-elf/eh1.d
@@ -2,7 +2,6 @@
 #source: eh1a.s
 #ld:
 #readelf: -wf
-#notarget: x86_64-x32-*
 #target: x86_64-*-*

 Contents of the .eh_frame section:
diff --git a/ld/testsuite/ld-elf/eh2.d b/ld/testsuite/ld-elf/eh2.d
index a7372f0..1a05d7f 100644
--- a/ld/testsuite/ld-elf/eh2.d
+++ b/ld/testsuite/ld-elf/eh2.d
@@ -2,7 +2,6 @@
 #source: eh2a.s
 #ld:
 #readelf: -wf
-#notarget: x86_64-x32-*
 #target: x86_64-*-*

 Contents of the .eh_frame section:
diff --git a/ld/testsuite/ld-elf/eh3.d b/ld/testsuite/ld-elf/eh3.d
index a9777a2..1f76b8c 100644
--- a/ld/testsuite/ld-elf/eh3.d
+++ b/ld/testsuite/ld-elf/eh3.d
@@ -2,7 +2,6 @@
 #source: eh3a.s
 #ld:
 #readelf: -wf
-#notarget: x86_64-x32-*
 #target: x86_64-*-*

 Contents of the .eh_frame section:
diff --git a/ld/testsuite/ld-elf/eh4.d b/ld/testsuite/ld-elf/eh4.d
index b568f32..b8f9865 100644
--- a/ld/testsuite/ld-elf/eh4.d
+++ b/ld/testsuite/ld-elf/eh4.d
@@ -2,7 +2,6 @@
 #source: eh4a.s
 #ld: -shared
 #readelf: -wf
-#notarget: x86_64-x32-*
 #target: x86_64-*-*

 Contents of the .eh_frame section:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]