fix: only push raw instruction once

This commit is contained in:
2025-05-27 09:37:57 +09:00
parent 3463b5b4ae
commit 5c8702fb95
3 changed files with 16 additions and 11 deletions

View File

@@ -36,8 +36,11 @@ impl Aout {
let data_start = text_end + 1;
let data_end = data_start + hdr.data as usize;
dbg!(&hdr);
let text_section = &buf[text_start..text_end];
let data_section = &buf[data_start..data_end];
// let data_section = &buf[data_start..data_end];
let data_section = [];
Aout {
header: hdr,