summaryrefslogtreecommitdiffstats
path: root/tools/objtool/elf.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-04-20 10:33:32 +0200
committerIngo Molnar <mingo@kernel.org>2020-04-22 10:53:49 +0200
commit963d5669171adcd59b45cad58fab81bbd599c3c8 (patch)
tree87f8b104afac9c4769fb798cd42617acda56356c /tools/objtool/elf.h
parentMerge branch 'akpm' (patches from Andrew) (diff)
downloadlinux-963d5669171adcd59b45cad58fab81bbd599c3c8.tar.xz
linux-963d5669171adcd59b45cad58fab81bbd599c3c8.zip
objtool: Fix 32bit cross builds
Apparently there's people doing 64bit builds on 32bit machines. Fixes: 74b873e49d92 ("objtool: Optimize find_rela_by_dest_range()") Reported-by: youling257@gmail.com Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/objtool/elf.h')
-rw-r--r--tools/objtool/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h
index ebbb10c61e24..0b79c2353a21 100644
--- a/tools/objtool/elf.h
+++ b/tools/objtool/elf.h
@@ -99,7 +99,7 @@ static inline u32 sec_offset_hash(struct section *sec, unsigned long offset)
offset &= OFFSET_STRIDE_MASK;
ol = offset;
- oh = offset >> 32;
+ oh = (offset >> 16) >> 16;
__jhash_mix(ol, oh, idx);