linux - how to stop objcopy from padding sections -
i'm using objcopy on bash (ubuntu linux) , im trying copy 2 sections elf file using folowing commend:
objcopy -j .section1 -j .section2
the problem objcopy adding padding between sections. there way (a flag?) can stop objcopy padding sections?
the sections placed 1 after other in file there no need kind of padding....
solved! problem sections 1 after other not @ same segmant. 1 in w e segment , 1 in r w segmant. , thats why objcopy messed up.
Comments
Post a Comment