1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2012 Regents of the University of California
4 * Copyright (C) 2017 SiFive
7 #define LOAD_OFFSET PAGE_OFFSET
8 #include <asm/vmlinux.lds.h>
10 #include <asm/cache.h>
11 #include <asm/thread_info.h>
12 #include <asm/set_memory.h>
14 #include <linux/sizes.h>
22 /* Beginning of code and text segment */
30 INIT_TEXT_SECTION(PAGE_SIZE)
33 __soc_early_init_table : {
34 __soc_early_init_table_start = .;
35 KEEP(*(__soc_early_init_table))
36 __soc_early_init_table_end = .;
38 __soc_builtin_dtb_table : {
39 __soc_builtin_dtb_table_start = .;
40 KEEP(*(__soc_builtin_dtb_table))
41 __soc_builtin_dtb_table_end = .;
43 /* we have to discard exit text and such at runtime, not link time */
52 PERCPU_SECTION(L1_CACHE_BYTES)
55 . = ALIGN(SECTION_ALIGN);
70 /* Start of data section */
72 RO_DATA(SECTION_ALIGN)
79 . = ALIGN(SECTION_ALIGN);
82 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
84 __global_pointer$ = . + 0x800;
86 /* End of data section */
90 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0)