Skip to content

Commit

Permalink
write/coff: Set checksum for BSS section symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrikB committed Aug 10, 2024
1 parent 48f6b29 commit 4eb2431
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/write/coff/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,12 @@ impl<'a> Object<'a> {
length: section.size as u32,
number_of_relocations: section.relocations.len() as u32,
number_of_linenumbers: 0,
check_sum: checksum(section.data()),
check_sum: if section.is_bss() {
0
}
else {
checksum(section.data())
},
number: section_offsets[section_index].associative_section,
selection: section_offsets[section_index].selection,
});
Expand Down

0 comments on commit 4eb2431

Please sign in to comment.