home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gcc-2.7.2.1-base.tgz / gcc-2.7.2.1-base.tar / fsf / gcc / config / m88k / dolphin.ld < prev    next >
Text File  |  1995-06-15  |  1KB  |  41 lines

  1. /* COFF linker directives for the Dolphin Triton88 for GNU compiler.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  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.
  10.  
  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.
  15.  
  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.  */
  20.  
  21.  
  22. /* This file does the following:
  23.  
  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.   */
  29.  
  30. SECTIONS {
  31.   .text 0x400200 BLOCK (0x200):
  32.     { *(.init) *(.text) *(.rodata) *(.tdesc) *(.fini)}
  33.  
  34.   GROUP BIND( (((SIZEOF(.text)+ADDR(.text)) / 0x400000 * 0x400000) + 0x400000) +
  35.     ((SIZEOF(.text) + ADDR(.text)) % 0x10000) ) :
  36.     {
  37.       .data : { }
  38.       .bss  : { }
  39.     }
  40. }
  41.