From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [parisc-linux] kernel module relocation bug Date: 29 Nov 2004 18:11:44 -0600 Message-ID: <1101773511.1714.98.camel@mulgrave> References: <200411300008.iAU08WAe010494@hiauly1.hia.nrc.ca> Mime-Version: 1.0 Content-Type: text/plain Cc: PARISC list To: John David Anglin Return-Path: In-Reply-To: <200411300008.iAU08WAe010494@hiauly1.hia.nrc.ca> List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: parisc-linux-bounces@lists.parisc-linux.org On Mon, 2004-11-29 at 18:08, John David Anglin wrote: > With -ffunction-sections, gcc guarantees that calls can reach the > beginning of a function plus some margin for the stub table. The linker > inserts stubs on a per function basis. This should work better with > relinking as the functions remain in their own sections. So what we really need is the equivalent of -ffunction-sections for the linker where, when we combine a bunch of .o's it sees if the branches are getting too far a way and drops a stub in between the function sections (so that the in-kernel linker doesn't have to bother about doing this). James _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux