[PATCH] D139097: [ARM] Add option --print-raw-value to llvm-nm to dump raw symbol values in case of ARM

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 16 22:45:50 PST 2022


MaskRay added a comment.

(I've been out for a while and just came back.)

In D139097#3975372 <https://reviews.llvm.org/D139097#3975372>, @MaskRay wrote:

> Perhaps we should just print the raw `st_value` unconditionally? Since this is something strange with `arm*nm`, it may be worth reporting this difference on binutils at sourceware.org

This comment is still relevant. It looks like some folks don't like arm-*-nm's `st_value &~1` behavior. In this patch, an llvm-nm specific option `--print-raw-value` is being introduced.
So, can some Arm folks bring up this on binutils at sourceware.org? Is it really useful for arm-*-nm's to keep the `st_value &~1` behavior?

If not, llvm-nm can behave as always `--print-raw-value`, saving us the trouble to introduce a new option.


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

https://reviews.llvm.org/D139097



More information about the llvm-commits mailing list