Bug in arm-elf-gcc
Soh Kok Hong
khsoh@krdl.org.sg
Thu May 11 18:25:00 GMT 2000
I sent this earlier. Does anyone have any experience with this problem?
GCC Version:
Host=i586-pc-cygwin32
Target=arm-elf
Version=20000501 snapshot
Problem:
Compiler places const structures into .bss section when compiling
with -fdata-sections
Example:
const int ix = 5;
typedef struct M {
int cc;
} MM;
const MM __hc = {
5
};
output from compiling with -c -save-temps -mcpu=arm7di -fdata-sections :
@ 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
.type __hc,object
.size __hc,4
__hc:
.word 5
More information about the Gcc-bugs
mailing list