Add tests for PR ld/20513
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 1 Sep 2016 19:01:00 +0000 (12:01 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 1 Sep 2016 19:01:11 +0000 (12:01 -0700)
PR ld/20513
* testsuite/ld-elf/pr20513a.d: New file.
* testsuite/ld-elf/pr20513a.s: Likewise.
* testsuite/ld-elf/pr20513b.d: Likewise.
* testsuite/ld-elf/pr20513b.s: Likewise.
* testsuite/ld-elf/pr20513c.d: Likewise.
* testsuite/ld-elf/pr20513d.d: Likewise.
* testsuite/ld-elf/pr20513e.d: Likewise.
* testsuite/ld-elf/pr20513f.d: Likewise.

ld/ChangeLog
ld/testsuite/ld-elf/pr20513a.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr20513a.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr20513b.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr20513b.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr20513c.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr20513d.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr20513e.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr20513f.d [new file with mode: 0644]

index 9ad7417b73e093817554e5815ab831aa13284414..e7b9bab69633aa9bde8fb778c443b419f116e932 100644 (file)
@@ -1,3 +1,15 @@
+2016-09-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20513
+       * testsuite/ld-elf/pr20513a.d: New file.
+       * testsuite/ld-elf/pr20513a.s: Likewise.
+       * testsuite/ld-elf/pr20513b.d: Likewise.
+       * testsuite/ld-elf/pr20513b.s: Likewise.
+       * testsuite/ld-elf/pr20513c.d: Likewise.
+       * testsuite/ld-elf/pr20513d.d: Likewise.
+       * testsuite/ld-elf/pr20513e.d: Likewise.
+       * testsuite/ld-elf/pr20513f.d: Likewise.
+
 2016-08-31  Alan Modra  <amodra@gmail.com>
 
        PR 20513
diff --git a/ld/testsuite/ld-elf/pr20513a.d b/ld/testsuite/ld-elf/pr20513a.d
new file mode 100644 (file)
index 0000000..4a9ee96
--- /dev/null
@@ -0,0 +1,9 @@
+#source: pr20513a.s
+#source: pr20513b.s
+#ld:
+#readelf: -S --wide
+
+#failif
+#...
+[      ]*\[.*\][       ]+\..text\.exclude[     ]+.*
+#...
diff --git a/ld/testsuite/ld-elf/pr20513a.s b/ld/testsuite/ld-elf/pr20513a.s
new file mode 100644 (file)
index 0000000..0f54bb1
--- /dev/null
@@ -0,0 +1,14 @@
+       .section .text.startup,"ax","progbits"
+       .type start,"function"
+       .global start
+start:
+       .type _start,"function"
+       .global _start
+_start:
+       .type __start,"function"
+       .global __start
+__start:
+       .type main,"function"
+       .global main
+main:
+       .long 0
diff --git a/ld/testsuite/ld-elf/pr20513b.d b/ld/testsuite/ld-elf/pr20513b.d
new file mode 100644 (file)
index 0000000..73de4ed
--- /dev/null
@@ -0,0 +1,9 @@
+#source: pr20513b.s
+#source: pr20513a.s
+#ld:
+#readelf: -S --wide
+
+#failif
+#...
+[      ]*\[.*\][       ]+\..text\.exclude[     ]+.*
+#...
diff --git a/ld/testsuite/ld-elf/pr20513b.s b/ld/testsuite/ld-elf/pr20513b.s
new file mode 100644 (file)
index 0000000..b6741fc
--- /dev/null
@@ -0,0 +1,14 @@
+       .section .text.exclude,"axe","progbits"
+       .type start,"function"
+       .global start
+start:
+       .type _start,"function"
+       .global _start
+_start:
+       .type __start,"function"
+       .global __start
+__start:
+       .type main,"function"
+       .global main
+main:
+       .long 0
diff --git a/ld/testsuite/ld-elf/pr20513c.d b/ld/testsuite/ld-elf/pr20513c.d
new file mode 100644 (file)
index 0000000..6a019ef
--- /dev/null
@@ -0,0 +1,9 @@
+#source: pr20513a.s
+#source: pr20513b.s
+#ld: -shared
+#readelf: -S --wide
+
+#failif
+#...
+[      ]*\[.*\][       ]+\..text\.exclude[     ]+.*
+#...
diff --git a/ld/testsuite/ld-elf/pr20513d.d b/ld/testsuite/ld-elf/pr20513d.d
new file mode 100644 (file)
index 0000000..9b7199f
--- /dev/null
@@ -0,0 +1,9 @@
+#source: pr20513b.s
+#source: pr20513a.s
+#ld: -shared
+#readelf: -S --wide
+
+#failif
+#...
+[      ]*\[.*\][       ]+\..text\.exclude[     ]+.*
+#...
diff --git a/ld/testsuite/ld-elf/pr20513e.d b/ld/testsuite/ld-elf/pr20513e.d
new file mode 100644 (file)
index 0000000..6994652
--- /dev/null
@@ -0,0 +1,4 @@
+#source: pr20513a.s
+#source: pr20513b.s
+#ld: -r
+#error: multiple definition of
diff --git a/ld/testsuite/ld-elf/pr20513f.d b/ld/testsuite/ld-elf/pr20513f.d
new file mode 100644 (file)
index 0000000..83043f3
--- /dev/null
@@ -0,0 +1,4 @@
+#source: pr20513b.s
+#source: pr20513a.s
+#ld: -r
+#error: multiple definition of
This page took 0.031079 seconds and 4 git commands to generate.