Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-08 Thread Arnd Bergmann
On Monday, August 8, 2016 1:25:32 PM CEST Nicholas Piggin wrote: > On Sat, 6 Aug 2016 22:10:45 +0200 > Sam Ravnborg wrote: > > > Hi Nicholas. > > > > On Fri, Aug 05, 2016 at 10:11:59PM +1000, Nicholas Piggin wrote: > > > From: Stephen Rothwell > > > > > > ld -r is an incremental link used to c

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Sam Ravnborg
On Mon, Aug 08, 2016 at 01:19:41PM +1000, Nicholas Piggin wrote: > On Sun, 7 Aug 2016 16:40:54 +0200 > Sam Ravnborg wrote: > > > On Sun, Aug 07, 2016 at 11:49:46AM +1000, Stephen Rothwell wrote: > > > Hi Sam, > > > > > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > > > > > >

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Nicholas Piggin
On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > Hi Nicholas. > > On Fri, Aug 05, 2016 at 10:11:59PM +1000, Nicholas Piggin wrote: > > From: Stephen Rothwell > > > > ld -r is an incremental link used to create built-in.o files in build > > subdirectories. It produces relocatable object

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Nicholas Piggin
On Sun, 7 Aug 2016 16:40:54 +0200 Sam Ravnborg wrote: > On Sun, Aug 07, 2016 at 11:49:46AM +1000, Stephen Rothwell wrote: > > Hi Sam, > > > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > > > Did you by any chance evalue the use of INPUT in linker files. > > > Stephen back the

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Sam Ravnborg
On Sun, Aug 07, 2016 at 11:49:46AM +1000, Stephen Rothwell wrote: > Hi Sam, > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > Did you by any chance evalue the use of INPUT in linker files. > > Stephen back then (again based on proposal from Alan Modra), > > also made an implementa

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-06 Thread Nicolas Pitre
On Sun, 7 Aug 2016, Stephen Rothwell wrote: > Hi Sam, > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > Did you by any chance evalue the use of INPUT in linker files. > > Stephen back then (again based on proposal from Alan Modra), > > also made an implementation using INPUT. >

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-06 Thread Alan Modra
On Sun, Aug 07, 2016 at 11:49:46AM +1000, Stephen Rothwell wrote: > Hi Sam, > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > Did you by any chance evalue the use of INPUT in linker files. > > Stephen back then (again based on proposal from Alan Modra), > > also made an implementa

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-06 Thread Stephen Rothwell
Hi Sam, On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > Did you by any chance evalue the use of INPUT in linker files. > Stephen back then (again based on proposal from Alan Modra), > also made an implementation using INPUT. The problem with that idea was that (at least for some versio

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-06 Thread Sam Ravnborg
Hi Nicholas. On Fri, Aug 05, 2016 at 10:11:59PM +1000, Nicholas Piggin wrote: > From: Stephen Rothwell > > ld -r is an incremental link used to create built-in.o files in build > subdirectories. It produces relocatable object files containing all > its input files, and these are are then pulled

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-05 Thread kbuild test robot
Hi Stephen, [auto build test ERROR on kbuild/for-next] [also build test ERROR on v4.7] [cannot apply to linus/master linux/master next-20160805] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ni

[PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-05 Thread Nicholas Piggin
From: Stephen Rothwell ld -r is an incremental link used to create built-in.o files in build subdirectories. It produces relocatable object files containing all its input files, and these are are then pulled together and relocated in the final link. Aside from the bloat, this constrains the final