[llvm-readobj][ELF] Show MIPS GOT content when there is another zero-sized section...
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 9 Feb 2016 18:45:35 +0000 (18:45 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 9 Feb 2016 18:45:35 +0000 (18:45 +0000)
commitcb1175c7db87175ce4231555ad9eb75b762bb0d1
tree15fa64386968d38491408501c9ad76c0c113a8c1
parent10c8a04b80f904420ca803c638421068788c30fd
[llvm-readobj][ELF] Show MIPS GOT content when there is another zero-sized section at the same address

It is possible to have .got section and one or more zero-sized section
at the same address. This patch first checks that GOT (or GOT PLT)
section should have non-zero size using corresponding dynamic tags. Then
it looks up not empty section at the specified address.

Differential Revision: http://reviews.llvm.org/D16968

llvm-svn: 260245
llvm/test/tools/llvm-readobj/Inputs/got-over.exe.elf-mips [new file with mode: 0755]
llvm/test/tools/llvm-readobj/mips-got-overlapped.test [new file with mode: 0644]
llvm/tools/llvm-readobj/ELFDumper.cpp