Removing sections from an ELF file

Glen M Cornell cornell at gdls.com
Fri May 10 15:17:38 UTC 2002


Scott Newell wrote:

>Has anyone seen a tool that will remove or strip a section from an ELF
>file?  I use a couple of data sections to represent battery backed ram, and
>I deal with initializing those sections in my own code.  I haven't been
>able to convince the linker to omit the sections, and I can't tell the
>downloader to ignore 'em...so, I'd like to remove them.  Any ideas?
>
>
>thanks,
>newell 
>

objcopy --remove-section




More information about the users mailing list