Re: kernel libraries and dead code in MODULAR kernels

2015-09-06 Thread David Laight
On Fri, Sep 04, 2015 at 06:39:46PM -0700, Dennis Ferguson wrote: > > > > Yes, finding unused functions is hard. Not only in libkern, but also > > libc, or variables in abandaned `Makefile.kern.inc'. Removing one > > needs so much mental energy (especially when those picky wandering). > > I'm

Re: kernel libraries and dead code in MODULAR kernels

2015-09-04 Thread Dennis Ferguson
On 3 Sep, 2015, at 18:08 , Masao Uebayashi wrote: > (Coming back to the original post.) > > On Mon, Aug 31, 2015 at 10:55 AM, Dennis Ferguson > wrote: >> I've been compiling the same kernel configuration with and without >> options MODULAR and

Re: kernel libraries and dead code in MODULAR kernels

2015-09-03 Thread Masao Uebayashi
(Coming back to the original post.) On Mon, Aug 31, 2015 at 10:55 AM, Dennis Ferguson wrote: > I've been compiling the same kernel configuration with and without > options MODULAR and noticed that the MODULAR kernels have a not > inconsiderable amount of code that is

Re: kernel libraries and dead code in MODULAR kernels

2015-08-31 Thread Eric Haszlakiewicz
On August 30, 2015 11:31:54 PM EDT, Masao Uebayashi wrote: >I believe that the exact problem exists in userland's dynamically >linked libraries/programs, right? If so, how do they deal with this >dead code problem? > In userland the loader maps the library in, and if you

Re: kernel libraries and dead code in MODULAR kernels

2015-08-31 Thread David Holland
On Mon, Aug 31, 2015 at 04:43:17PM +, Eric Haszlakiewicz wrote: > On August 30, 2015 11:31:54 PM EDT, Masao Uebayashi > wrote: > >I believe that the exact problem exists in userland's dynamically > >linked libraries/programs, right? If so, how do they deal with this