[PATCH] D66291: [test/Object] - Move/rewrite 2 more test cases.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 09:30:47 PDT 2019


MaskRay added inline comments.


================
Comment at: test/tools/llvm-objdump/relocations-in-nonreloc.test:29
+        Type:   R_X86_64_IRELATIVE
+        Addend: 0
+
----------------
jhenderson wrote:
> MaskRay wrote:
> > Nit: non-zero r_offset & r_addend for IRELATIVE will be more realistic. At runtime, image_base + r_addend will be called as a function. r_addend should be non-zero.
> I don't think we need this test to be particularly realistic. It just needs to have a relocation in it (I say R_X86_64_NONE to show it's suitably arbitrary), and show whether or not that relocation is printed.
R_X86_64_NONE is not arbitrary but it will justify arbitrary r_offset/r_addend (so you can even omit r_addend)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66291/new/

https://reviews.llvm.org/D66291





More information about the llvm-commits mailing list