• Matthew Cary's avatar
    Orderfile: Correctly use symbol size to translate offset · f3e2f70f
    Matthew Cary authored
    The existing logic is not correct for code that's not word-aligned,
    which happens frequently with thumb (16-bit) instruction words.
    
    Also asserts that no symbols appear before the starting symbol. We
    expect that the only symbols we have are from text, and that the
    symbol placed by the linker script occurs not after any
    symbol. Breaking either of the assumptions may break assumptions made
    elsewhere.
    
    Bug: 893981
    Change-Id: I748c9edd0f6a5f49790b4c06d4246ee1cf8f90dc
    Reviewed-on: https://chromium-review.googlesource.com/c/1329166
    Commit-Queue: Matthew Cary <mattcary@chromium.org>
    Reviewed-by: default avatarEgor Pasko <pasko@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#607524}
    f3e2f70f
process_profiles.py 21.3 KB