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