[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols
From: |
Anthony Liguori |
Subject: |
Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols |
Date: |
Fri, 27 Jul 2012 09:27:10 -0500 |
User-agent: |
Notmuch/0.13.2+93~ged93d79 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) |
Peter Maydell <address@hidden> writes:
> On 27 July 2012 14:37, Anthony Liguori <address@hidden> wrote:
>> --- a/compiler.h
>> +++ b/compiler.h
>> @@ -45,6 +45,7 @@
>> # define GCC_ATTR __attribute__((__unused__, format(gnu_printf, 1, 2)))
>> # define GCC_FMT_ATTR(n, m) __attribute__((format(gnu_printf, n, m)))
>> # endif
>> +#define GCC_WEAK __attribute__((weak))
>> #else
>> #define GCC_ATTR /**/
>> #define GCC_FMT_ATTR(n, m)
>
> The GCC manual says "Weak symbols are supported for ELF targets,
> and also for a.out targets when using the GNU assembler and linker".
> Have you tested this on Windows and MacOSX ?
Weak symbols are supposed to be supported by mingw32.
I have no idea about MacOS X.
I have no way to develop or test for MacOS X using free software so I
honestly don't care about it.
Regards,
Anthony Liguori
>
> (Also, no version of the macro in the not-GCC branch of the #if.)
>
> -- PMM
- [Qemu-devel] [PATCH 0/7] qapi: add commands to remove the need to parse -help output, Anthony Liguori, 2012/07/27
- [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Anthony Liguori, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Peter Maydell, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols,
Anthony Liguori <=
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Peter Maydell, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Anthony Liguori, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Blue Swirl, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Anthony Liguori, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Blue Swirl, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Anthony Liguori, 2012/07/27
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Markus Armbruster, 2012/07/28
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Blue Swirl, 2012/07/28
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Blue Swirl, 2012/07/28
- Re: [Qemu-devel] [PATCH 4/7] compiler: add macro for GCC weak symbols, Peter Maydell, 2012/07/28