PR23611, objcopy is not removing executable relocatable sections

Alan Modra amodra@gmail.com
Tue Sep 11 10:49:00 GMT 2018


On Tue, Sep 11, 2018 at 01:20:54PM +0530, Umesh Kalappa wrote:
> >>>That's true.  I was going to apply a cleaned up version (attached) of
> Kamlesh's patch to make --remove-relocations remove all types of reloc
> section, but on reconsidering decided the existing behaviour was worth
> keeping despite needing to document it.
> 
> You mean Kamlesh patch is reverted back ?

I applied a different patch to fix the PR.  You can again use
objcopy --remove-section=.rela.dyn to remove .rela.dyn.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list