Prevent ftrace from misaligning functions

This commit is contained in:
Justine Tunney 2023-06-06 06:00:31 -07:00
parent b8a6a989c0
commit b94b29d79c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 4 additions and 1 deletions

View file

@ -471,7 +471,7 @@ ifeq ($(ARCH), x86_64)
# jmp -7 # 2 bytes
# ...
#
CONFIG_CCFLAGS += -fpatchable-function-entry=11,9
CONFIG_CCFLAGS += -fpatchable-function-entry=18,16
endif
ifeq ($(ARCH), aarch64)
# this flag causes gcc to generate functions like this