forked from wolfSSL/wolfssl
linuxkm/linuxkm_wc_port.h: on kernel >=6.8, for CONFIG_FORTIFY_SOURCE, use 5-arg fortify_panic() override macro.
This commit is contained in:
@@ -137,8 +137,14 @@
|
|||||||
* fortify_panic().
|
* fortify_panic().
|
||||||
*/
|
*/
|
||||||
extern void __my_fortify_panic(const char *name) __noreturn __cold;
|
extern void __my_fortify_panic(const char *name) __noreturn __cold;
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0)
|
||||||
|
/* see linux 3d965b33e40d9 */
|
||||||
|
#define fortify_panic(func, write, avail, size, retfail) \
|
||||||
|
__my_fortify_panic(#func)
|
||||||
|
#else
|
||||||
#define fortify_panic __my_fortify_panic
|
#define fortify_panic __my_fortify_panic
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* the _FORTIFY_SOURCE macros and implementations for several string
|
/* the _FORTIFY_SOURCE macros and implementations for several string
|
||||||
* functions are incompatible with libwolfssl, so just reimplement with
|
* functions are incompatible with libwolfssl, so just reimplement with
|
||||||
|
Reference in New Issue
Block a user