[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

objcopy --add-section doubt

From: kartikeyan (sent by Nabble.com)
Subject: objcopy --add-section doubt
Date: Thu, 26 Jan 2006 05:51:47 -0800 (PST)

With binutils that come with RH9 version binutils- (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- (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)

S          Kartikeyan

View this message in context: objcopy --add-section doubt
Sent from the Gnu - Binutils - Bugs forum at Nabble.com.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]