xref: /linux/drivers/misc/lkdtm/rodata.c (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1039a1c42SKees Cook // SPDX-License-Identifier: GPL-2.0
2039a1c42SKees Cook /*
3039a1c42SKees Cook  * This includes functions that are meant to live entirely in .rodata
4039a1c42SKees Cook  * (via objcopy tricks), to validate the non-executability of .rodata.
5039a1c42SKees Cook  */
6039a1c42SKees Cook #include "lkdtm.h"
7039a1c42SKees Cook 
lkdtm_rodata_do_nothing(void)8*3f618ab3SMark Rutland void noinstr lkdtm_rodata_do_nothing(void)
9039a1c42SKees Cook {
10039a1c42SKees Cook 	/* Does nothing. We just want an architecture agnostic "return". */
11039a1c42SKees Cook }
12