aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorGravatar Kristen Carlson Accardi <kristen@linux.intel.com> 2021-10-13 10:57:42 -0700
committerGravatar Peter Zijlstra <peterz@infradead.org> 2021-10-27 11:07:59 +0200
commitca136cac37eb51649d52d5bc4271c55e30ed354c (patch)
tree8ed1f98c0412e994c2bc030f2c7ec87fd7a222fa /arch/x86
parentx86/boot/compressed: Avoid duplicate malloc() implementations (diff)
downloadlinux-ca136cac37eb51649d52d5bc4271c55e30ed354c.tar.gz
linux-ca136cac37eb51649d52d5bc4271c55e30ed354c.tar.bz2
linux-ca136cac37eb51649d52d5bc4271c55e30ed354c.zip
vmlinux.lds.h: Have ORC lookup cover entire _etext - _stext
When using -ffunction-sections to place each function in its own text section (so it can be randomized at load time in the future FGKASLR series), the linker will place most of the functions into separate .text.* sections. SIZEOF(.text) won't work here for calculating the ORC lookup table size, so the total text size must be calculated to include .text AND all .text.* sections. Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com> [ alobakin: move it to vmlinux.lds.h and make arch-indep ] Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Tony Luck <tony.luck@intel.com> Reviewed-by: Kees Cook <keescook@chromium.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Tested-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20211013175742.1197608-5-keescook@chromium.org
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions