Add a list of relocations to custom sections.

This commit is contained in:
Nick Lewycky
2020-05-14 12:22:32 -07:00
parent 73e97d95d7
commit 9a0c2a76a3
3 changed files with 9 additions and 3 deletions

View File

@ -72,6 +72,7 @@ impl Compiler for LLVMCompiler {
let mut readonly_section = CustomSection {
protection: CustomSectionProtection::Read,
bytes: SectionBody::default(),
relocations: vec![],
};
for (func_index, _) in &module.functions {