[PATCH 01/30] asm-generic: add .data.rel.ro sections to __ro_after_init
From: arnd@arndb.de (Arnd Bergmann)
Date: 2017-08-14 14:26:32
From: arnd@arndb.de (Arnd Bergmann)
Date: 2017-08-14 14:26:32
On Mon, Aug 14, 2017 at 2:53 PM, Ard Biesheuvel [off-list ref] wrote:
When running in PIC mode, the compiler will emit const structures containing runtime relocatable quantities into .data.rel.ro.* sections, so that the linker can be smart about placing them together in a segment that is read-write initially, and is remapped read-only afterwards. This is exactly what __ro_after_init aims to provide, so move these sections together. Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Ard Biesheuvel <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de>