Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 16 Mar 2002 12:40:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 16 Mar 2002 12:40:14 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:28557 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Sat, 16 Mar 2002 12:40:01 -0500 Date: Sat, 16 Mar 2002 12:39:56 -0500 (EST) From: Alexander Viro To: Alan Cox cc: Linus Torvalds , LKML Subject: Re: [PATCH] Re: 2.5.7-pre2 -- kernel.o(.data+0x300): undefined reference In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 16 Mar 2002, Alan Cox wrote: > > +/* "Conditional" syscalls */ > > + > > +asmlinkage long sys_nfsservctl(void) __attribute__ ((weak, alias ("sys_ni_syscall"))); > > +asmlinkage long sys_quotactl(void) __attribute__ ((weak, alias ("sys_ni_syscall"))); > > + > > This is what Linus threw out before - when David wanted to use it to remove > all the intermodule crap. > > It doesn't work with some architecture binutils Erm... In this case we are within statatically linked image. In which situations it doesn't work? AFAICS it's as straightforward use of weak aliases as it gets... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/