Browse Source
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.cygwin-64bit-branch
4 changed files with 32 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
#ld: -T pr13839.t |
|||
#nm: -n |
|||
|
|||
#... |
|||
[0-9a-f]+ T _text |
|||
#pass |
|||
@ -0,0 +1,10 @@ |
|||
.text |
|||
.globl main |
|||
.globl start |
|||
.globl _start |
|||
.globl __start |
|||
main: |
|||
start: |
|||
_start: |
|||
__start: |
|||
.byte 0 |
|||
@ -0,0 +1,9 @@ |
|||
SECTIONS { |
|||
.text : { |
|||
_text = .; |
|||
*(.text) |
|||
} |
|||
_end = .; |
|||
/DISCARD/ : { *(.*) } |
|||
} |
|||
. = ASSERT((_end - _text <= (512 * 1024 * 1024)), "foo"); |
|||
Loading…
Reference in new issue