2 * Copyright (C) 2012 Regents of the University of California
3 * Copyright (C) 2017 SiFive
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation, version 2.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #define LOAD_OFFSET PAGE_OFFSET
16 #include <asm/vmlinux.lds.h>
18 #include <asm/cache.h>
19 #include <asm/thread_info.h>
28 /* Beginning of code and text segment */
33 INIT_TEXT_SECTION(PAGE_SIZE)
35 /* we have to discard exit text and such at runtime, not link time */
44 PERCPU_SECTION(L1_CACHE_BYTES)
61 /* Start of data section */
63 RO_DATA_SECTION(L1_CACHE_BYTES)
68 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
70 __global_pointer$ = . + 0x800;
72 /* End of data section */