Re: [PATCH v2] powerpc/64: handle linker stubs in low .text code

2017-05-29 Thread Nicholas Piggin
On Tue, 30 May 2017 09:02:30 +1000 Balbir Singh wrote: > On Mon, 2017-05-29 at 17:39 +1000, Nicholas Piggin wrote: > > Very large kernels may require linker stubs for branches from HEAD > > text code. The linker may place these stubs before the HEAD text > > sections,

Re: [PATCH v2] powerpc/64: handle linker stubs in low .text code

2017-05-29 Thread Balbir Singh
On Mon, 2017-05-29 at 17:39 +1000, Nicholas Piggin wrote: > Very large kernels may require linker stubs for branches from HEAD > text code. The linker may place these stubs before the HEAD text > sections, which breaks the assumption that HEAD text is located at 0 > (or the .text section being

[PATCH v2] powerpc/64: handle linker stubs in low .text code

2017-05-29 Thread Nicholas Piggin
Very large kernels may require linker stubs for branches from HEAD text code. The linker may place these stubs before the HEAD text sections, which breaks the assumption that HEAD text is located at 0 (or the .text section being located at 0x7000/0x8000 on Book3S kernels). Provide an option to