Skip to content

Commit df2b384

Browse files
author
Peter Zijlstra
committed
objtool: Fix 32bit cross builds
Apparently there's people doing 64bit builds on 32bit machines. Fixes: 74b873e ("objtool: Optimize find_rela_by_dest_range()") Reported-by: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
1 parent 18bf340 commit df2b384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/objtool/elf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static inline u32 sec_offset_hash(struct section *sec, unsigned long offset)
9999
offset &= OFFSET_STRIDE_MASK;
100100

101101
ol = offset;
102-
oh = offset >> 32;
102+
oh = (offset >> 16) >> 16;
103103

104104
__jhash_mix(ol, oh, idx);
105105

0 commit comments

Comments
 (0)