projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18bf340
)
objtool: Fix 32bit cross builds
author
Peter Zijlstra
<peterz@infradead.org>
Mon, 20 Apr 2020 08:33:32 +0000
(10:33 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Wed, 22 Apr 2020 21:09:50 +0000
(23:09 +0200)
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>
tools/objtool/elf.h
patch
|
blob
|
blame
|
history
diff --git
a/tools/objtool/elf.h
b/tools/objtool/elf.h
index ebbb10c61e246743e3b2be05f4b9098e02013600..0b79c2353a210ed8a60cd1908beb671e435ef38f 100644
(file)
--- 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);