This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in arm-elf-gcc
- To: Soh Kok Hong <khsoh at krdl dot org dot sg>
- Subject: Re: Bug in arm-elf-gcc
- From: Eric Christopher <echristo at cygnus dot com>
- Date: Thu, 11 May 2000 23:35:55 -0700
- CC: gcc-bugs at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- References: <00d501bfbbb0$ecd58e40$50877ac0@krdl.org.sg>
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