This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to change the default attributes of sections declared with __attribute__(( section("my-section") ))?
- From: "PRC" <panruochen at gmail dot com>
- To: "gcc-help" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 12 Mar 2008 11:45:15 +0800
- Subject: How to change the default attributes of sections declared with __attribute__(( section("my-section") ))?
a.c
-----------------------------
static char mydata1[0x2000] __attribute__(( section(".1.c") )) ;
mips-elf-objdump -h a.o
-----------------------------
...
9 .1.c 00002000 00000000 00000000 00000210 2**2
CONTENTS, ALLOC, LOAD, DATA
...
Can I change it to only `ALLOC', without using any `binutils' tool?