Print relocations interleaved with disassembled instructions for
executables with relocatable sections, e.g. those built with "-Wl,-q".
pr/51684
Differential D109016
[llvm-objdump] Fix 'llvm-objdump -dr' for executables with relocations maksfb on Aug 31 2021, 12:15 PM. Authored by
Details Print relocations interleaved with disassembled instructions for pr/51684
Diff Detail
Event TimelineComment Actions Thanks @maksfb , this fixes the issue reported in https://bugs.llvm.org/show_bug.cgi?id=51684. Perhaps you can add pr/51684 to the description+commit message just as a cross reference? Perhaps it would be good to wait for an additional code review from folks more knowledgeable than myself about this code before merging?
Comment Actions It would be good to wait for @jhenderson as well.
Comment Actions One small suggestion, otherwise this looks fine.
Comment Actions thanks for the quick fix; does this still need to be cherry-picked to release/13.x to close out https://bugs.llvm.org/show_bug.cgi?id=51684? Comment Actions No problem. Good point, ideally it should be cherry-picked. Do you know what's the logistics for that? Comment Actions I think https://llvm.org/docs/HowToReleaseLLVM.html#merge-requests is the official documentation, although I wouldn't be surprised if it's somewhat out-of-date, given it seems to be using SVN revision numbers! The essence though is that the release manager needs to be advised of which commit to cherry-pick. Comment Actions Thanks. I see the commit was cherry-picked. Likely because the bug was marked as blocking the release. |
Consider adding a leading nop too. You need to show that a relocation isn't printed before its correct location (in other words, the leading nop would have no associated relocation).