Build with -Wl,--no-call-graph-profile-sort on Android
LLD will sort the binary section based on a call-graph profile when such profile information is available in the object files. Since the last Clang roll, that information gets written to the object files when building with a profile (as is done on Android). Since call-graph sorting leads to larger binaries on Android, and we already have good section order files there, tell the linker to disable it. Bug: 1110413, 1107461 Change-Id: I4f37c57dd65437c4269b0e216f64102ae233aeeb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2332398Reviewed-by:Nico Weber <thakis@chromium.org> Commit-Queue: Hans Wennborg <hans@chromium.org> Cr-Commit-Position: refs/heads/master@{#793638}
Showing
Please register or sign in to comment