mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ANDROID: drivers/misc/lkdtm: disable LTO for rodata.o
Disable LTO for rodata.o to allow objcopy to be used to manipulate sections. Bug: 145210207 Change-Id: I387a37fd2dd13a877e9e66e9f99c9c4b10b0e963 Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
parent
a4fa5799c0
commit
95788bcf46
|
|
@ -13,6 +13,7 @@ lkdtm-$(CONFIG_LKDTM) += cfi.o
|
|||
|
||||
KASAN_SANITIZE_stackleak.o := n
|
||||
KCOV_INSTRUMENT_rodata.o := n
|
||||
CFLAGS_REMOVE_rodata.o += $(CC_FLAGS_LTO)
|
||||
|
||||
OBJCOPYFLAGS :=
|
||||
OBJCOPYFLAGS_rodata_objcopy.o := \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user