Skip to content

Commit

Permalink
sh: include empty_zero_page in text
Browse files Browse the repository at this point in the history
Include empty_zero_page in _text. This fixes a problem
introduced by c3e2586
which results in broken boot on R2D-Plus.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 11, 2009
1 parent 7bce6c2 commit 53c0054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/sh/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ SECTIONS
. = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET;
#endif

_text = .; /* Text and read-only data */

.empty_zero_page : AT(ADDR(.empty_zero_page) - LOAD_OFFSET) {
*(.empty_zero_page)
} = 0

.text : AT(ADDR(.text) - LOAD_OFFSET) {
_text = .; /* Text and read-only data */
HEAD_TEXT
TEXT_TEXT

Expand Down

0 comments on commit 53c0054

Please sign in to comment.