source: rtems/c/src/lib/libbsp/mips/p4000/startup/linkcmds @ f198c63

4.104.114.84.95
Last change on this file since f198c63 was f198c63, checked in by Joel Sherrill <joel.sherrill@…>, on 09/06/96 at 18:11:41

new file for MIPS port by Craig Lebakken (lebakken@…) and
Derrick Ostertag (ostertag@…).

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/* @(#)linkcmds       04/08/96     1.2 */
2OUTPUT_FORMAT("elf32-bigmips")
3OUTPUT_ARCH(mips)
4/* Do we need any of these for elf?
5   __DYNAMIC = 0;    */
6_DYNAMIC_LINK = 0;
7SECTIONS
8{
9  /* Read-only sections, merged into text segment: */
10  .text 0x80030000  :                           /* */
11/*  .text 0xa0020000  :                         /* */
12/*  .text 0x00020000  :                         /* */
13  {
14    _ftext = . ;
15    *(.text)
16    CREATE_OBJECT_SYMBOLS
17    _etext = .;
18  }
19  .init    ALIGN(8)  : { *(.init)    } =0
20  .fini    ALIGN(8)  : { *(.fini)    } =0
21  .ctors   ALIGN(8)  : { *(.ctors)   }
22  .dtors   ALIGN(8)  : { *(.dtors)   }
23  .rodata  ALIGN(8)  : { *(.rodata)  }
24  .rodata1 ALIGN(8)  :
25    {
26      *(.rodata1)
27      . = ALIGN(8);
28    }
29  .reginfo . : { *(.reginfo) }
30  /* also: .hash .dynsym .dynstr .plt(if r/o) .rel.got */
31  /* Read-write section, merged into data segment: */
32  .data  ALIGN(16)  :
33  {
34    _fdata = . ;
35    *(.data)
36    CONSTRUCTORS
37  }
38  .data1 ALIGN(8)  : { *(.data1) }
39  _gp = . + 0x8000;
40  .lit8 . : { *(.lit8) }
41  .lit4 . : { *(.lit4) }
42  /* also (before uninitialized portion): .dynamic .got .plt(if r/w)
43     (or does .dynamic go into its own segment?) */
44  /* We want the small data sections together, so single-instruction offsets
45     can access them all, and initialized data all before uninitialized, so
46     we can shorten the on-disk segment size.  */
47  .sdata   ALIGN(8)  : { *(.sdata) }
48  _edata  =  .;
49  __bss_start = ALIGN(8);
50  _fbss = .;
51  .sbss    ALIGN(8)  : { *(.sbss) *(.scommon) }
52  .bss     ALIGN(8)  :
53  {
54   *(.bss)
55   *(COMMON)
56   _end = . ;
57   end = . ;
58  }
59  /* Debug sections.  These should never be loadable, but they must have
60     zero addresses for the debuggers to work correctly.  */
61  .line                 0 : { *(.line)                  }
62  .debug                0 : { *(.debug)                 }
63  .debug_sfnames        0 : { *(.debug_sfnames)         }
64  .debug_srcinfo        0 : { *(.debug_srcinfo)         }
65  .debug_macinfo        0 : { *(.debug_macinfo)         }
66  .debug_pubnames       0 : { *(.debug_pubnames)        }
67  .debug_aranges        0 : { *(.debug_aranges)         }
68}
69
Note: See TracBrowser for help on using the repository browser.