summaryrefslogtreecommitdiffstats
path: root/arch/alpha/Makefile
diff options
context:
space:
mode:
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>2008-06-21 01:25:39 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-06-21 01:46:10 +0200
commit9267b4b3880d00dc2dab90f1d817c856939114f7 (patch)
tree9823a76657f257d71aac2a5f4374c56560dd2e6e /arch/alpha/Makefile
parentLinux 2.6.26-rc7 (diff)
downloadlinux-9267b4b3880d00dc2dab90f1d817c856939114f7.tar.xz
linux-9267b4b3880d00dc2dab90f1d817c856939114f7.zip
alpha: fix module load failures on smp (bug #10926)
To calculate addresses of locally defined variables, GCC uses 32-bit displacement from the GP. Which doesn't work for per cpu variables in modules, as an offset to the kernel per cpu area is way above 4G. The workaround is to force allocation of a GOT entry for per cpu variable using ldq instruction with a 'literal' relocation. I had to use custom asm/percpu.h, as a required argument magic doesn't work with asm-generic/percpu.h macros. Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/Makefile')
0 files changed, 0 insertions, 0 deletions