1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 16:58:12 +03:00
This commit is contained in:
Rui Ueyama 2021-03-16 00:01:10 +09:00
parent 4db65bb2a8
commit 50147f07e8

View File

@ -482,12 +482,9 @@ void OutputSection::copy_buf() {
if (shdr.sh_type == SHT_NOBITS)
return;
tbb::parallel_for((i64)0, (i64)members.size(), [&](u64 i) {
InputSection &isec = *members[i];
if (isec.shdr.sh_type == SHT_NOBITS)
return;
tbb::parallel_for((i64)0, (i64)members.size(), [&](i64 i) {
// Copy section contents to an output file
InputSection &isec = *members[i];
isec.copy_buf();
// Zero-clear trailing padding