VAX: ELF regression

Jan-Benedict Glaw jbglaw@microdata-pos.de
Thu Mar 31 15:11:00 GMT 2005


On Wed, Mar 30, 2005 at 03:24:33PM -0800, Matt Thomas wrote:
> Jan-Benedict Glaw wrote:
> > On Sep 27, 2002, there was a gas test added for VAX, which fails on
> > NetBSD these days. I've also built a binutils snapshot of Sep 30,
> > but that also fails. This test isn't strictly vax-netbsdelf specific,
> > but should also run for vax-linux (patch will follow the other day).
> > Could somebody review it?
> 
> It looks like -k wasn't passed to gas.  Only in that case will be
> PC32 be emitted as PLT32 or GOT32.

Thanks for clarifying this. Here's the patch.

2005-03-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
	* gas/testsuite/gas/vax/elf-rel.d: Call gas with -k. Thanks to
	Matt Thomas for figuring out.
	* gas/testsuite/gas/vax/vax.exp: Run elf-rel.[sd] for NetBSD-ELF
	and Linux.

diff -Nurp src-fresh/gas/testsuite/gas/vax/elf-rel.d src-hacked/gas/testsuite/gas/vax/elf-rel.d
--- src-fresh/gas/testsuite/gas/vax/elf-rel.d	2002-09-28 01:36:01.000000000 +0200
+++ src-hacked/gas/testsuite/gas/vax/elf-rel.d	2005-03-31 09:35:17.000000000 +0200
@@ -1,3 +1,4 @@
+#as: -k
 #objdump: -sr
 #name: VAX ELF relocations
 
diff -Nurp src-fresh/gas/testsuite/gas/vax/vax.exp src-hacked/gas/testsuite/gas/vax/vax.exp
--- src-fresh/gas/testsuite/gas/vax/vax.exp	2003-12-03 16:07:17.000000000 +0100
+++ src-hacked/gas/testsuite/gas/vax/vax.exp	2005-03-31 09:36:29.000000000 +0200
@@ -29,7 +29,7 @@ proc do_quad {} {
 if [istarget vax-*-* ] then {
     do_quad
 
-    if [istarget vax-*-*elf*] {
+    if { [istarget vax-*-*elf*] || [istarget vax-*-linux-gnu*] } then {
 	run_dump_test "elf-rel"
     }
 }

MfG, JBG

-- 
AWEK microdata GmbH -- Am Wellbach 4 -- 33609 Bielefeld



More information about the Binutils mailing list