Message ID | 20190812211750.61025-1-ndesaulniers@google.com |
---|---|
State | New |
Headers | show |
Series | [4.14] lkdtm: support llvm-objcopy | expand |
On Mon, Aug 12, 2019 at 02:17:50PM -0700, Nick Desaulniers wrote: > This backport is for 4.14. It should allow us to use llvm-objcopy for > RELR relocations on arm64 in Android. I don't object to this, but the odds that you are actually using the lkdtm driver on Android systems is pretty slim :) thanks, greg k-h
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index ad0e64fdba34..76f6a4f628b3 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -69,8 +69,7 @@ KCOV_INSTRUMENT_lkdtm_rodata.o := n OBJCOPYFLAGS := OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \ - --set-section-flags .text=alloc,readonly \ - --rename-section .text=.rodata + --rename-section .text=.rodata,alloc,readonly,load targets += lkdtm_rodata.o lkdtm_rodata_objcopy.o $(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o FORCE $(call if_changed,objcopy)