• C
    armv7: Add Position Independent Execution support · cd82f199
    Chia-Wei Wang 提交于
    A U-Boot image could be loaded and executed at a different
    location than it was linked at.
    
    For example, Aspeed takes a stable release version of U-Boot image
    as the golden one for recovery purposes. When the primary storage
    such as flash is corrupted, the golden image would be loaded to any
    SRAM/DRAM address on demands through ethernet/UART/etc and run for
    rescue.
    
    To deal with this condition, the PIE is needed as there is only one
    signed, golden image, which could be however executed at different
    places.
    
    This patch adds the PIE support for ARMv7 platform.
    Signed-off-by: NChia-Wei Wang <chiawei_wang@aspeedtech.com>
    cd82f199
crt0.S 5.5 KB