Remove unused extern
and global
tables from FXF
This commit is contained in:
parent
983b619a70
commit
9c79b3bba2
20
src/main.rs
20
src/main.rs
|
@ -35,12 +35,8 @@ lazy_static! {
|
||||||
|
|
||||||
//const FXF_CODE_SIZE: usize = 0x00000004;
|
//const FXF_CODE_SIZE: usize = 0x00000004;
|
||||||
//const FXF_CODE_PTR: usize = 0x00000008;
|
//const FXF_CODE_PTR: usize = 0x00000008;
|
||||||
//const FXF_EXTERN_SIZE: usize = 0x0000000C;
|
const FXF_RELOC_SIZE: usize = 0x0000000C;
|
||||||
//const FXF_EXTERN_PTR: usize = 0x00000010;
|
const FXF_RELOC_PTR: usize = 0x00000010;
|
||||||
//const FXF_GLOABL_SIZE: usize = 0x00000014;
|
|
||||||
//const FXF_GLOBAL_PTR: usize = 0x00000018;
|
|
||||||
const FXF_RELOC_SIZE: usize = 0x0000001C;
|
|
||||||
const FXF_RELOC_PTR: usize = 0x00000020;
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct BackpatchTarget {
|
struct BackpatchTarget {
|
||||||
|
@ -414,17 +410,7 @@ fn main() {
|
||||||
// code size
|
// code size
|
||||||
binary.extend_from_slice(&u32::to_le_bytes(code_size as u32));
|
binary.extend_from_slice(&u32::to_le_bytes(code_size as u32));
|
||||||
// code pointer
|
// code pointer
|
||||||
binary.extend_from_slice(&u32::to_le_bytes(0x24)); // code starts after the header
|
binary.extend_from_slice(&u32::to_le_bytes(0x14)); // code starts after the header
|
||||||
|
|
||||||
// extern table size
|
|
||||||
binary.extend_from_slice(&u32::to_le_bytes(0));
|
|
||||||
// extern table pointer
|
|
||||||
binary.extend_from_slice(&u32::to_le_bytes(0));
|
|
||||||
|
|
||||||
// global table size
|
|
||||||
binary.extend_from_slice(&u32::to_le_bytes(0));
|
|
||||||
// global table pointer
|
|
||||||
binary.extend_from_slice(&u32::to_le_bytes(0));
|
|
||||||
|
|
||||||
// reloc table size
|
// reloc table size
|
||||||
binary.extend_from_slice(&u32::to_le_bytes(0));
|
binary.extend_from_slice(&u32::to_le_bytes(0));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user