aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2012-12-14 10:46:17 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-12-16 05:04:24 -0500
commitdad5451a322bb682704f3ab13a558508a83e0b93 (patch)
treea24ce7fba9dd29cca649af3fbc43fac16f1f8606 /arch
parentb8b499c86be58cb309964fcab5b62ac4a240a878 (diff)
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: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Pawel Moll <pawel.moll@arm.com> Tested-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/vmlinux.lds.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index b9f38e388b43..11c1785bf63e 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -140,6 +140,8 @@ SECTIONS
140 } 140 }
141#endif 141#endif
142 142
143 NOTES
144
143 _etext = .; /* End of text and rodata section */ 145 _etext = .; /* End of text and rodata section */
144 146
145#ifndef CONFIG_XIP_KERNEL 147#ifndef CONFIG_XIP_KERNEL
@@ -295,8 +297,6 @@ SECTIONS
295 } 297 }
296#endif 298#endif
297 299
298 NOTES
299
300 BSS_SECTION(0, 0, 0) 300 BSS_SECTION(0, 0, 0)
301 _end = .; 301 _end = .;
302 302