WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Integrating applications into Mini-OS

To: Jacob Gorm Hansen <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Integrating applications into Mini-OS
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Mon, 15 May 2006 13:46:37 +0100
Cc: "John D. Ramsdell" <ramsdell@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 May 2006 05:47:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <e08041f30605150518i6eeb4ce7gdb6dcf9bc9fd5643@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <ogtslngh652.fsf@xxxxxxxxxxxxxxx> <e08041f30605150518i6eeb4ce7gdb6dcf9bc9fd5643@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2006-05-15 at 14:18 +0200, Jacob Gorm Hansen wrote:
> I have attached a small patch to mini-os which ... adds a dummy main

Should it be marked with __attribute__((weak))?

http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Function-Attributes.html#Function-Attributes
...
weak
        The weak attribute causes the declaration to be emitted as a
        weak symbol rather than a global. This is primarily useful in
        defining library functions which can be overridden in user code,
        though it can also be used with non-function declarations. Weak
        symbols are supported for ELF targets, and also for a.out
        targets when using the GNU assembler and linker.
        
Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel