Commit a25a57f1 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] use local RODATA setup for m68knommu linker script

This patch removes the use of the common RODATA define in the m68knommu
architecture. It cannot be used the same way for the m68knommu target.
For starters just inserting it here is syntactically wrong. All the read
only parts are grouped into a single "text" segment, and this is the root
cause of the problem. So for the m68knommu arch it makes sense to not
use the generic RODATA setup, but to list them locally.
parent 75de290e
/* /*
* vmlinux.lds.S -- master linker script for m68knommu arch * vmlinux.lds.S -- master linker script for m68knommu arch
* *
* (C) Copyright 2002, Greg Ungerer <gerg@snapgear.com> * (C) Copyright 2002-2003, Greg Ungerer <gerg@snapgear.com>
* *
* This ends up looking compilcated, because of the number of * This ends up looking compilcated, because of the number of
* address variations for ram and rom/flash layouts. The real * address variations for ram and rom/flash layouts. The real
...@@ -226,7 +226,32 @@ SECTIONS { ...@@ -226,7 +226,32 @@ SECTIONS {
*(__ex_table) *(__ex_table)
__stop___ex_table = .; __stop___ex_table = .;
RODATA *(.rodata) *(.rodata.*)
*(__vermagic) /* Kernel version magic */
*(.rodata1)
/* Kernel symbol table: Normal symbols */
__start___ksymtab = .;
*(__ksymtab)
__stop___ksymtab = .;
/* Kernel symbol table: GPL-only symbols */
__start___ksymtab_gpl = .;
*(__ksymtab_gpl)
__stop___ksymtab_gpl = .;
/* Kernel symbol table: Normal symbols */
__start___kcrctab = .;
*(__kcrctab)
__stop___kcrctab = .;
/* Kernel symbol table: GPL-only symbols */
__start___kcrctab_gpl = .;
*(__kcrctab_gpl)
__stop___kcrctab_gpl = .;
/* Kernel symbol table: strings */
*(__ksymtab_strings)
. = ALIGN(4) ; . = ALIGN(4) ;
_etext = . ; _etext = . ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment