the following patch was just integrated into master: commit 64d24c0482ebd53fdad30b4d5a44af66575ea111 Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Thu Feb 20 05:10:09 2014 +1100
CAR_GLOBAL: enforce compiler to check if _start != _end
There are some fun rules C compilers can use to optimize their code. One of them is the assumption that two symbols point to two different addresses. In this case this wasn't true, resulting in unintended code execution (and later, a crash) with a clang build.
Change-Id: I1496b22e1d1869ed0610e321b6ec6a83252e9d8b Signed-off-by: Patrick Georgi patrick@georgi-clan.de Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com
See http://review.coreboot.org/4719 for details.
-gerrit