[lld] [LLD][COFF] Add -build-id flag to generate .buildid section. (PR #71433)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 04:47:08 PST 2023
================
@@ -1067,6 +1071,7 @@ void Writer::createMiscChunks() {
for (std::pair<COFF::DebugType, Chunk *> r : debugRecords) {
r.second->setAlignment(4);
debugInfoSec->addChunk(r.second);
+ debugDirectory->addRecord(r.first, r.second);
----------------
mstorsjo wrote:
As you no longer can write the build ID to two separate sections, you could revert these changes for the records array, to just keep a reference to the existing `debugRecords`, simplifying the patch a bit.
https://github.com/llvm/llvm-project/pull/71433
More information about the llvm-commits
mailing list