[PATCH] D12941: [ELF2] Use correct symbol table indexes for hash and relocation sections

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 09:26:06 PDT 2015


ikudrin created this revision.
ikudrin added reviewers: rafael, davide, ruiu.
ikudrin added a subscriber: llvm-commits.
ikudrin added a project: lld.

Hash and relocation sections memorized indexes of symbol table entries during the createSections phase. However, the symbol table section reordered its entries at writing phase. As a result, references in hash and relocation sections might be broken.

This patch forces dependent sections to receive information about actual indexes of symbol table entries from the symbol table section itself when this information is ready.

http://reviews.llvm.org/D12941

Files:
  lld/trunk/ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12941.35007.patch
Type: text/x-patch
Size: 7614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150917/340e859f/attachment.bin>


More information about the llvm-commits mailing list