objtool: Fix 32bit cross builds

Apparently there's people doing 64bit builds on 32bit machines.

Fixes: 74b873e49d ("objtool: Optimize find_rela_by_dest_range()")
Reported-by: youling257@gmail.com
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
This commit is contained in:
Peter Zijlstra 2020-04-20 10:33:32 +02:00
parent 18bf34080c
commit df2b384366
1 changed files with 1 additions and 1 deletions

View File

@ -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);