mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-24 12:32:29 +00:00
cleanup
This commit is contained in:
parent
88c8ee6c93
commit
a7ab08b2ba
1 changed files with 0 additions and 16 deletions
|
@ -497,22 +497,6 @@ fn copy_file(in_data: &[u8], custom_names: &[String]) -> Result<Vec<u8>, Box<dyn
|
|||
out_dynamic.len(),
|
||||
);
|
||||
|
||||
// Reserve non-alloc sections at any offset.
|
||||
for (i, in_section) in in_sections.iter().enumerate() {
|
||||
if in_section.sh_flags(endian) & u64::from(elf::SHF_ALLOC) != 0 {
|
||||
continue;
|
||||
}
|
||||
match in_section.sh_type(endian) {
|
||||
elf::SHT_PROGBITS | elf::SHT_NOTE => {
|
||||
out_sections[i].offset = writer.reserve(
|
||||
in_section.sh_size(endian) as usize,
|
||||
in_section.sh_addralign(endian) as usize,
|
||||
);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
writer.reserve_symtab();
|
||||
writer.reserve_symtab_shndx();
|
||||
writer.reserve_strtab();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue