Hello,
With binutils that come with RH9 version binutils-2.13.90.0.18-9 (rpm)
I am able to add any arbitary file(i am trying a text file) as a ELF section
eg:- objcopy --add-section .skdata=<somefile>
Everything works as expected
When I try with binutils version binutils-2.15.94.0.2.2-2 (FC4 rpm)
I get the following error (I am trying add a text file )
objcopy: can't create section `.skdata': File in wrong format
I saw somewhere that sometimes romfs file system image is added to a exectuable
in .romfs section using this idea.
I am trying a similar thing.
Is it a bug or strictness of new binutils
(ofcourse strictness in binutils doesn't make sense. I know what I doing with my binary)