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 | | ************************************************************************** |
---|
23 | | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. * |
---|
24 | | * On-Line Applications Research Corporation (OAR). * |
---|
25 | | * All rights assigned to U.S. Government, 1994. * |
---|
26 | | * * |
---|
27 | | * This material may be reproduced by or for the U.S. Government pursuant * |
---|
28 | | * to the copyright license under the clause at DFARS 252.227-7013. This * |
---|
29 | | * notice must appear in all copies of this file and its derivatives. * |
---|
30 | | ************************************************************************** |
---|
31 | +--------------------------------------------------------------------------*/ |
---|
32 | |
---|
33 | |
---|
34 | SECTIONS |
---|
35 | { |
---|
36 | .text : |
---|
37 | { |
---|
38 | _text_start = . ; |
---|
39 | *(.text) |
---|
40 | _etext = ALIGN( 0x10 ) ; |
---|
41 | } |
---|
42 | .rodata ADDR( .text ) + SIZEOF( .text ): |
---|
43 | { |
---|
44 | _rodata_start = . ; |
---|
45 | *(.rodata) |
---|
46 | _erodata = ALIGN( 0x10 ) ; |
---|
47 | } |
---|
48 | .data ADDR( .rodata ) + SIZEOF( .rodata ): |
---|
49 | { |
---|
50 | _data_start = . ; |
---|
51 | *(.data) |
---|
52 | _edata = ALIGN( 0x10 ) ; |
---|
53 | } |
---|
54 | .bss ADDR( .data ) + SIZEOF( .data ): |
---|
55 | { |
---|
56 | _bss_start = . ; |
---|
57 | *(.bss) |
---|
58 | *(COMMON) |
---|
59 | _end = . ; |
---|
60 | __end = . ; |
---|
61 | } |
---|
62 | } |
---|