ethteck / splat

A binary splitting tool to assist with decompilation and modding projects
MIT License
159 stars 42 forks source link

Add a pad segment #312

Closed hensldm closed 9 months ago

mkst commented 9 months ago

What would a "pad" segment do, compared to either "bin" or using align/subalign?

hensldm commented 9 months ago

The idea would be just advance the linker script by some amount (e.g. . += 0x10). Bin would still dump a file of zeros which seems wasteful. However, I did not know about align, but it does seem all the use cases I know of seem to be aligned to 0x40 boundaries so maybe it would work.

hensldm commented 9 months ago

Tried manually putting an . = ALIGN(., 64) but that did not seem to work, so I don't think just using align/subalign would work.