[7150f00f] | 1 | /*-------------------------------------------------------------------------+ |
---|
| 2 | | linkcmds v1.1 - PC386 BSP - 1997/08/07 |
---|
| 3 | +--------------------------------------------------------------------------+ |
---|
| 4 | | This file contains directives for the GNU linker which are specific to the |
---|
| 5 | | PC386 bsp. |
---|
| 6 | +--------------------------------------------------------------------------+ |
---|
| 7 | | (C) Copyright 1997 - |
---|
| 8 | | - NavIST Group - Real-Time Distributed Systems and Industrial Automation |
---|
| 9 | | |
---|
| 10 | | http://pandora.ist.utl.pt |
---|
| 11 | | |
---|
| 12 | | Instituto Superior Tecnico * Lisboa * PORTUGAL |
---|
| 13 | +--------------------------------------------------------------------------+ |
---|
| 14 | | Disclaimer: |
---|
| 15 | | |
---|
| 16 | | This file is provided "AS IS" without warranty of any kind, either |
---|
| 17 | | expressed or implied. |
---|
| 18 | +--------------------------------------------------------------------------+ |
---|
| 19 | | This code is based on: |
---|
| 20 | | linkcmds,v 1.3 1995/12/19 20:06:58 joel Exp - FORCE CPU386 BSP |
---|
| 21 | | With the following copyright notice: |
---|
| 22 | | ************************************************************************** |
---|
[60b791ad] | 23 | | * COPYRIGHT (c) 1989-1998. |
---|
[6f9c75c3] | 24 | | * On-Line Applications Research Corporation (OAR). |
---|
| 25 | | * Copyright assigned to U.S. Government, 1994. |
---|
| 26 | | * |
---|
| 27 | | * The license and distribution terms for this file may be |
---|
| 28 | | * found in found in the file LICENSE in this distribution or at |
---|
| 29 | | * http://www.OARcorp.com/rtems/license.html. |
---|
[7150f00f] | 30 | | ************************************************************************** |
---|
[6f9c75c3] | 31 | | |
---|
| 32 | | $Id$ |
---|
[7150f00f] | 33 | +--------------------------------------------------------------------------*/ |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | SECTIONS |
---|
| 37 | { |
---|
| 38 | .text : |
---|
| 39 | { |
---|
| 40 | _text_start = . ; |
---|
| 41 | *(.text) |
---|
[f86ec42] | 42 | . = ALIGN (16); |
---|
| 43 | |
---|
[a863c50] | 44 | *(.eh_frame) |
---|
[f86ec42] | 45 | . = ALIGN (16); |
---|
| 46 | |
---|
[a863c50] | 47 | *(.gnu.linkonce.t*) |
---|
| 48 | |
---|
[f86ec42] | 49 | /* |
---|
| 50 | * C++ constructors |
---|
| 51 | */ |
---|
| 52 | __CTOR_LIST__ = .; |
---|
| 53 | LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) |
---|
| 54 | *(.ctors) |
---|
| 55 | LONG(0) |
---|
| 56 | __CTOR_END__ = .; |
---|
| 57 | __DTOR_LIST__ = .; |
---|
| 58 | LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) |
---|
| 59 | *(.dtors) |
---|
| 60 | LONG(0) |
---|
| 61 | __DTOR_END__ = .; |
---|
[a863c50] | 62 | |
---|
[7150f00f] | 63 | _rodata_start = . ; |
---|
| 64 | *(.rodata) |
---|
| 65 | _erodata = ALIGN( 0x10 ) ; |
---|
[a863c50] | 66 | |
---|
| 67 | _etext = ALIGN( 0x10 ) ; |
---|
[7150f00f] | 68 | } |
---|
[a863c50] | 69 | .data ADDR( .text ) + SIZEOF( .text ): |
---|
[7150f00f] | 70 | { |
---|
| 71 | _data_start = . ; |
---|
| 72 | *(.data) |
---|
[a863c50] | 73 | *(.gnu.linkonce.d*) |
---|
| 74 | *(.gcc_except_table) |
---|
[7150f00f] | 75 | _edata = ALIGN( 0x10 ) ; |
---|
| 76 | } |
---|
[a863c50] | 77 | |
---|
[7150f00f] | 78 | .bss ADDR( .data ) + SIZEOF( .data ): |
---|
| 79 | { |
---|
| 80 | _bss_start = . ; |
---|
| 81 | *(.bss) |
---|
| 82 | *(COMMON) |
---|
| 83 | _end = . ; |
---|
| 84 | __end = . ; |
---|
| 85 | } |
---|
| 86 | } |
---|