[PATCH] D27097: [ELF] Refactor target errors
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 24 09:48:36 PST 2016
ruiu added inline comments.
================
Comment at: ELF/Writer.cpp:1559
+
+ for (OutputSectionBase *S : OutputSections) {
+ uint8_t *OutSecLoc = Start + S->Offset;
----------------
evgeny777 wrote:
> ruiu wrote:
> > I think we should make OutputSections global, instead of doing a plumbing work to propagate information from Target to Writer.
> How about Buffer pointer? It isn't stored in OutputSection<ELFT>.
> What do you think about saving buffer position in OutputSection<ELFT> and iterating over Symtab<ELFT>::Sections, instead of OutputSections ?
Interesting idea. Not sure if that's actually good at the moment, but it's worth a try.
Repository:
rL LLVM
https://reviews.llvm.org/D27097
More information about the llvm-commits
mailing list