This is the mail archive of the binutils@sources.redhat.com 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]

I checked Richard's testcase into CVS.


On Wed, Mar 28, 2001 at 02:57:50PM -0800, Zack Weinberg wrote:
> On Wed, Mar 28, 2001 at 02:12:11PM -0800, Zack Weinberg wrote:
> > as from binutils 2.11.90.0.1 crashes while compiling libstdc++ from
> > the gcc CVS trunk.
> 
> I meant to attach the input file causing the problem.  Here it is.
> 
> zw

FYI, I have checked Richard's testcase into CVS.


H.J.
---
2001-03-29  H.J. Lu  <hjl@gnu.org>

	* gas/i386/relax.s: New test for relaxation between sections.
	* gas/i386/relax.d: New.

	* gas/i386/i386.exp: Add tests for ELF.

Index: gas/i386/i386.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/i386/i386.exp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- i386.exp	2001/03/18 21:28:56	1.10
+++ i386.exp	2001/03/30 01:20:40	1.11
@@ -67,6 +67,16 @@ if [expr ([istarget "i*86-*-*"] ||  [ist
 	run_dump_test "jump16"
 	run_list_test "white" "-al --listing-lhs-width=3"
     }
+
+    # Do they only work for ELF?
+    if { ([istarget "*-*-elf*"]		
+	  || [istarget "*-*-linux*"]
+	 && ![istarget *-*-linux*aout*]
+	 && ![istarget *-*-linux*oldld*])
+    } then {
+	run_dump_test "relax"
+    }
+
     set ASFLAGS "$old_ASFLAGS"
 }
 
--- /dev/null	Thu Mar  1 15:53:02 2001
+++ gas/i386/relax.s	Thu Mar 29 17:19:29 2001
@@ -0,0 +1,7 @@
+        .section        .gcc_except_table,"aw",@progbits
+        .section        .gnu.linkonce.t.blah,"ax",@progbits
+.L0:
+	jmp .L1
+.L1:
+        .section        .gcc_except_table,"aw",@progbits
+        .uleb128 .L1-.L0
--- /dev/null	Thu Mar  1 15:53:02 2001
+++ gas/i386/relax.d	Thu Mar 29 17:19:29 2001
@@ -0,0 +1,10 @@
+#name: i386 relax
+#objdump: -drw
+
+.*: +file format .*i386.*
+
+Disassembly of section .text:
+Disassembly of section .gnu.linkonce.t.blah:
+
+0+000 <.gnu.linkonce.t.blah>:
+   0:	eb 00 [ 	]*jmp    0x2


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