Re: [PATCH stable 4.4] powerpc/boot: Request no dynamic linker for boot wrapper

2019-11-13 Thread Greg KH
On Tue, Nov 12, 2019 at 05:59:41PM +1100, Andrew Donnellan wrote: > From: Nicholas Piggin > > Commit ff45000fcb56b5b0f1a14a865d3541746d838a0a upstream. > > The boot wrapper performs its own relocations and does not require > PT_INTERP segment. However currently we don't tell the linker that. >

[PATCH stable 4.4] powerpc/boot: Request no dynamic linker for boot wrapper

2019-11-11 Thread Andrew Donnellan
From: Nicholas Piggin Commit ff45000fcb56b5b0f1a14a865d3541746d838a0a upstream. The boot wrapper performs its own relocations and does not require PT_INTERP segment. However currently we don't tell the linker that. Prior to binutils 2.28 that works OK. But since binutils commit 1a9ccd70f9a7

Re: powerpc/boot: request no dynamic linker for boot wrapper

2016-12-04 Thread Michael Ellerman
On Mon, 2016-11-28 at 01:42:26 UTC, Nicholas Piggin wrote: > The boot wrapper performs its own relocations and does not require > PT_INTERP segment. > > Without this option, binutils 2.28 and newer tries to create a program > header segment due to PT_INTERP, and the link fails because there is no

Re: [PATCH v2] powerpc/boot: Request no dynamic linker for boot wrapper

2016-12-04 Thread Nicholas Piggin
On Sat, 3 Dec 2016 22:06:28 +1100 Michael Ellerman wrote: > From: Nicholas Piggin > > The boot wrapper performs its own relocations and does not require > PT_INTERP segment. However currently we don't tell the linker that. > > Prior to binutils 2.28

[PATCH v2] powerpc/boot: Request no dynamic linker for boot wrapper

2016-12-03 Thread Michael Ellerman
From: Nicholas Piggin The boot wrapper performs its own relocations and does not require PT_INTERP segment. However currently we don't tell the linker that. Prior to binutils 2.28 that works OK. But since binutils commit 1a9ccd70f9a7 ("Fix the linker so that it will not

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-30 Thread Gustavo Luiz Duarte
On 11/29/2016 01:42 AM, Michael Ellerman wrote: Nicholas Piggin writes: > On Mon, 28 Nov 2016 22:07:39 +1100 > Michael Ellerman wrote: >> Nicholas Piggin writes: >>> diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-28 Thread Michael Ellerman
Nicholas Piggin writes: > On Mon, 28 Nov 2016 22:07:39 +1100 > Michael Ellerman wrote: >> Nicholas Piggin writes: >> > diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper >> > index 404b3aa..cd941a8 100755 >> > ---

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-28 Thread Nicholas Piggin
On Mon, 28 Nov 2016 14:25:31 + Nick Clifton wrote: > Hi Nicholas, > > >> ... this actually seems like a better fix to me. If you do not want the > >> PT_INTERP segment, then telling this linker this is a good idea. So > >> wouldn't > >> a patch like this be a better

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-28 Thread Nick Clifton
Hi Nicholas, >> ... this actually seems like a better fix to me. If you do not want the >> PT_INTERP segment, then telling this linker this is a good idea. So wouldn't >> a patch like this be a better solution to the problem ? > > Yes, I wasn't asking for the binutils change to be reverted.

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-28 Thread Nick Clifton
Hi Nicholas, >>> The boot wrapper performs its own relocations and does not require >>> PT_INTERP segment. >>> >>> Without this option, binutils 2.28 and newer tries to create a program >>> header segment due to PT_INTERP, and the link fails because there is no >>> space for it. >> >> 2.28 is

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-28 Thread Nicholas Piggin
On Mon, 28 Nov 2016 12:39:38 + Nick Clifton wrote: > Hi Nicholas, > > >>> The boot wrapper performs its own relocations and does not require > >>> PT_INTERP segment. > >>> > >>> Without this option, binutils 2.28 and newer tries to create a program > >>> header segment due

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-28 Thread Nicholas Piggin
On Mon, 28 Nov 2016 22:07:39 +1100 Michael Ellerman wrote: > Nicholas Piggin writes: > > > The boot wrapper performs its own relocations and does not require > > PT_INTERP segment. > > > > Without this option, binutils 2.28 and newer tries to create a

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-28 Thread Michael Ellerman
Nicholas Piggin writes: > The boot wrapper performs its own relocations and does not require > PT_INTERP segment. > > Without this option, binutils 2.28 and newer tries to create a program > header segment due to PT_INTERP, and the link fails because there is no > space for

Re: [PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-27 Thread Alan Modra
On Mon, Nov 28, 2016 at 12:42:26PM +1100, Nicholas Piggin wrote: > The boot wrapper performs its own relocations and does not require > PT_INTERP segment. OK, so the kernel change is quite reasonable in isolation, but see below. > Without this option, binutils 2.28 and newer tries to create a

[PATCH] powerpc/boot: request no dynamic linker for boot wrapper

2016-11-27 Thread Nicholas Piggin
The boot wrapper performs its own relocations and does not require PT_INTERP segment. Without this option, binutils 2.28 and newer tries to create a program header segment due to PT_INTERP, and the link fails because there is no space for it. A recent binutils commit: