[PATCH] D24120: [ELF] Do not omit debug sections when computing build-id
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 15:35:59 PDT 2016
ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: ELF/Writer.cpp:1325-1326
@@ -1327,12 +1324,4 @@
uint8_t *Start = Buffer->getBufferStart();
- uint8_t *Last = Start;
- std::vector<ArrayRef<uint8_t>> Regions;
- for (OutputSectionBase<ELFT> *Sec : OutputSections) {
- uint8_t *End = Start + Sec->getFileOff();
- if (!Sec->getName().startswith(".debug_"))
- Regions.push_back({Last, End});
- Last = End;
- }
- Regions.push_back({Last, Start + FileSize});
- Out<ELFT>::BuildId->writeBuildId(Regions);
+ uint8_t *End = Start + FileSize;
+ Out<ELFT>::BuildId->writeBuildId({Start, End});
}
----------------
I'm fine in either way.
https://reviews.llvm.org/D24120
More information about the llvm-commits
mailing list