Add missing files
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Jan 2013 23:39:05 +0000 (23:39 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Jan 2013 23:39:05 +0000 (23:39 +0000)
ld/testsuite/ChangeLog
ld/testsuite/ld-size/size32-3-i386.d [new file with mode: 0644]
ld/testsuite/ld-size/size32-3-x32.d [new file with mode: 0644]
ld/testsuite/ld-size/size32-3-x86-64.d [new file with mode: 0644]
ld/testsuite/ld-size/size32-3a.s [new file with mode: 0644]
ld/testsuite/ld-size/size32-3b.s [new file with mode: 0644]

index b6d5214..2432df4 100644 (file)
@@ -3,7 +3,8 @@
        * ld-size/size32-3-i386.d: New file.
        * ld-size/size32-3-x32.d: Likewise.
        * ld-size/size32-3-x86-64.d: Likewise.
-       * ld-size/size32-3.s: Likewise.
+       * ld-size/size32-3a.s: Likewise.
+       * ld-size/size32-3b.s: Likewise.
 
 2013-01-16  H.J. Lu  <hongjiu.lu@intel.com>
 
diff --git a/ld/testsuite/ld-size/size32-3-i386.d b/ld/testsuite/ld-size/size32-3-i386.d
new file mode 100644 (file)
index 0000000..fbdd591
--- /dev/null
@@ -0,0 +1,11 @@
+#source: size32-3a.s
+#source: size32-3b.s
+#as: --32
+#ld: -shared -melf_i386 -z nocombreloc
+#readelf: -r --wide
+#target: x86_64-*-* i?86-*-*
+
+#failif
+#...
+.* +R_386_NONE +.*
+#...
diff --git a/ld/testsuite/ld-size/size32-3-x32.d b/ld/testsuite/ld-size/size32-3-x32.d
new file mode 100644 (file)
index 0000000..794ac16
--- /dev/null
@@ -0,0 +1,11 @@
+#source: size32-3a.s
+#source: size32-3b.s
+#as: --x32
+#ld: -shared -melf32_x86_64 -z nocombreloc
+#readelf: -r --wide
+#target: x86_64-*-*
+
+#failif
+#...
+.* +R_X86_64_NONE +.*
+#...
diff --git a/ld/testsuite/ld-size/size32-3-x86-64.d b/ld/testsuite/ld-size/size32-3-x86-64.d
new file mode 100644 (file)
index 0000000..e8c083a
--- /dev/null
@@ -0,0 +1,11 @@
+#source: size32-3a.s
+#source: size32-3b.s
+#as: --64
+#ld: -shared -melf_x86_64 -z nocombreloc
+#readelf: -r --wide
+#target: x86_64-*-*
+
+#failif
+#...
+.* +R_X86_64_NONE +.*
+#...
diff --git a/ld/testsuite/ld-size/size32-3a.s b/ld/testsuite/ld-size/size32-3a.s
new file mode 100644 (file)
index 0000000..bb21345
--- /dev/null
@@ -0,0 +1,5 @@
+# 32-bit size relocation against hidden symbol in shared object
+       .comm   xxx,40,32
+       .data
+       .p2align 2
+       .long   xxx@SIZE
diff --git a/ld/testsuite/ld-size/size32-3b.s b/ld/testsuite/ld-size/size32-3b.s
new file mode 100644 (file)
index 0000000..32bd543
--- /dev/null
@@ -0,0 +1,2 @@
+# 32-bit size relocation against hidden symbol in shared object
+       .hidden xxx