提交 dad5451a 编写于 作者: P Pawel Moll 提交者: Russell King

ARM: 7605/1: vmlinux.lds: Move .notes section next to the rodata

The .notes, being read-only data by nature, were placed between
read-write .data and .bss. This was harmful in case of the XIP
kernel, as being placed in the RAM range, most likely far
from the ROM address, was inflating the XIP images.

Moving the .notes at the end of the read-only section
(consisting of .text, .rodata and unwind info) fixes the problem.
Reported-by: NMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: NPawel Moll <pawel.moll@arm.com>
Tested-by: NMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 b8b499c8
...@@ -140,6 +140,8 @@ SECTIONS ...@@ -140,6 +140,8 @@ SECTIONS
} }
#endif #endif
NOTES
_etext = .; /* End of text and rodata section */ _etext = .; /* End of text and rodata section */
#ifndef CONFIG_XIP_KERNEL #ifndef CONFIG_XIP_KERNEL
...@@ -295,8 +297,6 @@ SECTIONS ...@@ -295,8 +297,6 @@ SECTIONS
} }
#endif #endif
NOTES
BSS_SECTION(0, 0, 0) BSS_SECTION(0, 0, 0)
_end = .; _end = .;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册