[PATCH] D19645: Skip scanRelocs for non-alloc sections.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 21:17:23 PDT 2016
ruiu created this revision.
ruiu added a reviewer: rafael.
ruiu added a subscriber: llvm-commits.
Relocations against sections with no SHF_ALLOC bit are R_ABS relocations.
Currently we are creating Relocations vector for them, but that is wasteful.
This patch is to skip vector construction and to directly apply relocations
in place.
http://reviews.llvm.org/D19645
Files:
ELF/InputSection.cpp
ELF/InputSection.h
ELF/Writer.cpp
test/ELF/relocation-non-alloc.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19645.55375.patch
Type: text/x-patch
Size: 4292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160428/078a1074/attachment-0001.bin>
More information about the llvm-commits
mailing list