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;
37 /* .gnu.warning sections are handled specially by elf32.em. */
44 __syscall_stub_start = .;
46 __syscall_stub_end = .;
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.
55 PROVIDE_HIDDEN(__rel_iplt_start = .);
57 PROVIDE_HIDDEN(__rel_iplt_end = .);
61 PROVIDE_HIDDEN(__rela_iplt_start = .);
63 PROVIDE_HIDDEN(__rela_iplt_end = .);
66 #include <asm/common.lds.S>
69 init.data : { INIT_DATA }
74 INIT_TASK_DATA(KERNEL_STACK_SIZE)
75 . = ALIGN(KERNEL_STACK_SIZE);
76 *(.data..init_irqstack)
81 .data1 : { *(.data1) }
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) }
101 . = ALIGN(PAGE_SIZE);
103 PROVIDE(_bss_start = .);