[PATCH] D57051: [llvm-objdump] - Implement the --adjust-vma option.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 23 07:24:52 PST 2019


grimar added a comment.

In D57051#1367734 <https://reviews.llvm.org/D57051#1367734>, @jhenderson wrote:

> I'm a little confused as to what the purpose of this option is? I think it can be used to produce disassembly that can then be grepped when loading at a variable address (e.g. due to ASLR), but am wondering if that's the intent?


Yes, I was thinking that it can be used for printing DSO dumps for example when you know their load addresses. My real intention was a bit different though. Recently I compared differences between GNU objdump and llvm-objdump,
and found we do not support this option though it looked potentially useful to me. So I tried to improve compatibility with the GNU objdump command line.

>>> I am adjusting sections that are not allocatable. As, for example, adjusting debug sections VA's and rel[a] sections VA's should not make sense.
>> 
>> Do you mean you are NOT adjusting non-alloc sections (i.e. what your patch actually does)?

Oh, right. I updated the description.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57051/new/

https://reviews.llvm.org/D57051





More information about the llvm-commits mailing list