objcopy - adding a section to the process image

Guilherme Destefani gd@helixbrasil.com.br
Fri Jan 30 20:07:00 GMT 2004


Hello.
I need help...
that's my sad story:

I'm using objcopy to add a section to a ELF file.

Everything went just fine using this command line:
./objcopy umount umount_copy --add-section .secname=secfile
--set-section-flags .secname=load,contents,data,readonly,alloc
--change-section-address .secfile=0x8053310 --verbose

And the section was added to the file (readelf), and the section header
table was updated just fine.

How do I update the program header table, to map that section on the
virtual memory of the process?

Thank's in advance,
-- 
Guilherme Destefani
Computer Engineer
Helix S.A.
gd _at_ helixbrasil _dot_ com _dot_ br
Brazil - Parana - Curitiba
(+5541) 362-1313




More information about the Binutils mailing list