Thread (9 messages) flat view 9 messages, 3 authors, 2016-02-16

[PATCH 2/2] ARM: mm: hide __start_rodata_section_aligned for non-debug builds

From: arnd@arndb.de (Arnd Bergmann)
Date: 2016-02-16 16:35:11
Also in: lkml

On Tuesday 16 February 2016 17:12:52 Ard Biesheuvel wrote:
quoted
+#ifdef CONFIG_DEBUG_RODATA
 /*
  * Without CONFIG_DEBUG_ALIGN_RODATA, __start_rodata_section_aligned will
  * be the first section-aligned location after __start_rodata. Otherwise,
  * it will be equal to __start_rodata.
  */
 __start_rodata_section_aligned = ALIGN(__start_rodata, 1 << SECTION_SHIFT);
+#endif
Does

PROVIDE(__start_rodata_section_aligned = xxx);

do the trick as well? If it does, it's a bit cleaner.
I would assume not, as the problem is that SECTION_SHIFT is a macro that
is not defined when the MMU is disabled.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help