aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/sane1.d
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-01-23 03:29:30 +0000
committerAlan Modra <amodra@gmail.com>2011-01-23 03:29:30 +0000
commit6a2bb0805551035ee235d02e65da3d74304b9167 (patch)
treed89d3c9d8bc91c533d116ff3336b8ab66335ea01 /ld/testsuite/ld-scripts/sane1.d
parentaf1e3ccbec05154f83f17d5f89d2e7bd94ff8fbf (diff)
downloadgdb-6a2bb0805551035ee235d02e65da3d74304b9167.zip
gdb-6a2bb0805551035ee235d02e65da3d74304b9167.tar.gz
gdb-6a2bb0805551035ee235d02e65da3d74304b9167.tar.bz2
* ld-scripts/sane1.d, * ld-scripts/sane1.t: New test.
* ld-scripts/expr.exp: Run it.
Diffstat (limited to 'ld/testsuite/ld-scripts/sane1.d')
-rw-r--r--ld/testsuite/ld-scripts/sane1.d33
1 files changed, 33 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/sane1.d b/ld/testsuite/ld-scripts/sane1.d
new file mode 100644
index 0000000..26abaf3
--- /dev/null
+++ b/ld/testsuite/ld-scripts/sane1.d
@@ -0,0 +1,33 @@
+# source: data.s
+# ld: -T sane1.t
+# nm: -B
+# notarget: mmix-* pdp11-* rs6000-*-aix* tic30-*-aout
+# mmix symbol sections are wrong, pdp sign extends 16-bit addresses
+# rs6000-aix and tic30 don't like empty .text
+
+#...
+0+8004 D d1
+0+8024 D d2
+0+0020 A diff
+0+0100 A e1
+0+0080 A e2
+0+8000 A e3
+0+0090 A prod
+0+8002 D s1
+0+8001 D s2
+0+8007 D s3
+0+8002 A s4
+0+0004 A s5
+0+19a0 A s6
+0+8020 D s_diff
+0+8090 D s_prod
+0+8028 D s_sum
+0+8020 D s_sum_neg
+0+0028 A sum
+0+0020 A sum_neg
+0+8002 D x1
+0+8001 D x2
+0+8007 D x3
+0+8002 A x4
+0+0004 A x5
+0+19a0 A x6