[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 5/7] xen/arm32: head: Move earlyprintk messages to .rodata.str
Hi Jan, On 15/08/2022 07:43, Jan Beulich wrote: On 12.08.2022 21:24, Julien Grall wrote:From: Julien Grall <jgrall@xxxxxxxxxx> At the moment, the strings are in text right after each use because the instruction 'adr' has specific requirement on the location and the compiler will forbid cross section label. The macro 'adr_l' was recently reworked so the caller doesn't need to know whether the MMU is on. This makes it easier to use where instructions can be run in both context. This also means that the strings don't need to be part of .text anymore. So move them to .rodata.str.Wouldn't they better live somewhere in .init* ? PRINT() is also used in path for secondary bring-up. So this could be used after .init (even though today CPU hotplug doesn't work on Arm). Furthermore, PRINT() is only used when earlyprintk is enabled. This should only be used in a development environment (gated by CONFIG_DEBUG). So I think it is better to keep all the strings in .rodata.str rather than trying to distinguish whether the caller will happen only during init on boot. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |