From 133c2bb2574bb91b6b42efcba5080611a69de073 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 7 Dec 2012 12:32:50 +0000 Subject: [PATCH] Add a testase for PR ld/14926 PR ld/14926 * ld-elf/pr14926.d: New file. * ld-elf/pr14926.s: Likewise. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/pr14926.d | 13 +++++++++++++ ld/testsuite/ld-elf/pr14926.s | 10 ++++++++++ 3 files changed, 29 insertions(+) create mode 100644 ld/testsuite/ld-elf/pr14926.d create mode 100644 ld/testsuite/ld-elf/pr14926.s diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index da5d820b4e3..c06f8abc13b 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-12-07 H.J. Lu + + PR ld/14926 + * ld-elf/pr14926.d: New file. + * ld-elf/pr14926.s: Likewise. + 2012-12-07 Alan Modra * 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 00000000000..2352b0b9d70 --- /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 00000000000..3d132f68ddc --- /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 -- 2.30.2