Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openhackware / src / boot.ld
1 /* 
2  *   <boot.ld>
3  *      
4  *   First stage BIOS loader for Open Hack'Ware linker script.
5  *   
6  *   Copyright (C) 2004-2005 Jocelyn Mayer (l_indien@magic.fr)
7  *   
8  *   This program is free software; you can redistribute it and/or
9  *   modify it under the terms of the GNU General Public License V2
10  *   as published by the Free Software Foundation
11  *
12  *   This program is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with this program; if not, write to the Free Software
19  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 OUTPUT_ARCH(powerpc:common)
23
24 MEMORY
25 {
26         /* NOTE: some old ld do not support wrapping to zero, 
27            so we set a dummy address different from 0xFFFFFE00 */
28         rom (rx) : ORIGIN = 0xEFFFFE00, LENGTH = 512
29 }
30
31 SECTIONS
32 {
33         .rom      : { *(.rom)     } > rom
34         /DISCARD/ : { *(.text)    }
35         /DISCARD/ : { *(.rodata)  }
36         /DISCARD/ : { *(.data)    }
37         /DISCARD/ : { *(.bss)     }
38         /DISCARD/ : { *(.sbss)    }
39         /DISCARD/ : { *(.sdata)   }
40         /DISCARD/ : { *(.sdata2)  }
41         /DISCARD/ : { *(.stab)    }
42         /DISCARD/ : { *(.stabstr) }
43         /DISCARD/ : { *(.comment) }
44         /DISCARD/ : { *(.note)    }
45 }