Objcopy add-section, remove-section is not a reversible operation.

Alan Modra amodra@gmail.com
Fri May 12 10:45:38 GMT 2023


On Fri, May 12, 2023 at 09:47:10AM +0000, Abhishek Sansanwal via Binutils wrote:
> Hi All,
> 
> We were experimenting with objcopy when we discovered what could be a bug.
> On some files we have observed that adding section and subsequently removing same section is not reversible.

Even the simplest "objcopy x y" is not guaranteed to result in the
same as "cp x y", so you shouldn't expect anything to be reversible.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list