Problem for using __attribute__((section(".text")))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

File boot.c is like below:

          int val[] __attribute__ ((section(".text"))) = {1, 2, 3, 4, 5 ,6};
          int getval(int i) {
               return val[i];
          }

Then i compile it use gcc-4.2.4 and binutils2.20

        arm-elf-gcc boot.c -c -o boot.o

It gives a warning:

   /tmp/ccIlHjum.s: Assembler message:
   /tmp/ccIlHjum.s:4: Warning: ignoring changed section attributes for .text

What's wrong?  What should i do to remove the warning?

Thanks


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux