6d2e91a662
When building under W=1, the lack of lkdtm.h in lkdtm_usercopy.c and lkdtm_rodata.c was discovered. This fixes the issue and consolidates the common header and the pr_fmt macro for simplicity and regularity across each test source file. Signed-off-by: Kees Cook <keescook@chromium.org>
11 lines
276 B
C
11 lines
276 B
C
/*
|
|
* This includes functions that are meant to live entirely in .rodata
|
|
* (via objcopy tricks), to validate the non-executability of .rodata.
|
|
*/
|
|
#include "lkdtm.h"
|
|
|
|
void lkdtm_rodata_do_nothing(void)
|
|
{
|
|
/* Does nothing. We just want an architecture agnostic "return". */
|
|
}
|