aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/group1.d
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-11-18 20:29:25 +1030
committerAlan Modra <amodra@gmail.com>2020-11-18 23:49:31 +1030
commite4d9e5422fa233e9e32ce89e07a5a6ca89e85090 (patch)
tree3697128c76e70fe669e89dd874bdf968c767923d /ld/testsuite/ld-powerpc/group1.d
parent058430b4a1ed7441dfc2e167bfdb9dc89ea9a209 (diff)
downloadgdb-e4d9e5422fa233e9e32ce89e07a5a6ca89e85090.zip
gdb-e4d9e5422fa233e9e32ce89e07a5a6ca89e85090.tar.gz
gdb-e4d9e5422fa233e9e32ce89e07a5a6ca89e85090.tar.bz2
PowerPC paranioa testing of symbol merging involving comdat groups
Ensures we don't mistreat st_other localentry bits. * testsuite/ld-powerpc/group1.d, * testsuite/ld-powerpc/group1.s, * testsuite/ld-powerpc/group1.sym, * testsuite/ld-powerpc/group2.d, * testsuite/ld-powerpc/group2.s, * testsuite/ld-powerpc/group2.sym, * testsuite/ld-powerpc/group3.s, * testsuite/ld-powerpc/group3.sym: New test files. * testsuite/ld-powerpc/powerpc.exp: Run new tests.
Diffstat (limited to 'ld/testsuite/ld-powerpc/group1.d')
-rw-r--r--ld/testsuite/ld-powerpc/group1.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/group1.d b/ld/testsuite/ld-powerpc/group1.d
new file mode 100644
index 0000000..848e2ab
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/group1.d
@@ -0,0 +1,14 @@
+#source: group1.s
+#source: group2.s
+#source: group3.s
+#as: -a64 -e foo
+#ld: -melf64ppc
+#objdump: -d
+
+.*
+
+Disassembly of section \.text:
+
+.* <foo>:
+.*: (60 00 00 00|00 00 00 60) nop
+.*: (4e 80 00 20|20 00 80 4e) blr