Supersize archive: Add --relocations
Sample output in viewer: https://storage.googleapis.com/chrome-supersize/viewer.html?load_url=oneoffs%2Fsample-relocations2.ndjson&byteunit=B (note the unit is 'bytes' when this is actually instruction count) Using llvm-readelf directly on the above binary gives 392,984 R_ARM_RELATIVE instructions, which differs by a whopping 300 instructions from the 392,689.16 instructions counted by the analysis above. I'm not sure where the difference is coming from (although the floating-point values come from how size is attributed across symbol aliases). I'd be interested in thoughts on this, but accuracy to one part in a thousand is good enough for this use case. Timing information: This post-processing step takes about six seconds on my workstation (in addition to the previous runtime of supersize archive). Doesn't seem worth optimizing. Bug: 981592 Change-Id: I0c8ad5ec5c3e76ef51493ea43800900077f40110 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1811930 Commit-Queue: Jasper Chapman-Black <jaspercb@chromium.org> Reviewed-by:Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#698603}
Showing
Please register or sign in to comment