Home | History | Annotate | Line # | Download | only in conf
kern64.ldscript revision 1.3
      1 /* Default linker script, for normal executables */
      2 OUTPUT_FORMAT("elf64-powerpc", "elf64-powerpc",
      3 	      "elf64-powerpc")
      4 OUTPUT_ARCH(powerpc:common64)
      5 ENTRY(_start)
      6 SECTIONS
      7 {
      8   /*  Read-only sections, merged into text segment.  Assumes the
      9       kernel Makefile sets the start address via -Ttext.  */
     10   .text      :
     11   {
     12     PROVIDE_HIDDEN (__eprol = .);
     13     *(.text)
     14     *(.text.unlikely .text.*_unlikely)
     15     *(.text.exit .text.exit.*)
     16     *(.text.startup .text.startup.*)
     17     *(.text.hot .text.hot.*)
     18     *(.text.* .gnu.linkonce.t.*)
     19     __stub_start = .;
     20     *(.stub)
     21     __stub_end = .;
     22     __stub_pmap_start = .;
     23     *(.stub.pmap)
     24     __stub_pmap_end = .;
     25     /* .gnu.warning sections are handled specially by elf32.em.  */
     26     *(.gnu.warning)
     27     *(.glink)
     28   } =0x60000000
     29   _etext = .;
     30   PROVIDE (__etext = .);
     31   PROVIDE (_etext = .);
     32   PROVIDE (etext = .);
     33   .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
     34   .rodata1        : { *(.rodata1) }
     35   .sdata2         :
     36   {
     37     *(.sdata2 .sdata2.* .gnu.linkonce.s2.*)
     38   }
     39   .sbss2          : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
     40   .jcr            : { KEEP (*(.jcr)) }
     41   . = DATA_SEGMENT_RELRO_END (0, .);
     42   .data           :
     43   {
     44     _fdata = .;
     45     *(.data .data.* .gnu.linkonce.d.*)
     46     SORT(CONSTRUCTORS)
     47   }
     48   .data1          : { *(.data1) }
     49   .toc1		  : ALIGN(8) { *(.toc1) }
     50   .opd		  : ALIGN(8) { KEEP (*(.opd)) }
     51   .branch_lt	  : ALIGN(8) { *(.branch_lt) }
     52   .got		: ALIGN(8) { *(.got .toc) }
     53   /* We want the small data sections together, so single-instruction offsets
     54      can access them all, and initialized data all before uninitialized, so
     55      we can shorten the on-disk segment size.  */
     56   . = ALIGN(64);	/* COHERENCY UNIT */
     57   .data.cacheline_aligned	: { *(.data.cacheline_aligned) }
     58   . = ALIGN(64);	/* COHERENCY UNIT */
     59   .data.read_mostly		: { *(.data.read_mostly) }
     60   . = ALIGN(64);	/* COHERENCY UNIT */
     61   .sdata          :
     62   {
     63     *(.sdata .sdata.* .gnu.linkonce.s.*)
     64   }
     65   _edata = .; PROVIDE (edata = .);
     66   __bss_start = .;
     67   .tocbss	  : ALIGN(8) { *(.tocbss)}
     68   .sbss           :
     69   {
     70     *(.dynsbss)
     71     *(.sbss .sbss.* .gnu.linkonce.sb.*)
     72     *(.scommon)
     73   }
     74   .plt            : { *(.plt) }
     75   .iplt           : { *(.iplt) }
     76   .bss            :
     77   {
     78     *(.dynbss)
     79     *(.bss .bss.* .gnu.linkonce.b.*)
     80     *(COMMON)
     81     /* Align here to ensure that the .bss section occupies space up to
     82        _end.  Align after .bss to ensure correct alignment even if the
     83        .bss section disappears because there are no input sections.
     84        FIXME: Why do we need it? When there is no .bss section, we don't
     85        pad the .data section.  */
     86     . = ALIGN(. != 0 ? 64 / 8 : 1);
     87   }
     88   . = ALIGN(64 / 8);
     89   . = ALIGN(64 / 8);
     90   _end = .; PROVIDE (end = .);
     91   . = DATA_SEGMENT_END (.);
     92   /* Stabs debugging sections.  */
     93   .stab          0 : { *(.stab) }
     94   .stabstr       0 : { *(.stabstr) }
     95   .stab.excl     0 : { *(.stab.excl) }
     96   .stab.exclstr  0 : { *(.stab.exclstr) }
     97   .stab.index    0 : { *(.stab.index) }
     98   .stab.indexstr 0 : { *(.stab.indexstr) }
     99   .comment       0 : { *(.comment) }
    100   /* DWARF debug sections.
    101      Symbols in the DWARF debugging sections are relative to the beginning
    102      of the section so we begin them at 0.  */
    103   /* DWARF 1 */
    104   .debug          0 : { *(.debug) }
    105   .line           0 : { *(.line) }
    106   /* GNU DWARF 1 extensions */
    107   .debug_srcinfo  0 : { *(.debug_srcinfo) }
    108   .debug_sfnames  0 : { *(.debug_sfnames) }
    109   /* DWARF 1.1 and DWARF 2 */
    110   .debug_aranges  0 : { *(.debug_aranges) }
    111   .debug_pubnames 0 : { *(.debug_pubnames) }
    112   /* DWARF 2 */
    113   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
    114   .debug_abbrev   0 : { *(.debug_abbrev) }
    115   .debug_line     0 : { *(.debug_line) }
    116   .debug_frame    0 : { *(.debug_frame) }
    117   .debug_str      0 : { *(.debug_str) }
    118   .debug_loc      0 : { *(.debug_loc) }
    119   .debug_macinfo  0 : { *(.debug_macinfo) }
    120   /* SGI/MIPS DWARF 2 extensions */
    121   .debug_weaknames 0 : { *(.debug_weaknames) }
    122   .debug_funcnames 0 : { *(.debug_funcnames) }
    123   .debug_typenames 0 : { *(.debug_typenames) }
    124   .debug_varnames  0 : { *(.debug_varnames) }
    125   /* DWARF 3 */
    126   .debug_pubtypes 0 : { *(.debug_pubtypes) }
    127   .debug_ranges   0 : { *(.debug_ranges) }
    128   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
    129   /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
    130 }
    131