1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <asm-generic/vmlinux.lds.h>
4 OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT)
9 #include <asm/page_types.h>
12 OUTPUT_ARCH(i386:x86-64)
21 /* Be careful parts of head_64.S assume startup_32 is at
30 .rodata..compressed : {
31 *(.rodata..compressed)
41 *(.rodata) /* read-only data */
52 . = ALIGN(L1_CACHE_BYTES);
58 . = ALIGN(8); /* For convenience during zeroing */
69 . = ALIGN(PAGE_SIZE); /* keep ZO size page aligned */
78 *(.dynamic) *(.dynsym) *(.dynstr) *(.dynbss)
86 ASSERT(SIZEOF(.got.plt) == 0 ||
88 SIZEOF(.got.plt) == 0x18,
90 SIZEOF(.got.plt) == 0xc,
92 "Unexpected GOT/PLT entries detected!")
95 * Sections that should stay zero sized, which is safer to
96 * explicitly check instead of blindly discarding.
101 ASSERT(SIZEOF(.got) == 0, "Unexpected GOT entries detected!")
106 ASSERT(SIZEOF(.plt) == 0, "Unexpected run-time procedure linkages detected!")
111 ASSERT(SIZEOF(.rel.dyn) == 0, "Unexpected run-time relocations (.rel) detected!")
114 *(.rela.*) *(.rela_*)
116 ASSERT(SIZEOF(.rela.dyn) == 0, "Unexpected run-time relocations (.rela) detected!")