From: Ian Campbell Subject: Re: [patch] make ELF functions static Date: Wed, 30 Aug 2006 08:03:53 +0100 Message-ID: <1156921433.5190.26.camel@localhost.localdomain> References: <1156886133.29858.75.camel@basalt.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1156886133.29858.75.camel@basalt.austin.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Hollis Blanchard Cc: xen-devel , xen-ppc-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2006-08-29 at 16:15 -0500, Hollis Blanchard wrote: > Hi Ian, these functions should be static. It would only be a style issue > except PowerPC actually #includes elf.c twice, to support both 32- and > 64-bit ELF binaries. Please apply. Unfortunately they are referenced from outside this file (xen/arch/x86/domain_build.c). I'm not sure what a good short term fix for you would be. Perhaps some preprocessor/CFLAGS magic to name them xen_elfnote32_foo and xen_elfnote64_foo when compiling powerpc? Hopefully long term the 32-on-64 work that is going on will lead to ELF code which doesn't need to be multiply compiled. Ian.