This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
x86-arm bug in 20000501 snapshot
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: x86-arm bug in 20000501 snapshot
- From: "Soh Kok Hong" <khsoh at krdl dot org dot sg>
- Date: Tue, 9 May 2000 10:13:52 +0800
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