Orderfile: Correctly use symbol size to translate offset
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:Egor Pasko <pasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#607524}
Showing
Please register or sign in to comment