objcopy Copy Unamed Section

Discussion in 'Computer Software and Operating Systems' started by gudenau, May 6, 2017.

  1. gudenau
    OP

    gudenau Largely ignored

    Member
    3,278
    1,250
    Jul 7, 2010
    United States
    /dev/random
    I need to be able to copy a section from an ELF file that doesn't have any names for the sections. This possess a problem because the MAN pages only talk about using names for the section. I require using an index for this, not a name.

    Any idea how I can do this?
     
  2. Fishaman P

    Fishaman P Speedrunner

    Member
    3,241
    507
    Jan 2, 2010
    United States
    Wisconsin
    Use a hex editor?
     
  3. gudenau
    OP

    gudenau Largely ignored

    Member
    3,278
    1,250
    Jul 7, 2010
    United States
    /dev/random
    That would become tedious and be super error prone. I would need to insert data and change pointers and maintain padding.