From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Mon, 18 Mar 2013 22:41:45 -0400 Subject: programme header In-Reply-To: Your message of "Tue, 19 Mar 2013 09:38:49 +0800." <20130319013849.GB25595@debian.localdomain> References: <20130317085400.GA5176@debian.localdomain> <20130319013849.GB25595@debian.localdomain> Message-ID: <9670.1363660905@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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 a link script of your own, when most architectures come with a working link script already. The second thing you do is *read the script* - there's a big copmment in there: /* This linker script is used both with -r and with -shared. For the layouts to match, we need to skip more than enough space for the dynamic symbol table et al. If this amount is insufficient, ld -shared will barf. Just increase it here. */ Hope that helps. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 865 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130318/f98835e3/attachment.bin