[coreboot-gerrit] Patch merged into coreboot/master: 64d24c0 CAR_GLOBAL: enforce compiler to check if _start != _end

gerrit at coreboot.org gerrit at coreboot.org
Mon Feb 24 13:54:07 CET 2014


the following patch was just integrated into master:
commit 64d24c0482ebd53fdad30b4d5a44af66575ea111
Author: Edward O'Callaghan <eocallaghan at 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 at georgi-clan.de>
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>


See http://review.coreboot.org/4719 for details.

-gerrit



More information about the coreboot-gerrit mailing list