[llvm] r211150 - [llvm-readobj][ELF] New `-mips-plt-got` command line option to output

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 13:16:50 PST 2016

> Yes, it is possible. But in that case we can miss some kind of invalid
> GOT. For example, if .got section size is less than the number
> DT_MIPS_GOTSYM we will not show any error. One more point - TLS and
> multi-GOT entries. They live beyond local/global part of GOT. Now
> llvm-readobj shows their number using .got section size.

I see.

IMHO there are two ways to look at this:
* We want to print the dynamic linkers view. In this case we should
not look for sections at all. Note that the section table is actually
* We want to print the entire .got section. In this case I think we
should make the search as specific as possible and make sure there is
only one match. For example, check that there is only one section
named .got and use that.


More information about the llvm-commits mailing list