Print more information about relocations.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Apr 2013 16:31:37 +0000 (16:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Apr 2013 16:31:37 +0000 (16:31 +0000)
commit4edf092787cab37d46da96eb1e9df0677ca30b1d
treee93afc34f00e5934acf623c7cbc4511db77d828f
parentc37cb66e6ee256bcb3ba138383e4cb9aab55ddb9
Print more information about relocations.

With this patch llvm-readobj now prints if a relocation is pcrel, its length,
if it is extern and if it is scattered.

It also refactors the code a bit to use bit fields instead of shifts and
masks all over the place.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179294 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachO.h
lib/Object/MachOObjectFile.cpp
test/tools/llvm-readobj/relocations.test
test/tools/llvm-readobj/sections-ext.test
tools/llvm-readobj/MachODumper.cpp