Remove a program header

Peng Yu pengyu.ut@gmail.com
Sat Apr 24 01:49:33 GMT 2021


Hi,

It seems that there is not a readily available command to delete a
program header, other than writing a C program to adjust the program
headers following the one that is to be deleted.

https://stackoverflow.com/questions/5877492/how-do-i-delete-a-program-header-from-an-elf-binary

I also checked objcopy. It seems that it can only delete sections but
not program headers. Is it so?

Is there an easy-to-use command to delete a program header? Thanks.

-- 
Regards,
Peng


More information about the Binutils mailing list