Re: [PATCH] powerpc: Fix dynamic relocation

2013-03-09 Thread Alexander Graf
Am 09.03.2013 um 08:29 schrieb Benjamin Herrenschmidt : > On Sat, 2013-03-09 at 02:02 +0100, Alexander Graf wrote: >> Commit 5ac47f7a introduced dynamic relocation of code by manually >> relocating TOC entries. However, we need to access the TOC using >> the physical address that we have for it

Re: [PATCH] powerpc: Fix dynamic relocation

2013-03-09 Thread Andreas Schwab
Benjamin Herrenschmidt writes: > That might fix the mac too.. It does. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ___ Linux

Re: [PATCH] powerpc: Fix dynamic relocation

2013-03-08 Thread Benjamin Herrenschmidt
On Sat, 2013-03-09 at 02:02 +0100, Alexander Graf wrote: > Commit 5ac47f7a introduced dynamic relocation of code by manually > relocating TOC entries. However, we need to access the TOC using > the physical address that we have for it, not the virtual address > that we can't even access yet. > > D

[PATCH] powerpc: Fix dynamic relocation

2013-03-08 Thread Alexander Graf
Commit 5ac47f7a introduced dynamic relocation of code by manually relocating TOC entries. However, we need to access the TOC using the physical address that we have for it, not the virtual address that we can't even access yet. Drop the offset from the TOC accessing pointer. This fixes Linux 3.9