On 10.05.2023 02:18, Rafaël Kooi wrote: > A problem I ran into was that adding book keeping to decompress.c would > result in either a .data section being added or a .bss.* section. The > linker would complain about this. And since I am not familiar with this > code, and why it is this way, I opted to add a user-pointer to the > internal decompression API.
At least gunzip uses global variables to track state as well. Without you being explicit, I guess you mean "Error: size of <file>:<section> is <size>", which is emitted by our build system, not the linker? That's easy to overcome without touching all decompressors - use __initdata. See common/gunzip.c. Jan