RE: About the gcc Warning: setting incorrect section attributes for .note

2008-05-22 Thread XU SHENG
Hi Adam, It's OK. Thanks. Best Regards, Edison -Original Message- From: Adam Nemet [mailto:[EMAIL PROTECTED] Sent: 2008年5月22日 15:03 To: XU SHENG Cc: gcc@gcc.gnu.org Subject: Re: About the gcc Warning: setting incorrect section attributes for .note "XU SHEN

About the gcc Warning: setting incorrect section attributes for .note

2008-05-21 Thread XU SHENG
Hi community, I want to add a note section in a ELF formatted file to indentify some private information. So I declare a private variable in a single c file use attribute like this: int priv_dat __attribute__ ((section(".note"))) = MAGIC; while compile it using gcc 3.4.3,