Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Kees Cook | 9a49a52 | 2016-02-22 14:09:29 -0800 | [diff] [blame] | 2 | /* |
| 3 | * This includes functions that are meant to live entirely in .rodata |
| 4 | * (via objcopy tricks), to validate the non-executability of .rodata. |
| 5 | */ |
Kees Cook | 6d2e91a | 2016-07-15 16:04:39 -0700 | [diff] [blame] | 6 | #include "lkdtm.h" |
Kees Cook | 9a49a52 | 2016-02-22 14:09:29 -0800 | [diff] [blame] | 7 | |
Michael Ellerman | c012268 | 2016-08-05 14:25:53 -0700 | [diff] [blame] | 8 | void notrace lkdtm_rodata_do_nothing(void) |
Kees Cook | 9a49a52 | 2016-02-22 14:09:29 -0800 | [diff] [blame] | 9 | { |
| 10 | /* Does nothing. We just want an architecture agnostic "return". */ |
| 11 | } |