mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
lkdtm: Fix targets for objcopy usage
The targets for lkdtm's objcopy were missing which caused them to always be rebuilt. This corrects the problem. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
300108740b
commit
e50bd2354c
1 changed files with 2 additions and 1 deletions
|
@ -69,5 +69,6 @@ OBJCOPYFLAGS :=
|
|||
OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \
|
||||
--set-section-flags .text=alloc,readonly \
|
||||
--rename-section .text=.rodata
|
||||
$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o
|
||||
targets += lkdtm_rodata.o lkdtm_rodata_objcopy.o
|
||||
$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o FORCE
|
||||
$(call if_changed,objcopy)
|
||||
|
|
Loading…
Reference in a new issue