Add a testase for PR ld/14926
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2012 12:32:50 +0000 (12:32 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2012 12:32:50 +0000 (12:32 +0000)
PR ld/14926
* ld-elf/pr14926.d: New file.
* ld-elf/pr14926.s: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/pr14926.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr14926.s [new file with mode: 0644]

index da5d820b4e3cb78cf250b9d3fbeb2027fa45f69c..c06f8abc13bd786e90887659ac0bf48412c3cab9 100644 (file)
@@ -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 (file)
index 0000000..2352b0b
--- /dev/null
@@ -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 (file)
index 0000000..3d132f6
--- /dev/null
@@ -0,0 +1,10 @@
+       .text
+       .globl main
+       .globl start
+       .globl _start
+       .globl __start
+main:
+start:
+_start:
+__start:
+       .byte 0