qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH, RFC] ld flag --warn-common


From: Kirill A. Shutemov
Subject: Re: [Qemu-devel] [PATCH, RFC] ld flag --warn-common
Date: Fri, 19 Sep 2008 19:37:32 +0300
User-agent: Mutt/1.5.18 (2008-05-29)

On Sun, Sep 07, 2008 at 11:24:37AM +0300, Blue Swirl wrote:
> Hi,
> 
> These trivial patches enable linker flag --warn-common and fix the
> warnings caused by enabling the flag.

This flag cause a lot of warning on my machine, even with trivial program.

$ cat 1.c
#include <stdio.h>

int main()
{
        printf("test\n");
        return 0;
}
$ gcc -Wl,--warn-common -static 1.c 
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtoul.o): 
warning: multiple common of `_nl_category_name_idxs'
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): 
warning: previous common is here
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol_l.o): 
warning: multiple common of `_nl_category_name_idxs'
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): 
warning: previous common is here
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtoul_l.o): 
warning: multiple common of `_nl_category_name_idxs'
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): 
warning: previous common is here
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(vfprintf.o): 
warning: multiple common of `_nl_category_name_idxs'
/usr/lib64/gcc/x86_64-alt-linux/4.1.2/../../../../lib64/libc.a(strtol.o): 
warning: previous common is here

...and so on.


Is it problem with my toolchain? What is your testing environment?

-- 
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + ALT Linux Team, http://www.altlinux.com/

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]