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.
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)
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. */
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) ) :