Commit 603bb99c authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] vmlinux.lds.S: Fix handling of .notes in final link.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f5153ee0
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
#define mips mips #define mips mips
OUTPUT_ARCH(mips) OUTPUT_ARCH(mips)
ENTRY(kernel_entry) ENTRY(kernel_entry)
PHDRS {
text PT_LOAD FLAGS(7); /* RWX */
note PT_NOTE FLAGS(4); /* R__ */
}
jiffies = JIFFIES; jiffies = JIFFIES;
SECTIONS SECTIONS
...@@ -33,7 +37,7 @@ SECTIONS ...@@ -33,7 +37,7 @@ SECTIONS
LOCK_TEXT LOCK_TEXT
*(.fixup) *(.fixup)
*(.gnu.warning) *(.gnu.warning)
} =0 } :text = 0
_etext = .; /* End of text section */ _etext = .; /* End of text section */
/* Exception table */ /* Exception table */
...@@ -50,6 +54,10 @@ SECTIONS ...@@ -50,6 +54,10 @@ SECTIONS
*(__dbe_table) *(__dbe_table)
__stop___dbe_table = .; __stop___dbe_table = .;
} }
NOTES :text :note
.dummy : { *(.dummy) } :text
RODATA RODATA
/* writeable */ /* writeable */
...@@ -200,7 +208,4 @@ SECTIONS ...@@ -200,7 +208,4 @@ SECTIONS
*(.gptab.bss) *(.gptab.bss)
*(.gptab.sbss) *(.gptab.sbss)
} }
.note : {
*(.note)
}
} }
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