OSDN Git Service

[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)
commit30b32053a435e362937c742d3ed94622644cf60f
treef53ed211764dbc9abe79e8d4cc3ad355bba0d738
parent23b546ba0dee7af92e306771c31afc7b36ce9d4a
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260245 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/Inputs/got-over.exe.elf-mips [new file with mode: 0755]
test/tools/llvm-readobj/mips-got-overlapped.test [new file with mode: 0644]
tools/llvm-readobj/ELFDumper.cpp