Merge pull request #2212 from bjorn3/fix_custom_section_rel_ro

Fix relocated readonly data in custom sections
This commit is contained in:
Pat Hickey
2020-09-22 11:28:32 -07:00
committed by GitHub

View File

@@ -335,8 +335,10 @@ impl Backend for ObjectBackend {
sec.clone().into_bytes(),
if writable {
SectionKind::Data
} else {
} else if relocs.is_empty() {
SectionKind::ReadOnlyData
} else {
SectionKind::Data
},
)
};