diff options
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr13839.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr13839.s | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr13839.t | 9 |
4 files changed, 32 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 1e3c5c1..a17d081 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-03-14 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/13839 + * ld-elf/pr13839.d: New. + * ld-elf/pr13839.s: Likewise. + * ld-elf/pr13839.t: Likewise. + 2012-03-09 H.J. Lu <hongjiu.lu@intel.com> PR ld/13817 diff --git a/ld/testsuite/ld-elf/pr13839.d b/ld/testsuite/ld-elf/pr13839.d new file mode 100644 index 0000000..fc63a90 --- /dev/null +++ b/ld/testsuite/ld-elf/pr13839.d @@ -0,0 +1,6 @@ +#ld: -T pr13839.t +#nm: -n + +#... +[0-9a-f]+ T _text +#pass diff --git a/ld/testsuite/ld-elf/pr13839.s b/ld/testsuite/ld-elf/pr13839.s new file mode 100644 index 0000000..3d132f6 --- /dev/null +++ b/ld/testsuite/ld-elf/pr13839.s @@ -0,0 +1,10 @@ + .text + .globl main + .globl start + .globl _start + .globl __start +main: +start: +_start: +__start: + .byte 0 diff --git a/ld/testsuite/ld-elf/pr13839.t b/ld/testsuite/ld-elf/pr13839.t new file mode 100644 index 0000000..6baa228 --- /dev/null +++ b/ld/testsuite/ld-elf/pr13839.t @@ -0,0 +1,9 @@ +SECTIONS { + .text : { + _text = .; + *(.text) + } + _end = .; + /DISCARD/ : { *(.*) } +} +. = ASSERT((_end - _text <= (512 * 1024 * 1024)), "foo"); |