mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 13:42:09 +00:00
17 lines
472 B
C
17 lines
472 B
C
|
#include <stdio.h>
|
||
|
|
||
|
void test_func() {
|
||
|
printf("this is before\n");
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* This test case ensures that deep inspection for rela entries
|
||
|
* that reference strings is taking place. The text and rela sections
|
||
|
* for test_func() are the same between the original and patched
|
||
|
* versions. However, the tool should detect that the string referenced
|
||
|
* by the printf has changed.
|
||
|
*
|
||
|
* Verification points: test_func bundle and the rodata.str1.8 section
|
||
|
* are included.
|
||
|
*/
|