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

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

2008-05-22 Thread Adam Nemet
"XU SHENG" <[EMAIL PROTECTED]> writes: > int priv_dat __attribute__ ((section(".note"))) = MAGIC; > ... > > It's clear to me that only section marked attribute with the > startup of ".note" can be compiled to section with type SHT_NOTE in ELF > file. Then only problem is assembler in g