[PATCH] D88817: [llvm-readobj/elf] - Ignore the hash table when on EM_S390/EM_ALPHA platforms.

Ulrich Weigand via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 01:17:56 PDT 2020


uweigand added a comment.

In D88817#2313657 <https://reviews.llvm.org/D88817#2313657>, @grimar wrote:

> In D88817#2311572 <https://reviews.llvm.org/D88817#2311572>, @uweigand wrote:
>
>> It looks like this will trigger a warning being emitted on every use of llvm-readobj on a EM_S390 object file, which is probably not what we want.   (They all also contain .gnu.hash, so the fact that .hash is ignored is not anything that the user should be concerned about. --  This warning may just cause unnecessary confusion, or parse error with automated tools etc.)
>
> I'd like to wait for opinions of @jhenderson/@MaskRay to confirm them are happy to silently ignore the `.hash` section on `EM_S390`/`EM_ALPHA` platforms. It might probably
> be confusing to see a `.hash` section in an object and no output with `--hash-table`.

If you use an option that specifically refers to the hash table like `--hash-table`, I'd be fine with a warning in that case.  But the warning as currently implemented seems to trigger with **any** invocation of llvm-readobj, even though most users will never care about the hash table (or even know about it in the first place).


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

https://reviews.llvm.org/D88817



More information about the llvm-commits mailing list