commit | 7acb1d948af21f846ac2751906e9e92844aac042 | [log] [tgz] |
---|---|---|
author | Andrew Grieve <agrieve@chromium.org> | Tue Oct 11 15:35:21 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 11 15:35:21 2022 |
tree | 2c1d0ecdff3e4ff0b8d63da29c745f61bbe60e47 | |
parent | 27beda53aa0d264eb1b41a07baa86ab9ecb8dd0c [diff] |
dump-static-initializers.py: Improve accuracy and output usefulness Specific Improvements: 1) Parse .init_array to find the addresses of static initializers (rather tahn using symbol name heuristics). 2) Show the full path of the originating source file instead of just basename. 3) Dump full disassmebly instead of parsing out function calls. It's much easier to understand the symbol contents to see its full disassembly than to just see the list of function calls being made by it. This is simplified even further by showing source lines when available (via objdump --source). 4) Now always uses our checked-in llvm toolchain. For googlers, before/after output when run on libmonochrome_64.so: Before: https://paste.googleplex.com/5392989479239680?raw After: https://paste.googleplex.com/6580632023990272?raw Bug: 1272795 Change-Id: I36907fe8c062afbd9da4b252d0292667426de450 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3938366 Commit-Queue: Andrew Grieve <agrieve@chromium.org> Reviewed-by: Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/main@{#1057472}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.