aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-12-07 12:32:50 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-12-07 12:32:50 +0000
commit133c2bb2574bb91b6b42efcba5080611a69de073 (patch)
tree309c7642021b8cd116921101f7031b6ae877b90b /ld
parent6559e01342e89cf306c7f248795ff6f4a61e20f9 (diff)
downloadgdb-133c2bb2574bb91b6b42efcba5080611a69de073.zip
gdb-133c2bb2574bb91b6b42efcba5080611a69de073.tar.gz
gdb-133c2bb2574bb91b6b42efcba5080611a69de073.tar.bz2
Add a testase for PR ld/14926
PR ld/14926 * ld-elf/pr14926.d: New file. * ld-elf/pr14926.s: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/pr14926.d13
-rw-r--r--ld/testsuite/ld-elf/pr14926.s10
3 files changed, 29 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index da5d820..c06f8ab 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2012-12-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/14926
+ * ld-elf/pr14926.d: New file.
+ * ld-elf/pr14926.s: Likewise.
+
2012-12-07 Alan Modra <amodra@gmail.com>
* ld-elf/comm-data.exp: Revert last change.
diff --git a/ld/testsuite/ld-elf/pr14926.d b/ld/testsuite/ld-elf/pr14926.d
new file mode 100644
index 0000000..2352b0b
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr14926.d
@@ -0,0 +1,13 @@
+#ld: -Ttext=0x60
+#readelf: -S -l --wide
+
+#...
+ \[[ 0-9]+\] \.text[ \t]+PROGBITS[ \t]+0*60[ \t]+.*
+#...
+Program Headers:
+ Type.*
+ LOAD[ \t]+0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x[0-9a-f]+
+
+ Section to Segment mapping:
+ Segment Sections...
+ 00 .text *
diff --git a/ld/testsuite/ld-elf/pr14926.s b/ld/testsuite/ld-elf/pr14926.s
new file mode 100644
index 0000000..3d132f6
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr14926.s
@@ -0,0 +1,10 @@
+ .text
+ .globl main
+ .globl start
+ .globl _start
+ .globl __start
+main:
+start:
+_start:
+__start:
+ .byte 0