@Riker : Please re‑read the question, that reference does no longer exists.
@flawr : maybe but if I ask it again, it would get closed as the question I asked. And I definitely fail to find what is the problem now since the edit.
Compress the ELF header, throw in a while(os.clock()<NEXTBIGGESTANSWER)
Actually, you've removed that limit too, so you can just do while(os.clock()<9^9^9^9^9^9^9), which provable terminates and produces an unimaginably huge file.
@Pavel : I fail to see in your example what tell it is the.textsection you’re currently filling. And isn’t .text sections supposed to have a declared size inside the elf headers ?
Your challenge is to create the shortest code in your language of choice or the tools of your choice (like objcopy) that will create an elf with a the executable section as large as possible.
I mean that if I extract the.text section of the elf binary, the resulting extracted file should be at le...
@Pavel : for that same reason, you can’t create an elf file larger than 4Gb in the case of arm in my question. Because the integer telling the.textfile is 4 byte long.