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

Re: Bug in arm-elf-gcc


Soh Kok Hong wrote:
> 
> I sent this earlier.  Does anyone have any experience with this problem?

> @ Generated by gcc 2.96 20000501 (experimental) for ARM/elf
>  .file "hi.c"
> gcc2_compiled.:
>  .global ix
>  .section .rodata.ix,"a"
>  .align 2
>  .type  ix,object
>  .size  ix,4
> ix:
>  .word 5
>  .global __hc
>  .section .bss.__hc,"a"
>  .align 2


This is a separate section.  If you run objdump on the object file it is
a little easier to see:

[echristo@ghostwheel ~]$ arm-elf-objdump --section-headers test.o

test.o:     file format elf32-littlearm

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000034  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .data         00000000  00000000  00000000  00000034  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000000  00000000  00000000  00000034  2**0
                  ALLOC
  3 .rodata.ix    00000004  00000000  00000000  00000034  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .bss.__hc     00000004  00000000  00000000  00000038  2**2
                  ALLOC


-eric

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