summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/compat/compat-asm.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/compat/compat-asm.h b/src/compat/compat-asm.h
index 4e427e5..7067afd 100644
--- a/src/compat/compat-asm.h
+++ b/src/compat/compat-asm.h
@@ -10,6 +10,17 @@
#include <linux/kconfig.h>
#include <linux/version.h>
+#ifdef RHEL_MAJOR
+#if RHEL_MAJOR == 7
+#define ISRHEL7
+#elif RHEL_MAJOR == 8
+#define ISRHEL8
+#if RHEL_MINOR == 4
+#define ISCENTOS8S
+#endif
+#endif
+#endif
+
/* PaX compatibility */
#if defined(RAP_PLUGIN)
#undef ENTRY
@@ -40,7 +51,7 @@
#undef pull
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISCENTOS8S)
#define SYM_FUNC_START ENTRY
#define SYM_FUNC_END ENDPROC
#endif