Skip to content

Commit

Permalink
[LLD][COFF] Fix mergeSections() logic in Writer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 authored Feb 2, 2024
1 parent 46891e9 commit c6edd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/COFF/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ void Writer::mergeSections() {
}
}

if (!ctx.config.hasCustomBSSSection)
if (!ctx.config.hasCustomBSSSection && !ctx.config.dontMergeSections)
ctx.driver.parseMerge(".bss=.data");

for (auto &p : ctx.config.merge) {
Expand Down

0 comments on commit c6edd43

Please sign in to comment.