ld.script
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. OUTPUT_ARCH(powerpc)
  2. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  3. /* Do we need any of these for elf?
  4.    __DYNAMIC = 0;    */
  5. SECTIONS
  6. {
  7.   /* Read-only sections, merged into text segment: */
  8.   . = + SIZEOF_HEADERS;
  9.   .interp : { *(.interp) }
  10.   .hash          : { *(.hash) }
  11.   .dynsym        : { *(.dynsym) }
  12.   .dynstr        : { *(.dynstr) }
  13.   .rel.text      : { *(.rel.text) }
  14.   .rela.text     : { *(.rela.text)  }
  15.   .rel.data      : { *(.rel.data) }
  16.   .rela.data     : { *(.rela.data)  }
  17.   .rel.rodata    : { *(.rel.rodata)  }
  18.   .rela.rodata   : { *(.rela.rodata)  }
  19.   .rel.got       : { *(.rel.got) }
  20.   .rela.got      : { *(.rela.got) }
  21.   .rel.ctors     : { *(.rel.ctors) }
  22.   .rela.ctors    : { *(.rela.ctors) }
  23.   .rel.dtors     : { *(.rel.dtors) }
  24.   .rela.dtors    : { *(.rela.dtors) }
  25.   .rel.bss       : { *(.rel.bss) }
  26.   .rela.bss      : { *(.rela.bss) }
  27.   .rel.plt       : { *(.rel.plt) }
  28.   .rela.plt      : { *(.rela.plt) }
  29.   .plt : { *(.plt) }
  30.   .text      :
  31.   {
  32.     *(.text)
  33.     *(.fixup)
  34.     __relocate_start = .;
  35.     *(.relocate_code)
  36.     __relocate_end = .;
  37.   }
  38.   _etext = .;
  39.   PROVIDE (etext = .);
  40.   /* Read-write section, merged into data segment: */
  41.   . = ALIGN(8);
  42.   .data    :
  43.   {
  44.     *(.data)
  45.     *(.data1)
  46.     *(.data.boot)
  47.     *(.sdata)
  48.     *(.sdata2)
  49.     *(.got.plt) *(.got)
  50.     *(.dynamic)
  51.     *(.rodata)
  52.     *(.rodata.*)
  53.     *(.rodata1)
  54.     *(.got1)
  55.     __image_begin = .;
  56.     *(.image)
  57.     __image_end = .;
  58.     . = ALIGN(4096);
  59.     __ramdisk_begin = .;
  60.     *(.ramdisk)
  61.     __ramdisk_end = .;
  62.     . = ALIGN(4096);
  63.     __sysmap_begin = .;
  64.     *(.sysmap)
  65.     __sysmap_end = .;
  66.     . = ALIGN(4096);
  67.     CONSTRUCTORS
  68.   }
  69.   _edata  =  .;
  70.   PROVIDE (edata = .);
  71.   . = ALIGN(8);
  72.   __bss_start = .;
  73.   .bss       :
  74.   {
  75.    *(.sbss) *(.scommon)
  76.    *(.dynbss)
  77.    *(.bss)
  78.    *(COMMON)
  79.   }
  80.   _end = . ;
  81.   PROVIDE (end = .);
  82. }