Skip to content

Commit

Permalink
objtool: Fix 32bit cross builds
Browse files Browse the repository at this point in the history
Apparently there's people doing 64bit builds on 32bit machines.

Fixes: 74b873e ("objtool: Optimize find_rela_by_dest_range()")
Reported-by: youling257@gmail.com
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
  • Loading branch information
Peter Zijlstra committed Apr 22, 2020
1 parent 18bf340 commit df2b384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/objtool/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit df2b384

Please sign in to comment.