Home | History | Annotate | Line # | Download | only in conf
kern.ldscript revision 1.1.4.3
      1  1.1.4.2       tls /* Default linker script, for normal executables */
      2  1.1.4.2       tls OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64",
      3  1.1.4.2       tls 	      "elf64-littleaarch64")
      4  1.1.4.2       tls OUTPUT_ARCH(aarch64)
      5  1.1.4.2       tls ENTRY(_start)
      6  1.1.4.2       tls SECTIONS
      7  1.1.4.2       tls {
      8  1.1.4.2       tls   /* Read-only sections, merged into text segment: */
      9  1.1.4.3  jdolecek   PROVIDE (__kernel_text = .);
     10  1.1.4.2       tls   .text           :
     11  1.1.4.2       tls   {
     12  1.1.4.2       tls     PROVIDE_HIDDEN (__eprol = .);
     13  1.1.4.2       tls     *(.text)
     14  1.1.4.2       tls     *(.text.unlikely .text.*_unlikely)
     15  1.1.4.2       tls     *(.text.exit .text.exit.*)
     16  1.1.4.2       tls     *(.text.startup .text.startup.*)
     17  1.1.4.2       tls     *(.text.hot .text.hot.*)
     18  1.1.4.2       tls     *(.stub .text.* .gnu.linkonce.t.*)
     19  1.1.4.2       tls     /* .gnu.warning sections are handled specially by elf32.em.  */
     20  1.1.4.3  jdolecek /*    . = ALIGN(0x800) */
     21  1.1.4.2       tls     *(.vectors)
     22  1.1.4.2       tls   } =0
     23  1.1.4.2       tls   .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
     24  1.1.4.2       tls   .rodata1        : { *(.rodata1) }
     25  1.1.4.2       tls   .eh_frame_hdr : { *(.eh_frame_hdr) }
     26  1.1.4.2       tls   .eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
     27  1.1.4.2       tls   .gcc_except_table   : ONLY_IF_RO { *(.gcc_except_table
     28  1.1.4.2       tls   .gcc_except_table.*) }
     29  1.1.4.2       tls   /* These sections are generated by the Sun/Oracle C++ compiler.  */
     30  1.1.4.2       tls   .exception_ranges   : ONLY_IF_RO { *(.exception_ranges
     31  1.1.4.2       tls   .exception_ranges*) }
     32  1.1.4.2       tls   PROVIDE (__etext = .);
     33  1.1.4.2       tls   PROVIDE (_etext = .);
     34  1.1.4.2       tls   PROVIDE (etext = .);
     35  1.1.4.2       tls   /* Adjust the address for the data segment.  We want to adjust up to
     36  1.1.4.2       tls      the same address within the page on the next page up.  */
     37  1.1.4.2       tls   . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
     38  1.1.4.2       tls   /* Exception handling  */
     39  1.1.4.2       tls   .eh_frame       : ONLY_IF_RW { KEEP (*(.eh_frame)) }
     40  1.1.4.2       tls   .gcc_except_table   : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
     41  1.1.4.2       tls   .exception_ranges   : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) }
     42  1.1.4.2       tls   .got            : { *(.got) *(.igot) }
     43  1.1.4.2       tls   . = DATA_SEGMENT_RELRO_END (24, .);
     44  1.1.4.2       tls   .got.plt        : { *(.got.plt)  *(.igot.plt) }
     45  1.1.4.2       tls   .data           :
     46  1.1.4.2       tls   {
     47  1.1.4.2       tls     PROVIDE (__data_start = .);
     48  1.1.4.2       tls     *(.data .data.* .gnu.linkonce.d.*)
     49  1.1.4.2       tls     SORT(CONSTRUCTORS)
     50  1.1.4.2       tls   }
     51  1.1.4.2       tls   .data1          : { *(.data1) }
     52  1.1.4.2       tls   _edata = .; PROVIDE (edata = .);
     53  1.1.4.2       tls   . = .;
     54  1.1.4.2       tls   __bss_start = .;
     55  1.1.4.2       tls   __bss_start__ = .;
     56  1.1.4.2       tls   .bss            :
     57  1.1.4.2       tls   {
     58  1.1.4.3  jdolecek     *(.dynbss)
     59  1.1.4.3  jdolecek     *(.bss .bss.* .gnu.linkonce.b.*)
     60  1.1.4.3  jdolecek     *(COMMON)
     61  1.1.4.3  jdolecek     /* Align here to ensure that the .bss section occupies space up to
     62  1.1.4.3  jdolecek        _end.  Align after .bss to ensure correct alignment even if the
     63  1.1.4.3  jdolecek        .bss section disappears because there are no input sections.
     64  1.1.4.3  jdolecek        FIXME: Why do we need it? When there is no .bss section, we don't
     65  1.1.4.3  jdolecek        pad the .data section.  */
     66  1.1.4.3  jdolecek     . = ALIGN(. != 0 ? 32 / 8 : 1);
     67  1.1.4.2       tls   }
     68  1.1.4.2       tls   _bss_end__ = . ; __bss_end__ = . ;
     69  1.1.4.2       tls   . = ALIGN(32 / 8);
     70  1.1.4.2       tls   . = ALIGN(32 / 8);
     71  1.1.4.2       tls   __end__ = . ;
     72  1.1.4.2       tls   _end = .; PROVIDE (end = .);
     73  1.1.4.2       tls   . = DATA_SEGMENT_END (.);
     74  1.1.4.2       tls   .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
     75  1.1.4.2       tls   .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
     76  1.1.4.2       tls }
     77