[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.