Bug in arm-elf-gcc
Eric Christopher
echristo@cygnus.com
Thu May 11 23:32:00 GMT 2000
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
More information about the Gcc-bugs
mailing list