1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <asm/vmlinux.lds.h>
5 OUTPUT_FORMAT(ELF_FORMAT)
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.
19 __binary_start = START;
21 . = START + SIZEOF_HEADERS;
35 /* .gnu.warning sections are handled specially by elf32.em. */
42 __syscall_stub_start = .;
44 __syscall_stub_end = .;
48 * These are needed even in a static link, even if they wind up being empty.
49 * Newer glibc needs these __rel{,a}_iplt_{start,end} symbols.
53 PROVIDE_HIDDEN(__rel_iplt_start = .);
55 PROVIDE_HIDDEN(__rel_iplt_end = .);
59 PROVIDE_HIDDEN(__rela_iplt_start = .);
61 PROVIDE_HIDDEN(__rela_iplt_end = .);
64 #include <asm/common.lds.S>
67 init.data : { INIT_DATA }
72 INIT_TASK_DATA(KERNEL_STACK_SIZE)
73 . = ALIGN(KERNEL_STACK_SIZE);
74 *(.data..init_irqstack)
79 .data1 : { *(.data1) }
89 .got : { *(.got.plt) *(.got) }
90 .dynamic : { *(.dynamic) }
91 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
92 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
93 /* We want the small data sections together, so single-instruction offsets
94 can access them all, and initialized data all before uninitialized, so
95 we can shorten the on-disk segment size. */
96 .sdata : { *(.sdata) }
101 PROVIDE(_bss_start = .);