This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

PATCH: Support ILP32 in ld ia64 tests


I am working on the IA64/ILP32 support in GNU linker. Here is the
initial patch for ia64 tests. I will check it in shortly. If anyone
who is interested in testing ia64-hpux GNU linker patches, and is
familiar with ia64-hpux as well as binutils, please drop me a line.


H.J.
---
2003-09-30  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-ia64/ia64.exp: Remove -melf64_ia64.

	* ld-ia64/tlsbin.dd: Remove -melf64_ia64. Match elf..-ia64-.*
	instead of elf64-ia64-little.
	* ld-ia64/tlsbin.rd: Likewise.
	* ld-ia64/tlsbin.sd: Likewise.
	* ld-ia64/tlsbin.td: Likewise.
	* ld-ia64/tlsg.sd: Likewise.
	* ld-ia64/tlspic.dd: Likewise.
	* ld-ia64/tlspic.rd: Likewise.
	* ld-ia64/tlspic.sd: Likewise.
	* ld-ia64/tlspic.td: Likewise.

--- ld/testsuite/ld-ia64/ia64.exp.ilp32-test	2003-01-17 09:45:35.000000000 -0800
+++ ld/testsuite/ld-ia64/ia64.exp	2003-09-30 10:10:14.000000000 -0700
@@ -34,19 +34,19 @@ if { !([istarget "ia64-*-elf*"]
 # readelf: Apply readelf options on result.  Compare with regex (last arg).
 
 set ia64tests {
-    {"TLS -fpic -shared" "-shared -melf64_ia64"
+    {"TLS -fpic -shared" "-shared"
      "" {tlspic1.s tlspic2.s}
      {{readelf -WSsrl tlspic.rd} {objdump -drj.text tlspic.dd}
       {objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
       "libtlspic.so"}
-    {"Helper shared library" "-shared -melf64_ia64"
+    {"Helper shared library" "-shared"
      "" {tlslib.s} {} "libtlslib.so"}
     {"TLS -fpic and -fno-pic exec"
-     "-melf64_ia64 tmpdir/libtlslib.so" "" {tlsbinpic.s tlsbin.s}
+     "tmpdir/libtlslib.so" "" {tlsbinpic.s tlsbin.s}
      {{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
       {objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
       "tlsbin"}
-    {"TLS in debug sections" "-melf64_ia64"
+    {"TLS in debug sections" ""
      "" {tlsg.s}
      {{objdump -sj.debug_foobar tlsg.sd}} "tlsg"}
 }
--- ld/testsuite/ld-ia64/tlsbin.dd.ilp32-test	2003-05-01 08:55:18.000000000 -0700
+++ ld/testsuite/ld-ia64/tlsbin.dd	2003-09-30 10:21:28.000000000 -0700
@@ -1,11 +1,11 @@
 #source: tlsbinpic.s
 #source: tlsbin.s
 #as:
-#ld: -shared -melf64_ia64
+#ld: -shared
 #objdump: -drj.text
 #target: ia64-*-*
 
-.*: +file format elf64-ia64-little
+.*: +file format elf..-ia64-.*
 
 Disassembly of section .text:
 
--- ld/testsuite/ld-ia64/tlsbin.rd.ilp32-test	2003-05-01 08:55:18.000000000 -0700
+++ ld/testsuite/ld-ia64/tlsbin.rd	2003-09-30 09:41:17.000000000 -0700
@@ -1,7 +1,7 @@
 #source: tlsbinpic.s
 #source: tlsbin.s
 #as:
-#ld: -shared -melf64_ia64
+#ld: -shared
 #readelf: -WSsrl
 #target: ia64-*-*
 
--- ld/testsuite/ld-ia64/tlsbin.sd.ilp32-test	2003-05-01 08:55:18.000000000 -0700
+++ ld/testsuite/ld-ia64/tlsbin.sd	2003-09-30 10:21:32.000000000 -0700
@@ -1,11 +1,11 @@
 #source: tlsbinpic.s
 #source: tlsbin.s
 #as:
-#ld: -shared -melf64_ia64
+#ld: -shared
 #objdump: -sj.got
 #target: ia64-*-*
 
-.*: +file format elf64-ia64-little
+.*: +file format elf..-ia64-.*
 
 Contents of section .got:
  (60+)?21b0 0+ 0+ 0+ 0+  .*
--- ld/testsuite/ld-ia64/tlsbin.td.ilp32-test	2003-05-01 08:55:18.000000000 -0700
+++ ld/testsuite/ld-ia64/tlsbin.td	2003-09-30 10:21:37.000000000 -0700
@@ -1,11 +1,11 @@
 #source: tlsbinpic.s
 #source: tlsbin.s
 #as:
-#ld: -shared -melf64_ia64
+#ld: -shared
 #objdump: -sj.tdata
 #target: ia64-*-*
 
-.*: +file format elf64-ia64-little
+.*: +file format elf..-ia64-.*
 
 Contents of section .tdata:
  (60+)?2000 11000000 12000000 13000000 14000000  .*
--- ld/testsuite/ld-ia64/tlsg.sd.ilp32-test	2003-01-17 09:45:35.000000000 -0800
+++ ld/testsuite/ld-ia64/tlsg.sd	2003-09-30 10:21:43.000000000 -0700
@@ -1,10 +1,10 @@
 #source: tlsg.s
 #as:
-#ld: -melf64_ia64
+#ld:
 #objdump: -sj.debug_foobar
 #target: ia64-*-*
 
-.*: +file format elf64-ia64-little
+.*: +file format elf..-ia64-.*
 
 Contents of section .debug_foobar:
  0+ 18000000 0+  +.*
--- ld/testsuite/ld-ia64/tlspic.dd.ilp32-test	2003-01-21 09:54:23.000000000 -0800
+++ ld/testsuite/ld-ia64/tlspic.dd	2003-09-30 10:21:51.000000000 -0700
@@ -1,11 +1,11 @@
 #source: tlspic1.s
 #source: tlspic2.s
 #as:
-#ld: -shared -melf64_ia64
+#ld:
 #objdump: -drj.text
 #target: ia64-*-*
 
-.*: +file format elf64-ia64-little
+.*: +file format elf..-ia64-.*
 
 Disassembly of section .text:
 
--- ld/testsuite/ld-ia64/tlspic.rd.ilp32-test	2003-05-01 08:55:18.000000000 -0700
+++ ld/testsuite/ld-ia64/tlspic.rd	2003-09-30 09:41:42.000000000 -0700
@@ -1,7 +1,7 @@
 #source: tlspic1.s
 #source: tlspic2.s
 #as:
-#ld: -shared -melf64_ia64
+#ld: -shared
 #readelf: -WSsrl
 #target: ia64-*-*
 
--- ld/testsuite/ld-ia64/tlspic.sd.ilp32-test	2003-05-01 08:55:18.000000000 -0700
+++ ld/testsuite/ld-ia64/tlspic.sd	2003-09-30 10:21:56.000000000 -0700
@@ -1,11 +1,11 @@
 #source: tlspic1.s
 #source: tlspic2.s
 #as:
-#ld: -shared -melf64_ia64
+#ld: -shared
 #objdump: -sj.got
 #target: ia64-*-*
 
-.*: +file format elf64-ia64-little
+.*: +file format elf..-ia64-.*
 
 Contents of section .got:
  121a0 0+ 0+ 0+ 0+  .*
--- ld/testsuite/ld-ia64/tlspic.td.ilp32-test	2003-05-01 08:55:18.000000000 -0700
+++ ld/testsuite/ld-ia64/tlspic.td	2003-09-30 10:21:59.000000000 -0700
@@ -1,11 +1,11 @@
 #source: tlspic1.s
 #source: tlspic2.s
 #as:
-#ld: -shared -melf64_ia64
+#ld: -shared
 #objdump: -sj.tdata
 #target: ia64-*-*
 
-.*: +file format elf64-ia64-little
+.*: +file format elf..-ia64-.*
 
 Contents of section .tdata:
  12000 11000000 12000000 13000000 14000000  .*


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