Re: programme header

2013-03-18 Thread ishare
On Mon, Mar 18, 2013 at 03:02:02PM -0700, Ian Lance Taylor wrote: On Sun, Mar 17, 2013 at 1:54 AM, ishare june.tune@gmail.com wrote: when product a .so liberary , if there is not a programme header in the linker script file, will the linker automaticlly generate a deault one

Re: programme header

2013-03-18 Thread Valdis . Kletnieks
On Tue, 19 Mar 2013 09:38:49 +0800, ishare said: I am linking my kernel by a link script. its contens is as below: I think it will work ,but ld report that No enough room for programme header,what is the reason? what should I do ? The first thing you do is ask yourself why you're using

Re: programme header

2013-03-18 Thread ishare
On Mon, Mar 18, 2013 at 10:41:45PM -0400, valdis.kletni...@vt.edu wrote: On Tue, 19 Mar 2013 09:38:49 +0800, ishare said: I am linking my kernel by a link script. its contens is as below: I think it will work ,but ld report that No enough room for programme header,what is the reason

Re: programme header

2013-03-18 Thread Valdis . Kletnieks
On Tue, 19 Mar 2013 12:44:36 +0800, ishare said: because I need to generate a .so for sysenter used And that solves what problem for you, exactly? Consider that most architectures that use sysenter manage to do so without having to worry about a .so for it (or if they really do need one,