aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-10-14 17:49:01 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-10-16 13:23:46 -0400
commit603bb99c8bca114fcd586271b19fa9fe65877b62 (patch)
tree07c91365dec91aa041debaffd951ad60da35834f /arch/mips
parentf5153ee0f5b3d14213bab1d6ccf2b44bfe9e322b (diff)
[MIPS] vmlinux.lds.S: Fix handling of .notes in final link.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/vmlinux.lds.S13
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index 03ad46e24563..33581387d662 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -5,6 +5,10 @@
5#define mips mips 5#define mips mips
6OUTPUT_ARCH(mips) 6OUTPUT_ARCH(mips)
7ENTRY(kernel_entry) 7ENTRY(kernel_entry)
8PHDRS {
9 text PT_LOAD FLAGS(7); /* RWX */
10 note PT_NOTE FLAGS(4); /* R__ */
11}
8jiffies = JIFFIES; 12jiffies = JIFFIES;
9 13
10SECTIONS 14SECTIONS
@@ -33,7 +37,7 @@ SECTIONS
33 LOCK_TEXT 37 LOCK_TEXT
34 *(.fixup) 38 *(.fixup)
35 *(.gnu.warning) 39 *(.gnu.warning)
36 } =0 40 } :text = 0
37 _etext = .; /* End of text section */ 41 _etext = .; /* End of text section */
38 42
39 /* Exception table */ 43 /* Exception table */
@@ -50,6 +54,10 @@ SECTIONS
50 *(__dbe_table) 54 *(__dbe_table)
51 __stop___dbe_table = .; 55 __stop___dbe_table = .;
52 } 56 }
57
58 NOTES :text :note
59 .dummy : { *(.dummy) } :text
60
53 RODATA 61 RODATA
54 62
55 /* writeable */ 63 /* writeable */
@@ -200,7 +208,4 @@ SECTIONS
200 *(.gptab.bss) 208 *(.gptab.bss)
201 *(.gptab.sbss) 209 *(.gptab.sbss)
202 } 210 }
203 .note : {
204 *(.note)
205 }
206} 211}