Skip to content

SegmentHeaderRelative for .api_info #49

@todo

Description

@todo

linkle/src/format/nxo.rs

Lines 491 to 501 in a9b8732

// TODO: SegmentHeaderRelative for .api_info
output_writter.write_u64::<LittleEndian>(0)?;
// SegmentHeaderRelative for .dynstr
output_writter.write_u32::<LittleEndian>(self.dynstr_section.as_ref().map(|v| u32::try_from(v.addr).unwrap()).unwrap_or(0))?;
output_writter.write_u32::<LittleEndian>(self.dynstr_section.as_ref().map(|v| u32::try_from(v.size).unwrap()).unwrap_or(0))?;
// SegmentHeaderRelative for .dynsym
output_writter.write_u32::<LittleEndian>(self.dynsym_section.as_ref().map(|v| u32::try_from(v.addr).unwrap()).unwrap_or(0))?;
output_writter.write_u32::<LittleEndian>(self.dynsym_section.as_ref().map(|v| u32::try_from(v.size).unwrap()).unwrap_or(0))?;
// .text sha256
let text_sum = utils::calculate_sha256(&code)?;


This issue was generated by todo based on a TODO comment in a9b8732 when #41 was merged. cc @MegatonHammer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions