Browse Source
2011-04-04 H.J. Lu <hongjiu.lu@intel.com> PR ld/12627 * ld-i386/i386.exp: Run pr12627. * ld-i386/pr12627.d: New. * ld-i386/pr12627.s: Likewise. * ld-i386/pr12627.t: Likewise.binutils-2_22-branch
5 changed files with 56 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||
#name: PR ld/12627 |
|||
#as: --32 |
|||
#ld: -melf_i386 -T pr12627.t |
|||
#nm: -n |
|||
|
|||
#... |
|||
0+100 A __bss16_dwords |
|||
#pass |
|||
@ -0,0 +1,11 @@ |
|||
.section ".text16","ax" |
|||
.globl _start |
|||
_start: |
|||
movl $__bss16_start, %edi |
|||
movl $__bss16_dwords, %ecx |
|||
xorl %eax, %eax |
|||
rep movsl |
|||
ret |
|||
|
|||
.section ".bss16","ax" |
|||
.space 1024 |
|||
@ -0,0 +1,27 @@ |
|||
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") |
|||
OUTPUT_ARCH(i386) |
|||
EXTERN(_start) |
|||
ENTRY(_start) |
|||
|
|||
SECTIONS |
|||
{ |
|||
. = 0x1000; |
|||
|
|||
.bss16 (NOLOAD) : { |
|||
__bss16_start = .; |
|||
*(.bss16) |
|||
__bss16_end = .; |
|||
} |
|||
__bss16_len = __bss16_end - __bss16_start; |
|||
__bss16_dwords = (__bss16_len + 3) >> 2; |
|||
|
|||
. = 0x8000; |
|||
|
|||
.text16 : { |
|||
FILL(0x90909090) |
|||
__text16_start = .; |
|||
*(.text16) |
|||
*(.text16.*) |
|||
__text16_end = .; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue