[PATCH] Fix Mach-O relocation printing

Ahmed Bougacha ahmed.bougacha at gmail.com
Mon May 13 11:45:12 PDT 2013


Hi all,

This quick patch fixes two problems with Mach-O llvm-objdump -d -r:
- for non-scattered relocations, the symbol/section index is actually
in the (aptly named) symbolnum field
- sections are 1-indexed

There is more to be found just by running tests over the existing
mach-o objects. For now this solves the objdump crash, I'll probably
take care of the rest later.

Thanks!

-- Ahmed Bougacha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: macho-disass-reloc.diff
Type: application/octet-stream
Size: 4440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130513/3f43af75/attachment.obj>


More information about the llvm-commits mailing list