[PATCH] D26281: [ELF] Make input section's writeTo virtual (required to make .got.plt section synthetic)
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 07:35:18 PDT 2016
evgeny777 created this revision.
evgeny777 added reviewers: ruiu, rafael.
evgeny777 added subscribers: grimar, ikudrin, llvm-commits.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.
The .got.plt section needs to write VA of .dynamic section, so we cannot build its output buffer in finalizeSections().
There are two approaches to deal with this:
a) Make writeTo virtual, so that section is written after assignAddresses() is called. This is what this patch does.
b) Implement special procedure for writing synthetic input sections (like we do with writeBuildId).
Repository:
rL LLVM
https://reviews.llvm.org/D26281
Files:
ELF/InputSection.cpp
ELF/InputSection.h
ELF/SyntheticSections.cpp
ELF/SyntheticSections.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26281.76855.patch
Type: text/x-patch
Size: 4402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161103/8398e5ab/attachment.bin>
More information about the llvm-commits
mailing list