AlexYzhov / rwcompression

GCC .data/.bss runtime loader and post-build data compressor
BSD 2-Clause "Simplified" License
11 stars 1 forks source link

[BUG] can't compress data with `NO_COMPRESSION` method #2

Open AlexYzhov opened 3 months ago

AlexYzhov commented 3 months ago

fail to process segments with NO_COMPRESSION method, especially ram_func data

AlexYzhov commented 3 months ago

This is because currently this script processes ELF files by refill data in phdrs directly.

During this process, we are always adding an extra load header (struct lhdr in startup_load.c) in front of the segment, this will cause data gets bigger especially when using NO_COMPRESSION methods.