how to stop objcopy from padding sections

Posted by Jah on Stack Overflow See other posts from Stack Overflow or by Jah
Published on 2012-06-26T19:16:07Z Indexed on 2012/06/26 21:16 UTC
Read the original article Hit count: 265

Filed under:
|
|

I'm using objcopy on bash (ubuntu linux) and im trying to copy 2 sections from an ELF file using the folowing commend:

objcopy -j .section1 -j .section2

The problem is the objcopy is adding some padding between the sections. Is there a way (a flag?) that can stop objcopy from padding the sections?

the sections are placed one after the other in the file so there is no need for any kind of padding....

© Stack Overflow or respective owner

Related posts about linux

Related posts about bash