OSDN Git Service

(X_CFLAGS): New.
[pf3gnuchains/gcc-fork.git] / gcc / config / m88k / tekXD88.ld
1 /* gcc.ld - COFF linker directives for the Tektronix XD88.
2
3    This file is part of GNU CC.
4    
5    GNU CC is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2, or (at your option)
8    any later version.
9    
10    GNU CC is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14    
15    You should have received a copy of the GNU General Public License
16    along with GNU CC; see the file COPYING.  If not, write to
17    the Free Software Foundation, 59 Temple Place - Suite 330,
18    Boston, MA 02111-1307, USA.
19
20
21    This file does the following:
22         - Sets VIRTUAL addr of .text to 0x10200 
23           Sets FILE addr of .text to 0x200 (BLOCK directive)
24         - Depending on size of .text section rounds up to next
25           4 MG boundary, adds (size of .text and vaddr of .text) mod 64K
26           This is to handle sections larger than 4 MG.
27 */
28
29 SECTIONS {
30   .text 0x10200 BLOCK (0x200):
31     { *(.init) *(.text) *(.rodata) *(.tdesc) *(.fini)}
32
33   GROUP BIND( ((SIZEOF(.text) / 0x400000 * 0x400000) + 0x400000) +
34     ((SIZEOF(.text) + ADDR(.text)) % 0x10000) ) :
35     {
36       .data : { }
37       .bss  : { }
38     }
39 }