Question

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....

Était-ce utile?

La solution

Solved! The problem was that the sections was one after the other but not at the same segmant. One was in a W E segment and one was in a R W segmant. And thats why objcopy messed up.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top