aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-04-05 09:02:58 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-04-05 09:02:58 +0000
commitc51297b4700487f73272548c4a775d71e2ab7d2e (patch)
treefab535336797fc90a2fb3e4dc2d65e60db7be185 /ld
parentd814f9a9b685855788cec2a966eab9b061a7a440 (diff)
downloadgdb-c51297b4700487f73272548c4a775d71e2ab7d2e.zip
gdb-c51297b4700487f73272548c4a775d71e2ab7d2e.tar.gz
gdb-c51297b4700487f73272548c4a775d71e2ab7d2e.tar.bz2
2010-04-05 Kai Tietz <kai.tietz@onevision.com>
* ld-pe/orphan_nu.d: New test for --no-leading-underscore. * ld-pe/orphana_nu.s: New file. * ld-pe/pe.exp: Add orphan_nu test.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-pe/orphan_nu.d13
-rw-r--r--ld/testsuite/ld-pe/orphana_nu.s8
-rw-r--r--ld/testsuite/ld-pe/pe.exp1
4 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 97a39ec..8cd1d75 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-05 Kai Tietz <kai.tietz@onevision.com>
+
+ * ld-pe/orphan_nu.d: New test for --no-leading-underscore.
+ * ld-pe/orphana_nu.s: New file.
+ * ld-pe/pe.exp: Add orphan_nu test.
+
2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
* ld-powerpc/apuinfo-nul.rd: New.
diff --git a/ld/testsuite/ld-pe/orphan_nu.d b/ld/testsuite/ld-pe/orphan_nu.d
new file mode 100644
index 0000000..5e88da7
--- /dev/null
+++ b/ld/testsuite/ld-pe/orphan_nu.d
@@ -0,0 +1,13 @@
+#source: orphana_nu.s
+#source: orphanb.s
+#source: orphand.s
+#source: orphane.s
+#ld: --file-align 1 --section-align 1 --no-leading-underscore
+#objdump: -h --wide
+
+#...
+ +0 +\.text .*
+ +1 +\.foo +0+20 .*
+ +2 +\.foo +0+20 .*
+ +3 +\.idata .*
+#pass
diff --git a/ld/testsuite/ld-pe/orphana_nu.s b/ld/testsuite/ld-pe/orphana_nu.s
new file mode 100644
index 0000000..d3c564f
--- /dev/null
+++ b/ld/testsuite/ld-pe/orphana_nu.s
@@ -0,0 +1,8 @@
+ .globl mainCRTStartup
+ .globl start
+ .text
+mainCRTStartup:
+start:
+
+ .section .foo,"b"
+ .space 16
diff --git a/ld/testsuite/ld-pe/pe.exp b/ld/testsuite/ld-pe/pe.exp
index 21e38ae..dd4b9f7 100644
--- a/ld/testsuite/ld-pe/pe.exp
+++ b/ld/testsuite/ld-pe/pe.exp
@@ -69,6 +69,7 @@ run_dump_test "longsecn-4"
run_dump_test "longsecn-5"
run_dump_test "orphan"
+run_dump_test "orphan_nu"
set foreign_sym_test {
{"non-C aligned common" "" "" {non-c-lang-syms.s}