This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
nobits for named section
- From: "Bingfeng Mei" <bmei at broadcom dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 24 Aug 2010 06:36:34 -0700
- Subject: nobits for named section
Hello,
I came across an issue regarding named section and nobits. In
the following example, I expected the c is placed is placed
in a section named .smemdata and nobits is set for the section
since "c" is initialized to zeros.
int a = 0;
int b = 2000 * 512;
static int c[(200 * 512)] __attribute__((section(".smemdata")));
void foo()
{
c[0] = 0;
}
Using both trunk x86_64 and arm-elf compilers, I found .smemdata
has progbits flag instead of nobits. Is this a bug?
Cheers,
Bingfeng