This is the mail archive of the gcc-help@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]

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?


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