kern.ldscript revision 1.2
11.1Scherry/* $FreeBSD$ */
21.1ScherryOUTPUT_FORMAT("elf64-ia64-little", "elf64-ia64-little", "elf64-ia64-little")
31.1ScherryOUTPUT_ARCH(ia64)
41.1ScherryENTRY(start)
51.1ScherrySEARCH_DIR(/usr/lib);
61.1Scherrykernel_text = 0xe000000004000000;
71.1ScherrySECTIONS
81.1Scherry{
91.1Scherry  /* Read-only sections, merged into text segment: */
101.1Scherry  . = kernel_text + SIZEOF_HEADERS;
111.1Scherry  .interp         : { *(.interp) }
121.1Scherry  .hash           : { *(.hash) }
131.1Scherry  .dynsym         : { *(.dynsym) }
141.1Scherry  .dynstr         : { *(.dynstr) }
151.1Scherry  .gnu.version    : { *(.gnu.version) }
161.1Scherry  .gnu.version_d  : { *(.gnu.version_d) }
171.1Scherry  .gnu.version_r  : { *(.gnu.version_r) }
181.1Scherry  .rela.init      : { *(.rela.init) }
191.1Scherry  .rela.text      : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
201.1Scherry  .rela.fini      : { *(.rela.fini) }
211.1Scherry  .rela.rodata    : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
221.1Scherry  .rela.data      : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
231.1Scherry  .rela.ctors     : { *(.rela.ctors) }
241.1Scherry  .rela.dtors     : { *(.rela.dtors) }
251.1Scherry  .rela.got       : { *(.rela.got) }
261.1Scherry  .rela.sdata     : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) }
271.1Scherry  .rela.sbss      : { *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) }
281.1Scherry  .rela.sdata2    : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) }
291.1Scherry  .rela.sbss2     : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) }
301.1Scherry  .rela.bss       : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
311.1Scherry  .rela.plt       : { *(.rela.plt) }
321.1Scherry  .rela.IA_64.pltoff   : { *(.rela.IA_64.pltoff) }
331.1Scherry  PROVIDE (btext = .);
341.1Scherry  .init           :
351.1Scherry  {
361.1Scherry    *(.init)
371.1Scherry  } =0x00300000010070000002000001000400
381.1Scherry  .plt            : { *(.plt) }
391.1Scherry  .text           :
401.1Scherry  {
411.1Scherry    *(.text .stub .text.* .gnu.linkonce.t.*)
421.1Scherry    /* .gnu.warning sections are handled specially by elf32.em.  */
431.1Scherry    *(.gnu.warning)
441.1Scherry  } =0x00300000010070000002000001000400
451.1Scherry  .fini           :
461.1Scherry  {
471.1Scherry    *(.fini)
481.1Scherry  } =0x00300000010070000002000001000400
491.1Scherry  _etext = .;
501.1Scherry  PROVIDE (etext = .);
511.1Scherry  .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
521.1Scherry  .rodata1        : { *(.rodata1) }
531.1Scherry  .sdata2         : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) }
541.1Scherry  .sbss2          : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
551.1Scherry  .opd            : { *(.opd) }
561.1Scherry  .IA_64.unwind_info   : { *(.IA_64.unwind_info* .gnu.linkonce.ia64unwi.*) }
571.1Scherry  .IA_64.unwind   : { *(.IA_64.unwind* .gnu.linkonce.ia64unw.*) }
581.1Scherry  /* Adjust the address for the data segment.  We want to adjust up to
591.1Scherry     the same address within the page on the next page up.  */
601.1Scherry  . = . + 8192;
611.1Scherry  .data           :
621.1Scherry  {
631.1Scherry    *(.data.proc0 .data .data.* .gnu.linkonce.d.*)
641.1Scherry    SORT(CONSTRUCTORS)
651.1Scherry  }
661.1Scherry  .data1          : { *(.data1) }
671.1Scherry  .dynamic        : { *(.dynamic) }
681.1Scherry  .ctors          :
691.1Scherry  {
701.1Scherry    *(.ctors)
711.1Scherry    *(SORT(.ctors.*))
721.1Scherry  }
731.1Scherry  .dtors          :
741.1Scherry  {
751.1Scherry    *(.dtors)
761.1Scherry    *(SORT(.dtors.*))
771.1Scherry  }
781.1Scherry  . = ALIGN(16);
791.1Scherry  __gp = . + 0x200000;
801.1Scherry  .got            : { *(.got.plt) *(.got) }
811.1Scherry  .IA_64.pltoff   : { *(.IA_64.pltoff) }
821.1Scherry  /* We want the small data sections together, so single-instruction offsets
831.1Scherry     can access them all, and initialized data all before uninitialized, so
841.1Scherry     we can shorten the on-disk segment size.  */
851.1Scherry  .sdata          :
861.1Scherry  {
871.1Scherry    *(.sdata .sdata.* .gnu.linkonce.s.*)
881.1Scherry  }
891.1Scherry  _edata = .;
901.1Scherry  PROVIDE (edata = .);
911.1Scherry  __bss_start = .;
921.1Scherry  .sbss           :
931.1Scherry  {
941.1Scherry    PROVIDE (__sbss_start = .);
951.1Scherry    PROVIDE (___sbss_start = .);
961.1Scherry    *(.dynsbss)
971.1Scherry    *(.sbss .sbss.* .gnu.linkonce.sb.*)
981.1Scherry    *(.scommon)
991.1Scherry    PROVIDE (__sbss_end = .);
1001.1Scherry    PROVIDE (___sbss_end = .);
1011.1Scherry  }
1021.1Scherry  .bss            :
1031.1Scherry  {
1041.2Suebayasi    *(.dynbss)
1051.2Suebayasi    *(.bss .bss.* .gnu.linkonce.b.*)
1061.2Suebayasi    *(COMMON)
1071.2Suebayasi    /* Align here to ensure that the .bss section occupies space up to
1081.2Suebayasi       _end.  Align after .bss to ensure correct alignment even if the
1091.2Suebayasi       .bss section disappears because there are no input sections.  */
1101.2Suebayasi    . = ALIGN(64 / 8);
1111.1Scherry  }
1121.1Scherry  . = ALIGN(64 / 8);
1131.1Scherry  _end = .;
1141.1Scherry  PROVIDE (end = .);
1151.1Scherry  /* Stabs debugging sections.  */
1161.1Scherry  .stab          0 : { *(.stab) }
1171.1Scherry  .stabstr       0 : { *(.stabstr) }
1181.1Scherry  .stab.excl     0 : { *(.stab.excl) }
1191.1Scherry  .stab.exclstr  0 : { *(.stab.exclstr) }
1201.1Scherry  .stab.index    0 : { *(.stab.index) }
1211.1Scherry  .stab.indexstr 0 : { *(.stab.indexstr) }
1221.1Scherry  .comment       0 : { *(.comment) }
1231.1Scherry  /* DWARF debug sections.
1241.1Scherry     Symbols in the DWARF debugging sections are relative to the beginning
1251.1Scherry     of the section so we begin them at 0.  */
1261.1Scherry  /* DWARF 1 */
1271.1Scherry  .debug          0 : { *(.debug) }
1281.1Scherry  .line           0 : { *(.line) }
1291.1Scherry  /* GNU DWARF 1 extensions */
1301.1Scherry  .debug_srcinfo  0 : { *(.debug_srcinfo) }
1311.1Scherry  .debug_sfnames  0 : { *(.debug_sfnames) }
1321.1Scherry  /* DWARF 1.1 and DWARF 2 */
1331.1Scherry  .debug_aranges  0 : { *(.debug_aranges) }
1341.1Scherry  .debug_pubnames 0 : { *(.debug_pubnames) }
1351.1Scherry  /* DWARF 2 */
1361.1Scherry  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
1371.1Scherry  .debug_abbrev   0 : { *(.debug_abbrev) }
1381.1Scherry  .debug_line     0 : { *(.debug_line) }
1391.1Scherry  .debug_frame    0 : { *(.debug_frame) }
1401.1Scherry  .debug_str      0 : { *(.debug_str) }
1411.1Scherry  .debug_loc      0 : { *(.debug_loc) }
1421.1Scherry  .debug_macinfo  0 : { *(.debug_macinfo) }
1431.1Scherry  /* SGI/MIPS DWARF 2 extensions */
1441.1Scherry  .debug_weaknames 0 : { *(.debug_weaknames) }
1451.1Scherry  .debug_funcnames 0 : { *(.debug_funcnames) }
1461.1Scherry  .debug_typenames 0 : { *(.debug_typenames) }
1471.1Scherry  .debug_varnames  0 : { *(.debug_varnames) }
1481.1Scherry}
149