aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorJosh Poimboeuf <[email protected]>2021-06-23 10:42:28 -0500
committerIngo Molnar <[email protected]>2021-06-24 08:55:20 +0200
commite31694e0a7a709293319475d8001e05e31f2178c (patch)
treef35beede10fd6162f6e010d6e2053109c9390ad0 /scripts/gdb/linux
parent49faa77759b211fff344898edc23bb780707fff5 (diff)
objtool: Don't make .altinstructions writable
When objtool creates the .altinstructions section, it sets the SHF_WRITE flag to make the section writable -- unless the section had already been previously created by the kernel. The mismatch between kernel-created and objtool-created section flags can cause failures with external tooling (kpatch-build). And the section doesn't need to be writable anyway. Make the section flags consistent with the kernel's. Fixes: 9bc0bb50727c ("objtool/x86: Rewrite retpoline thunk calls") Reported-by: Joe Lawrence <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/6c284ae89717889ea136f9f0064d914cd8329d31.1624462939.git.jpoimboe@redhat.com
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions