[lld] [LLD][COFF] Add -build-id flag to generate .buildid section. (PR #71433)
Zequan Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 12:41:07 PST 2023
================
@@ -1069,6 +1069,16 @@ void Writer::createMiscChunks() {
debugInfoSec->addChunk(r.second);
}
+ // If .buildid section was not chosen and /build-id is given, create .buildid
+ // section.
+ if (config->buildID && debugInfoSec != buildidSec) {
+ buildidSec->addChunk(debugDirectory);
----------------
ZequanWu wrote:
Updated to create new chunks for extra .buildid section.
https://github.com/llvm/llvm-project/pull/71433
More information about the llvm-commits
mailing list