This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]