Announcement

Collapse
No announcement yet.

Can anyone manage to find an app...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can anyone manage to find an app...

    ...or a method by which to increase the file size of an ELF, whilst keeping the ELF's full functionality? ELFMaker seems to claim to have this ability, but it corrupts whatever ELF I modify, if file size is modified.

    I'd like to pad the file size out to a specific number of bytes...
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

  • #2
    change the elf size in the Elf header and possibly you might have to change the program header for the program section you are using depending on where you put it im not 100% sure about the program header but if its just to pad out the very end of an elf you might possibly be able to just modify the elf header

    Comment


    • #3
      I've attempted that, but every app I use to change the file size in the header either crashes itself, or corrupts the ELF so it's no longer executable. To be honest, I wanted to use your ElfModder, but setting headers throws an error, and the operation never completes (a 0-byte file with whatever name you specified for output ELF is created).

      Also, would successfully modifying the ELF's file size in the header actually modify the true size of the ELF?
      I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

      Comment


      • #4
        I've managed to find a solution that seems to work: take the number of bytes desired, subtract the original ELF filesize, create a dummy file with the remaining file size, and perform a hex concatenation of the two files, with the ELF first.
        I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

        Comment


        • #5
          sounds like what you're really doing is feeding it the correct file, but a different file size. All other space is ignored, because it's not in the header section.
          This reality is mine. Go hallucinate your own.

          Comment


          • #6
            Exactly. The ELF still thinks it's a certain file size, but in reality, it's increased.
            I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

            Comment

            Working...
            X