Re: [PATCH 1/1] drivers: constify vtables

2018-10-17 Thread Denis Kenzior
Hi Jonas, On 10/17/2018 08:36 AM, Jonas Bonn wrote: The driver vtables are read-only structures. This patch declares them as 'const' allowing the compiler to (optionally) put them in the RELRO section. RELRO pages may be marked as read-only by the linker after the relocations have been done en

[PATCH 1/1] drivers: constify vtables

2018-10-17 Thread Jonas Bonn
The driver vtables are read-only structures. This patch declares them as 'const' allowing the compiler to (optionally) put them in the RELRO section. RELRO pages may be marked as read-only by the linker after the relocations have been done ensuring that they aren't inadvertently or maliciously al