Re: [PATCH] powerpc: Fix -mcmodel=medium breakage in prom_init.c

2013-03-14 Thread Alexander Graf
On 12.03.2013, at 12:51, Anton Blanchard wrote: > > Commit 5ac47f7a6efb (powerpc: Relocate prom_init.c on 64bit) made > prom_init.c position independent by manually relocating its entries > in the TOC. > > We get the address of the TOC entries with the __prom_init_toc_start > linker symbol. If

Re: [PATCH] powerpc: Fix -mcmodel=medium breakage in prom_init.c

2013-03-12 Thread Aaro Koskinen
Hi, On Tue, Mar 12, 2013 at 10:51:51PM +1100, Anton Blanchard wrote: > Commit 5ac47f7a6efb (powerpc: Relocate prom_init.c on 64bit) made > prom_init.c position independent by manually relocating its entries > in the TOC. > > We get the address of the TOC entries with the __prom_init_toc_start > l

[PATCH] powerpc: Fix -mcmodel=medium breakage in prom_init.c

2013-03-12 Thread Anton Blanchard
Commit 5ac47f7a6efb (powerpc: Relocate prom_init.c on 64bit) made prom_init.c position independent by manually relocating its entries in the TOC. We get the address of the TOC entries with the __prom_init_toc_start linker symbol. If __prom_init_toc_start ends up as an entry in the TOC then we nee