[PATCH] D15965: Add support for dumping relocations in non-relocatable files

Shankar Easwaran via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 14:21:39 PDT 2016

shankare added a subscriber: shankare.
shankare added a comment.

r_offset is being modeled as per the ELF spec IMO and looks correct. GNU objdump does show relocations when there are relocation sections, that point to the section that needs relocation.

Example :-

  00000000004000c0 <foo>:
    4000c0: 55                    push   %rbp
    4000c1: 48 89 e5              mov    %rsp,%rbp
    4000c4: e8 e7 ff ff ff        callq  4000b0 <bar>
          4000c5: R_X86_64_PC32   bar-0x4
    4000c9: 5d                    pop    %rbp
    4000ca: c3                    retq



More information about the llvm-commits mailing list