[PATCH] D18711: Change how we apply rellocations

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 1 13:34:49 PDT 2016


rafael created this revision.
rafael added a reviewer: ruiu.
rafael added a subscriber: llvm-commits.

With this patch we use the first scan over the relocations to remember the information we found about them: will them be relaxed, will a plt be used, etc.

With that the actual relocation application becomes much simpler. That is particularly true for the interfaces in Target.h.

This passes all tests, but I am still debugging a difference in the produced clang binary.



http://reviews.llvm.org/D18711

Files:
  ELF/InputSection.cpp
  ELF/InputSection.h
  ELF/OutputSections.cpp
  ELF/Target.cpp
  ELF/Target.h
  ELF/Writer.cpp
  test/ELF/tls-opt.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18711.52418.patch
Type: text/x-patch
Size: 60193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160401/32956e1b/attachment-0001.bin>


More information about the llvm-commits mailing list