llvm-readobj: fix off-by-one error in COFFDumper
authorRui Ueyama <ruiu@google.com>
Wed, 19 Nov 2014 02:07:10 +0000 (02:07 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 19 Nov 2014 02:07:10 +0000 (02:07 +0000)
commit970dda295e708a54df1c9516c365a915ba68e96c
treebe55dcaa1f2808d0baf81e2cb9a972108d721d57
parent13d123ccf76e235e687b06d3ab6943d2fb5e2059
llvm-readobj: fix off-by-one error in COFFDumper

It printed out base relocation table header as table entry.
This patch also makes llvm-readobj to not skip ABSOLUTE entries
becuase it was confusing.

llvm-svn: 222299
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/tools/llvm-readobj/coff-basereloc.test
llvm/tools/llvm-readobj/COFFDumper.cpp