summaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/vmlinux-std.lds
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2007-08-22 14:01:33 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-22 19:52:45 -0700
commitfe6d9daf567310aa4d7cfc07fc48fe35296ecf7b (patch)
tree181b93efac5d35681bf1a57a7ca4b3b378103ecd /arch/m68k/kernel/vmlinux-std.lds
parenta5f442b2a90679f0b3bb562c01d0042d44ffd9fe (diff)
downloadop-kernel-dev-fe6d9daf567310aa4d7cfc07fc48fe35296ecf7b.zip
op-kernel-dev-fe6d9daf567310aa4d7cfc07fc48fe35296ecf7b.tar.gz
m68k: Dont include RODATA into text segment
Don't include RODATA into text segment as it includes the kallsyms data and can cause spurious link failures (layout differences can change the number of symbols in kallsyms, i.e. when a symbol is equal to _etext it's not included). Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68k/kernel/vmlinux-std.lds')
-rw-r--r--arch/m68k/kernel/vmlinux-std.lds4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/kernel/vmlinux-std.lds b/arch/m68k/kernel/vmlinux-std.lds
index c422457..59fe285 100644
--- a/arch/m68k/kernel/vmlinux-std.lds
+++ b/arch/m68k/kernel/vmlinux-std.lds
@@ -19,6 +19,8 @@ SECTIONS
*(.gnu.warning)
} :text = 0x4e75
+ _etext = .; /* End of text section */
+
. = ALIGN(16); /* Exception table */
__start___ex_table = .;
__ex_table : { *(__ex_table) }
@@ -26,8 +28,6 @@ SECTIONS
RODATA
- _etext = .; /* End of text section */
-
.data : { /* Data */
DATA_DATA
CONSTRUCTORS
OpenPOWER on IntegriCloud