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:
H.J. Lu 2012-03-14 15:56:13 +00:00
parent e837f12a8d
commit 3d3e6bc3f4
4 changed files with 32 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,6 @@
#ld: -T pr13839.t
#nm: -n
#...
[0-9a-f]+ T _text
#pass

View file

@ -0,0 +1,10 @@
.text
.globl main
.globl start
.globl _start
.globl __start
main:
start:
_start:
__start:
.byte 0

View file

@ -0,0 +1,9 @@
SECTIONS {
.text : {
_text = .;
*(.text)
}
_end = .;
/DISCARD/ : { *(.*) }
}
. = ASSERT((_end - _text <= (512 * 1024 * 1024)), "foo");