|
From: | Thomas Huth |
Subject: | Re: [qemu-s390x] [PATCH] pc-bios/s390-ccw: build s390 bios with -fno-zero-initialized-in-bss |
Date: | Mon, 20 Nov 2017 10:20:04 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 20.11.2017 10:15, Christian Borntraeger wrote: > The QEMU ELF loader does not initialize the bss segment. This has > triggered several bugs in the past, e.g. see commit 5d739a4787a5 > ("s390-ccw.img: Fix sporadic errors with ccw boot image - initialize > css"). > > Instead of fixing these things one-by-one we can build the BIOS > with -fno-zero-initialized-in-bss. This will move the zero variables > also into the data segment, which is then part of a LOAD section. It fixes the problem only for variables that are explicitely intialized to 0 along with their declaration - it does not fix the problem for uninitialized variables. Thomas
[Prev in Thread] | Current Thread | [Next in Thread] |