From bd9e5c7d304abedcc9910b4b2548ac64a43ee914 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Dec 2010 20:33:36 +0000 Subject: [PATCH] libgloss: _mask belongs in .rodata section, not in .data _mask symbol is used in emulation code (storeb) for fast computation of byte mask. Mask values are constant, however they are placed in .data section. In order to avoid problems with code which does not perform .data initialization, this symbol is moved into ".rodata" section. --- toolchain/gcc/libgloss/zpu/crt0.S | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/toolchain/gcc/libgloss/zpu/crt0.S b/toolchain/gcc/libgloss/zpu/crt0.S index 52dccee..ee16439 100755 --- a/toolchain/gcc/libgloss/zpu/crt0.S +++ b/toolchain/gcc/libgloss/zpu/crt0.S @@ -949,7 +949,7 @@ ___zpu_interrupt_vector: jsr _zpu_interrupt poppc - .data + .section ".rodata" .balign 4,0 _mask: .long 0x00ffffff @@ -957,6 +957,8 @@ _mask: .long 0xffff00ff .long 0xffffff00 + .data + .balign 4,0 .globl _hardware _hardware: -- 1.7.1