@@ -84,18 +84,9 @@ SECTIONS
_sdata = .; /* Start of data section */
RO_DATA(4096)
- /* writeable */
- .data : { /* Data */
- . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
-
- INIT_TASK_DATA(THREAD_SIZE)
- NOSAVE_DATA
- CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
- READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
- DATA_DATA
- CONSTRUCTORS
- }
- BUG_TABLE
+ . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
+ RW_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT, PAGE_SIZE, THREAD_SIZE)
+
_gp = . + 0x8000;
.lit8 : {
*(.lit8)
Use the common RW_DATA rule for the linker script in an effort to regularize the linker script. Signed-off-by: Youling Tang <tangyouling@loongson.cn> --- arch/mips/kernel/vmlinux.lds.S | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)