]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix RELOC_HIDE miscompilation
authorAndi Kleen <ak@muc.de>
Tue, 3 Sep 2002 12:43:59 +0000 (05:43 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 3 Sep 2002 12:43:59 +0000 (05:43 -0700)
commitefec05b7d8f9d68938a0440b82a25b05848c3bb7
tree5e61a974d1ba2b8829214f941d4b637ddea37e6e
parent618cb2b643bc4dcb43ada89804f102f3ceabe0f9
[PATCH] Fix RELOC_HIDE miscompilation

RELOC_HIDE got miscompiled on gcc3.1/x86-64 in the access to softirq.c's per
cpu variables.  This fixes the problem.

Clearly to hide the relocation the addition needs to be done after the
value obfuscation, not before.

I don't know if it triggers on other architectures (x86-64 is especially
stressf here because it has negative kernel addresses), but seems like the
right thing to do.
include/linux/compiler.h