~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/um/kernel/uml.lds.S

Version: ~ [ linux-5.14-rc3 ] ~ [ linux-5.13.5 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.53 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.135 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.198 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.240 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.276 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.276 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #include <asm/vmlinux.lds.h>
  3 #include <asm/page.h>
  4 
  5 OUTPUT_FORMAT(ELF_FORMAT)
  6 OUTPUT_ARCH(ELF_ARCH)
  7 ENTRY(_start)
  8 jiffies = jiffies_64;
  9 
 10 SECTIONS
 11 {
 12   /* This must contain the right address - not quite the default ELF one.*/
 13   PROVIDE (__executable_start = START);
 14   /* Static binaries stick stuff here, like the sigreturn trampoline,
 15    * invisibly to objdump.  So, just make __binary_start equal to the very
 16    * beginning of the executable, and if there are unmapped pages after this,
 17    * they are forever unusable.
 18    */
 19   __binary_start = START;
 20 
 21   . = START + SIZEOF_HEADERS;
 22   . = ALIGN(PAGE_SIZE);
 23 
 24   _text = .;
 25   INIT_TEXT_SECTION(0)
 26 
 27   .text      :
 28   {
 29     _stext = .;
 30     TEXT_TEXT
 31     SCHED_TEXT
 32     CPUIDLE_TEXT
 33     LOCK_TEXT
 34     IRQENTRY_TEXT
 35     SOFTIRQENTRY_TEXT
 36     *(.fixup)
 37     /* .gnu.warning sections are handled specially by elf32.em.  */
 38     *(.gnu.warning)
 39     *(.gnu.linkonce.t*)
 40   }
 41 
 42   . = ALIGN(PAGE_SIZE);
 43   .syscall_stub : {
 44         __syscall_stub_start = .;
 45         *(.__syscall_stub*)
 46         __syscall_stub_end = .;
 47   }
 48 
 49   /*
 50    * These are needed even in a static link, even if they wind up being empty.
 51    * Newer glibc needs these __rel{,a}_iplt_{start,end} symbols.
 52    */
 53   .rel.plt : {
 54         *(.rel.plt)
 55         PROVIDE_HIDDEN(__rel_iplt_start = .);
 56         *(.rel.iplt)
 57         PROVIDE_HIDDEN(__rel_iplt_end = .);
 58   }
 59   .rela.plt : {
 60         *(.rela.plt)
 61         PROVIDE_HIDDEN(__rela_iplt_start = .);
 62         *(.rela.iplt)
 63         PROVIDE_HIDDEN(__rela_iplt_end = .);
 64   }
 65 
 66   #include <asm/common.lds.S>
 67 
 68   __init_begin = .;
 69   init.data : { INIT_DATA }
 70   __init_end = .;
 71 
 72   .data    :
 73   {
 74     INIT_TASK_DATA(KERNEL_STACK_SIZE)
 75     . = ALIGN(KERNEL_STACK_SIZE);
 76     *(.data..init_irqstack)
 77     DATA_DATA
 78     *(.gnu.linkonce.d*)
 79     CONSTRUCTORS
 80   }
 81   .data1   : { *(.data1) }
 82   .ctors         :
 83   {
 84     *(.ctors)
 85   }
 86   .dtors         :
 87   {
 88     *(.dtors)
 89   }
 90 
 91   .got           : { *(.got.plt) *(.got) }
 92   .dynamic       : { *(.dynamic) }
 93   .tdata          : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
 94   .tbss           : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
 95   /* We want the small data sections together, so single-instruction offsets
 96      can access them all, and initialized data all before uninitialized, so
 97      we can shorten the on-disk segment size.  */
 98   .sdata     : { *(.sdata) }
 99   _edata  =  .;
100   PROVIDE (edata = .);
101   . = ALIGN(PAGE_SIZE);
102   __bss_start = .;
103   PROVIDE(_bss_start = .);
104   SBSS(0)
105   BSS(0)
106    __bss_stop = .;
107   _end = .;
108   PROVIDE (end = .);
109 
110   STABS_DEBUG
111 
112   DWARF_DEBUG
113 
114   DISCARDS
115 }

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp