Add a testcase for PR ld/13839
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.
This commit is contained in:
parent
e837f12a8d
commit
3d3e6bc3f4
4 changed files with 32 additions and 0 deletions
|
@ -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
|
||||
|
|
6
ld/testsuite/ld-elf/pr13839.d
Normal file
6
ld/testsuite/ld-elf/pr13839.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ld: -T pr13839.t
|
||||
#nm: -n
|
||||
|
||||
#...
|
||||
[0-9a-f]+ T _text
|
||||
#pass
|
10
ld/testsuite/ld-elf/pr13839.s
Normal file
10
ld/testsuite/ld-elf/pr13839.s
Normal file
|
@ -0,0 +1,10 @@
|
|||
.text
|
||||
.globl main
|
||||
.globl start
|
||||
.globl _start
|
||||
.globl __start
|
||||
main:
|
||||
start:
|
||||
_start:
|
||||
__start:
|
||||
.byte 0
|
9
ld/testsuite/ld-elf/pr13839.t
Normal file
9
ld/testsuite/ld-elf/pr13839.t
Normal file
|
@ -0,0 +1,9 @@
|
|||
SECTIONS {
|
||||
.text : {
|
||||
_text = .;
|
||||
*(.text)
|
||||
}
|
||||
_end = .;
|
||||
/DISCARD/ : { *(.*) }
|
||||
}
|
||||
. = ASSERT((_end - _text <= (512 * 1024 * 1024)), "foo");
|
Loading…
Reference in a new issue