link.OUT
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:4k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* link.OUT - gnu linker command file for VxWorks: OUT */
  2. /* Copyright 1984-2001 Wind River Systems, Inc. */
  3. /* This file was automatically generated using tool/common/ldscripts. */
  4. /*
  5. modification history
  6. --------------------
  7. 01k,24apr02,sn   GNU: SPR 75835 - added support for relocatable script (link.OUT)
  8. 01j,19apr02,tpw  Diab: provide _etext for ColdFire. SPR 75122
  9. 01i,06feb02,sn   Both: place .got2 to handle tramp.o (_x_gnu_tramp.o).
  10. 01h,25jan02,tpw  GNU: give debug sections explicit 0 addresses.
  11. 01g,14jan02,tpw  Diab: place .eh_frame data, in case of insistent GNU objects.
  12. 01f,14dec01,tpw  Diab: provide both underscore options of wrs_kernel* here too.
  13. 01e,05dec01,tpw  Both: Add .boot and .reset section support, for PPC 4xx series
  14.                  and Book E.
  15. 01d,05dec01,tpw  Diab: Add .frame_info section to text region.
  16. 01c,03dec01,jab  Diab: replaced LOAD() with AT()
  17. 01b,14nov01,tpw  ALL: Correct some more bootrom/kernel issues.
  18. 01b,06nov01,tpw  GNU: Add /DISCARD/ directive to discard uninteresting sections
  19. 01a,01nov01,tpw  gnu script written
  20. 01a,29oct01,jab  diab script written
  21. */
  22. ENTRY(_start)
  23. SECTIONS
  24. {
  25.   .text     0 :
  26.   {
  27.     
  28.     *(.text) *(.text.*) *(.stub) *(.gnu.warning) *(.gnu.linkonce.t*)
  29.     KEEP(*(.init)) KEEP(*(.fini))
  30.     *(.glue_7t) *(.glue_7) *(.rdata) /* for ARM */
  31.     *(.mips16.fn.*) *(.mips16.call.*) *(.reginfo) /* for MIPS */
  32.     *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.rodata1)
  33.     *(.sdata2) *(.sbss2) /* for PPC */
  34.     
  35.   }
  36.   
  37.   
  38.   
  39.   .data   0 :
  40.   {
  41.     
  42.     *(.data) *(.data.*) *(.gnu.linkonce.d*) SORT(CONSTRUCTORS) *(.data1)
  43.     *(.eh_frame) *(.gcc_except_table)
  44.     KEEP (*crtbegin.o(.ctors))
  45.     KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
  46.     KEEP (*(SORT(.ctors.*)))
  47.     KEEP (*(.ctors))
  48.     KEEP (*crtbegin.o(.dtors))
  49.     KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
  50.     KEEP (*(SORT(.dtors.*)))
  51.     KEEP (*(.dtors))
  52.     
  53.     /* got*, dynamic, sdata*, lit[48], and sbss should follow _gp */
  54.     *(.got.plt) *(.got) *(.dynamic)
  55.     *(.got2)
  56.     *(.sdata) *(.sdata.*) *(.lit8) *(.lit4)
  57.     
  58.   }
  59.   
  60.   
  61.   
  62.   .bss     0  :
  63.   {
  64.     
  65.     *(.sbss) *(.scommon) *(.dynbss) *(.bss) *(COMMON)
  66.     
  67.   }
  68.   
  69.   
  70.   
  71.   /DISCARD/ :
  72.   {
  73.   *(.note) /* seen on Pentium ELF */
  74.   *(.comment) /* seen on PPC & SH ELF */
  75.   *(.pdr) /* seen on MIPS ELF */
  76.   }
  77.   /* Stabs debugging sections.  */
  78.   .stab 0 : { *(.stab) }
  79.   .stabstr 0 : { *(.stabstr) }
  80.   .stab.excl 0 : { *(.stab.excl) }
  81.   .stab.exclstr 0 : { *(.stab.exclstr) }
  82.   .stab.index 0 : { *(.stab.index) }
  83.   .stab.indexstr 0 : { *(.stab.indexstr) }
  84.   .comment 0 : { *(.comment) }
  85.   /* DWARF debug sections.
  86.      Symbols in the DWARF debugging sections are relative to the beginning
  87.      of the section so we begin them at 0.  */
  88.   /* DWARF 1 */
  89.   .debug          0 : { *(.debug) }
  90.   .line           0 : { *(.line) }
  91.   /* GNU DWARF 1 extensions */
  92.   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  93.   .debug_sfnames  0 : { *(.debug_sfnames) }
  94.   /* DWARF 1.1 and DWARF 2 */
  95.   .debug_aranges  0 : { *(.debug_aranges) }
  96.   .debug_pubnames 0 : { *(.debug_pubnames) }
  97.   /* DWARF 2 */
  98.   .debug_info     0 : { *(.debug_info) }
  99.   .debug_abbrev   0 : { *(.debug_abbrev) }
  100.   .debug_line     0 : { *(.debug_line) }
  101.   .debug_frame    0 : { *(.debug_frame) }
  102.   .debug_str      0 : { *(.debug_str) }
  103.   .debug_loc      0 : { *(.debug_loc) }
  104.   .debug_macinfo  0 : { *(.debug_macinfo) }
  105.   /* SGI/MIPS DWARF 2 extensions */
  106.   .debug_weaknames 0 : { *(.debug_weaknames) }
  107.   .debug_funcnames 0 : { *(.debug_funcnames) }
  108.   .debug_typenames 0 : { *(.debug_typenames) }
  109.   .debug_varnames  0 : { *(.debug_varnames) }
  110. }