ld/testsuite/
authorRoland McGrath <roland@gnu.org>
Tue, 4 Jun 2013 19:24:10 +0000 (19:24 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 4 Jun 2013 19:24:10 +0000 (19:24 +0000)
* ld-size/size.exp: For *-*-nacl* targets, use options_regsub(ld)
to massage -m arguments into _nacl variants.
* ld/testsuite/ld-size/size32-1-i386.d: Loosen regexps so they
don't care what the exact addresses are.
* ld/testsuite/ld-size/size32-1-x32.d: Likewise.
* ld/testsuite/ld-size/size32-1-x86-64.d: Likewise.
* ld/testsuite/ld-size/size32-2-i386.d: Likewise.
* ld/testsuite/ld-size/size32-2-x32.d: Likewise.
* ld/testsuite/ld-size/size32-2-x86-64.d: Likewise.
* ld/testsuite/ld-size/size64-1-x32.d: Likewise.
* ld/testsuite/ld-size/size64-1-x86-64.d: Likewise.
* ld/testsuite/ld-size/size64-2-x32.d: Likewise.
* ld/testsuite/ld-size/size64-2-x86-64.d: Likewise.

12 files changed:
ld/testsuite/ChangeLog
ld/testsuite/ld-size/size.exp
ld/testsuite/ld-size/size32-1-i386.d
ld/testsuite/ld-size/size32-1-x32.d
ld/testsuite/ld-size/size32-1-x86-64.d
ld/testsuite/ld-size/size32-2-i386.d
ld/testsuite/ld-size/size32-2-x32.d
ld/testsuite/ld-size/size32-2-x86-64.d
ld/testsuite/ld-size/size64-1-x32.d
ld/testsuite/ld-size/size64-1-x86-64.d
ld/testsuite/ld-size/size64-2-x32.d
ld/testsuite/ld-size/size64-2-x86-64.d

index 3bfea87f268eb232bb5ec2f2f408f85d80b8ceb7..8d959dbeb0009b0c662e8f100cb73783f1a88f59 100644 (file)
@@ -1,3 +1,19 @@
+2013-06-04  Roland McGrath  <mcgrathr@google.com>
+
+       * ld-size/size.exp: For *-*-nacl* targets, use options_regsub(ld)
+       to massage -m arguments into _nacl variants.
+       * ld/testsuite/ld-size/size32-1-i386.d: Loosen regexps so they
+       don't care what the exact addresses are.
+       * ld/testsuite/ld-size/size32-1-x32.d: Likewise.
+       * ld/testsuite/ld-size/size32-1-x86-64.d: Likewise.
+       * ld/testsuite/ld-size/size32-2-i386.d: Likewise.
+       * ld/testsuite/ld-size/size32-2-x32.d: Likewise.
+       * ld/testsuite/ld-size/size32-2-x86-64.d: Likewise.
+       * ld/testsuite/ld-size/size64-1-x32.d: Likewise.
+       * ld/testsuite/ld-size/size64-1-x86-64.d: Likewise.
+       * ld/testsuite/ld-size/size64-2-x32.d: Likewise.
+       * ld/testsuite/ld-size/size64-2-x86-64.d: Likewise.
+
 2013-06-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-i386/tlsbindesc-nacl.rd: Updated for text/data/bss section
index 9fe152c3d75bd2e25bc3646fa032b22184c69940..9eedfd5b398a369c96acea3c8dbb1b4e26cceb38 100644 (file)
@@ -35,6 +35,13 @@ if {!(([istarget "i?86-*-*"]
     return
 }
 
+# So as to avoid rewriting every last test case here in a nacl variant,
+# we use black magic to massage the generic cases into nacl-variant cases.
+if [istarget "*-*-nacl*"] {
+    # Change all the -melf_i386 to -melf_i386_nacl so linking can succeed.
+    set options_regsub(ld) {-m(\\S+) -m\\1_nacl}
+}
+
 set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
 foreach t $test_list {
     # We need to strip the ".d", but can leave the dirname.
@@ -44,7 +51,7 @@ foreach t $test_list {
 
 # We need a native system.
 if ![isnative] {
-    verbose "Natibe size relocation tests not run - not a native toolchain"
+    verbose "Native size relocation tests not run - not a native toolchain"
     return
 }
 
index e8a6622f0926c1bee83794f7ee84daf99bb7fe99..43091c12550c37bc6e656bf8d17631d80119aeb2 100644 (file)
@@ -8,15 +8,15 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
-0+11f4 R_386_SIZE32      xxx
-0+11f8 R_386_SIZE32      xxx
-0+11fc R_386_SIZE32      xxx
-0+1200 R_386_SIZE32      yyy
-0+1204 R_386_SIZE32      zzz
+[[:xdigit:]]+ R_386_SIZE32      xxx
+[[:xdigit:]]+ R_386_SIZE32      xxx
+[[:xdigit:]]+ R_386_SIZE32      xxx
+[[:xdigit:]]+ R_386_SIZE32      yyy
+[[:xdigit:]]+ R_386_SIZE32      zzz
 
 
 Contents of section .data:
11f4 00000000 e2ffffff 1e000000 00000000  ................
1204 00000000 00000000 00000000 00000000  ................
1214 00000000 00000000 00000000 00000000  ................
1224 00000000 00000000 00000000           ............    
[[:xdigit:]]+ 00000000 e2ffffff 1e000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000           ............    
index 1022dba4200ca5a828543df08f151f98ce8628c5..083f7b2d4c3493f57555eec87909c8c2ce36933c 100644 (file)
@@ -8,15 +8,15 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
-0+200220 R_X86_64_SIZE32   xxx
-0+200224 R_X86_64_SIZE32   xxx-0x0000001e
-0+200228 R_X86_64_SIZE32   xxx\+0x0000001e
-0+20022c R_X86_64_SIZE32   yyy
-0+200230 R_X86_64_SIZE32   zzz
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx-0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx\+0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   yyy
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz
 
 
 Contents of section .data:
200220 00000000 00000000 00000000 00000000  ................
200230 00000000 00000000 00000000 00000000  ................
200240 00000000 00000000 00000000 00000000  ................
200250 00000000 00000000 00000000           ............    
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000           ............    
index 80c4a66abd467d41387f55687865d6b9acaa8b0f..a913dc2f36d397f6a9e8af452440cf1c1cc6ea4c 100644 (file)
@@ -8,15 +8,15 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET           TYPE              VALUE 
-0+200360 R_X86_64_SIZE32   xxx
-0+200364 R_X86_64_SIZE32   xxx-0x000000000000001e
-0+200368 R_X86_64_SIZE32   xxx\+0x000000000000001e
-0+20036c R_X86_64_SIZE32   yyy
-0+200370 R_X86_64_SIZE32   zzz
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx-0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx\+0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   yyy
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz
 
 
 Contents of section .data:
200360 00000000 00000000 00000000 00000000  ................
200370 00000000 00000000 00000000 00000000  ................
200380 00000000 00000000 00000000 00000000  ................
200390 00000000 00000000 00000000           ............    
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000           ............    
index 2db0e1d33ea6cb185d8f87449083c26c330816b4..636e87f8d46cd2cbcefa6c847e4e6310b447c188 100644 (file)
@@ -8,13 +8,13 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
-0+123c R_386_SIZE32      xxx
-0+1240 R_386_SIZE32      yyy
-0+1244 R_386_SIZE32      zzz
-0+1248 R_386_SIZE32      zzz
-0+124c R_386_SIZE32      zzz
+[[:xdigit:]]+ R_386_SIZE32      xxx
+[[:xdigit:]]+ R_386_SIZE32      yyy
+[[:xdigit:]]+ R_386_SIZE32      zzz
+[[:xdigit:]]+ R_386_SIZE32      zzz
+[[:xdigit:]]+ R_386_SIZE32      zzz
 
 
 Contents of section .data:
123c 00000000 00000000 00000000 e2ffffff  ................
124c 1e000000                             ....            
[[:xdigit:]]+ 00000000 00000000 00000000 e2ffffff  ................
[[:xdigit:]]+ 1e000000                             ....            
index 9c1eae2695ce6eca72322de26eb4015ff0c029b1..c619a00f2a0a1cc118468821e8b95e599a399755 100644 (file)
@@ -8,13 +8,13 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
-0+200278 R_X86_64_SIZE32   xxx
-0+20027c R_X86_64_SIZE32   yyy
-0+200280 R_X86_64_SIZE32   zzz
-0+200284 R_X86_64_SIZE32   zzz-0x0000001e
-0+200288 R_X86_64_SIZE32   zzz\+0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx
+[[:xdigit:]]+ R_X86_64_SIZE32   yyy
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz-0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz\+0x0000001e
 
 
 Contents of section .data:
200278 00000000 00000000 00000000 00000000  ................
200288 00000000                             ....            
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000                             ....            
index 1851e0f021e41e243c4ced496affd7fdeb8e7343..9091944405acd97bde925378162dc8dd090aaa54 100644 (file)
@@ -8,13 +8,13 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET           TYPE              VALUE 
-0+2003d8 R_X86_64_SIZE32   xxx
-0+2003dc R_X86_64_SIZE32   yyy
-0+2003e0 R_X86_64_SIZE32   zzz
-0+2003e4 R_X86_64_SIZE32   zzz-0x000000000000001e
-0+2003e8 R_X86_64_SIZE32   zzz\+0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx
+[[:xdigit:]]+ R_X86_64_SIZE32   yyy
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz-0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz\+0x000000000000001e
 
 
 Contents of section .data:
2003d8 00000000 00000000 00000000 00000000  ................
2003e8 00000000                             ....            
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000                             ....            
index 51c2f1355e3b0f9a63c6b15c8356aec476421350..36815915ae5888b886c53db184567492b60104f2 100644 (file)
@@ -8,16 +8,16 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
-0+200220 R_X86_64_SIZE32   xxx
-0+200228 R_X86_64_SIZE64   xxx-0x0000001e
-0+200230 R_X86_64_SIZE64   xxx\+0x0000001e
-0+200238 R_X86_64_SIZE32   yyy
-0+200240 R_X86_64_SIZE32   zzz
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx
+[[:xdigit:]]+ R_X86_64_SIZE64   xxx-0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE64   xxx\+0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   yyy
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz
 
 
 Contents of section .data:
200220 00000000 00000000 00000000 00000000  ................
200230 00000000 00000000 00000000 00000000  ................
200240 00000000 00000000 00000000 00000000  ................
200250 00000000 00000000 00000000 00000000  ................
200260 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
index c4ed9c27baf936698ae0f5205f791e65c564f92c..36c2912e97c83abcc98bdb5a592d95923349a6ca 100644 (file)
@@ -8,16 +8,16 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET           TYPE              VALUE 
-0+200360 R_X86_64_SIZE64   xxx
-0+200368 R_X86_64_SIZE64   xxx-0x000000000000001e
-0+200370 R_X86_64_SIZE64   xxx\+0x000000000000001e
-0+200378 R_X86_64_SIZE64   yyy
-0+200380 R_X86_64_SIZE64   zzz
+[[:xdigit:]]+ R_X86_64_SIZE64   xxx
+[[:xdigit:]]+ R_X86_64_SIZE64   xxx-0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE64   xxx\+0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE64   yyy
+[[:xdigit:]]+ R_X86_64_SIZE64   zzz
 
 
 Contents of section .data:
200360 00000000 00000000 00000000 00000000  ................
200370 00000000 00000000 00000000 00000000  ................
200380 00000000 00000000 00000000 00000000  ................
200390 00000000 00000000 00000000 00000000  ................
2003a0 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
index 1a30c984fe594201cb721cf83709d466976bb574..f9f31b5bff134ff8e7679b35e381be2a41e4f142 100644 (file)
@@ -8,14 +8,14 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
-0+200278 R_X86_64_SIZE32   xxx
-0+200280 R_X86_64_SIZE32   yyy
-0+200288 R_X86_64_SIZE32   zzz
-0+200290 R_X86_64_SIZE64   zzz-0x0000001e
-0+200298 R_X86_64_SIZE64   zzz\+0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE32   xxx
+[[:xdigit:]]+ R_X86_64_SIZE32   yyy
+[[:xdigit:]]+ R_X86_64_SIZE32   zzz
+[[:xdigit:]]+ R_X86_64_SIZE64   zzz-0x0000001e
+[[:xdigit:]]+ R_X86_64_SIZE64   zzz\+0x0000001e
 
 
 Contents of section .data:
200278 00000000 00000000 00000000 00000000  ................
200288 00000000 00000000 00000000 00000000  ................
200298 00000000 00000000                    ........        
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000                    ........        
index 4cc11cfde3405add34f8d0fbb834adf5dffca169..099c8abc23161ac0be34b121dd293d6a33a06234 100644 (file)
@@ -8,14 +8,14 @@
 
 DYNAMIC RELOCATION RECORDS
 OFFSET           TYPE              VALUE 
-0+2003d8 R_X86_64_SIZE64   xxx
-0+2003e0 R_X86_64_SIZE64   yyy
-0+2003e8 R_X86_64_SIZE64   zzz
-0+2003f0 R_X86_64_SIZE64   zzz-0x000000000000001e
-0+2003f8 R_X86_64_SIZE64   zzz\+0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE64   xxx
+[[:xdigit:]]+ R_X86_64_SIZE64   yyy
+[[:xdigit:]]+ R_X86_64_SIZE64   zzz
+[[:xdigit:]]+ R_X86_64_SIZE64   zzz-0x000000000000001e
+[[:xdigit:]]+ R_X86_64_SIZE64   zzz\+0x000000000000001e
 
 
 Contents of section .data:
2003d8 00000000 00000000 00000000 00000000  ................
2003e8 00000000 00000000 00000000 00000000  ................
2003f8 00000000 00000000                    ........        
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000 00000000 00000000  ................
[[:xdigit:]]+ 00000000 00000000                    ........