1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <asm/vmlinux.lds.h>
5 OUTPUT_FORMAT(ELF_FORMAT)
18 /* This must contain the right address - not quite the default ELF one.*/
19 PROVIDE (__executable_start = START);
20 /* Static binaries stick stuff here, like the sigreturn trampoline,
21 * invisibly to objdump. So, just make __binary_start equal to the very
22 * beginning of the executable, and if there are unmapped pages after this,
23 * they are forever unusable.
25 __binary_start = START;
27 . = START + SIZEOF_HEADERS;
42 /* .gnu.warning sections are handled specially by elf32.em. */
49 __syscall_stub_start = .;
51 __syscall_stub_end = .;
55 * These are needed even in a static link, even if they wind up being empty.
56 * Newer glibc needs these __rel{,a}_iplt_{start,end} symbols.
60 PROVIDE_HIDDEN(__rel_iplt_start = .);
62 PROVIDE_HIDDEN(__rel_iplt_end = .);
66 PROVIDE_HIDDEN(__rela_iplt_start = .);
68 PROVIDE_HIDDEN(__rela_iplt_end = .);
71 #include <asm/common.lds.S>
74 init.data : { INIT_DATA }
79 INIT_TASK_DATA(KERNEL_STACK_SIZE)
80 . = ALIGN(KERNEL_STACK_SIZE);
81 *(.data..init_irqstack)
86 .data1 : { *(.data1) }
96 .got : { *(.got.plt) *(.got) }
97 .eh_frame : { KEEP (*(.eh_frame)) }
98 .dynamic : { *(.dynamic) }
99 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
100 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
101 /* We want the small data sections together, so single-instruction offsets
102 can access them all, and initialized data all before uninitialized, so
103 we can shorten the on-disk segment size. */
104 .sdata : { *(.sdata) }
107 . = ALIGN(PAGE_SIZE);
109 PROVIDE(_bss_start = .);