1 /* gcc.ld - COFF linker directives for the Tektronix XD88.
3 This file is part of GNU CC.
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)
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.
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.
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.
30 .text 0x10200 BLOCK (0x200):
31 { *(.init) *(.text) *(.rodata) *(.tdesc) *(.fini)}
33 GROUP BIND( ((SIZEOF(.text) / 0x400000 * 0x400000) + 0x400000) +
34 ((SIZEOF(.text) + ADDR(.text)) % 0x10000) ) :