Skip to content

Commit

Permalink
Add support for RHEL 8.8
Browse files Browse the repository at this point in the history
A new 'text_poke_loc' was backported to RHEL 8.8+. This commit brings
the support for such kernels as well as addresses the #295 problem.
  • Loading branch information
Adam-pi3 authored and solardiz committed Nov 8, 2023
1 parent ea1454c commit 310e85d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) || \
defined(P_LKRG_KERNEL_RHEL_VAR_LEN_JUMP_LABEL)
#if !P_LKRG_KERNEL_HAS_VAR_LEN_JUMP_LABEL || \
(defined(P_LKRG_KERNEL_RHEL_VAR_LEN_JUMP_LABEL) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9,1))
(defined(P_LKRG_KERNEL_RHEL_VAR_LEN_JUMP_LABEL) && \
RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9,1) && \
RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8,8))
typedef struct _p_text_poke_loc {
s32 rel_addr; /* addr := _stext + rel_addr */
s32 rel32;
Expand Down

0 comments on commit 310e85d

Please sign in to comment.