[PATCH] D16575: [ELF] - redesign of program headers creation code.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 26 03:42:55 PST 2016
grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
During review of "[ELF] Support PHDRS command" (http://reviews.llvm.org/D15191) it was mentioned that current code to create a program header it's not easy to read. And solution could be to have a class or a function that create a list of program header fields, and associate OutputSections to zero or more program header field. I am agree with that.
So this patch do this. It introduces new method scanHeaders() which builds the program headers map. This map contains the list of all headers, its flags and output sections lists associated to each. assignAddresses() was changed to use that.
This prepares code for linker script implementation.
http://reviews.llvm.org/D16575
Files:
ELF/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16575.45967.patch
Type: text/x-patch
Size: 14210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160126/b614e52f/attachment.bin>
More information about the llvm-commits
mailing list