[PATCH] D75498: [llvm-objdump] Add option to sort symbols during disassembly
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 21:15:33 PST 2020
MaskRay added a comment.
In D75498#1904662 <https://reviews.llvm.org/D75498#1904662>, @stephenneuendorffer wrote:
> The point of this is to disassemble symbols in a section in a fixed order. This might be useful because linking has moved symbols around, or because some other linker disassembles symbols in alphabetical order and one wants to compare. Basically, I found this useful and I thought other people might. It was much easier to modify llvm-objdump directly than to post-process the disassembly.
As I commented at https://reviews.llvm.org/D75498#1904244 , `some other linker disassembles symbols in alphabetical order` does not match what I have observed with GNU ld, gold and lld. Are you using a different linker or am I missing something?
If the symbol resolution does not change, functions have more of fewer instructions, the order should not change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75498/new/
https://reviews.llvm.org/D75498
More information about the llvm-commits
mailing list