Hi Daniel,
Yes - this is the heart of the matter. What is happening is that you
are attempting to add a section that already exists. The old (RH9)
binutils silently allowed this, which was incorrect.
Wait... why? There's no restriction in ELF about having multiple
sections with the same n
On Mon, Jan 30, 2006 at 01:13:32PM +, Nick Clifton wrote:
> Yes - this is the heart of the matter. What is happening is that you
> are attempting to add a section that already exists. The old (RH9)
> binutils silently allowed this, which was incorrect.
Wait... why? There's no restriction
Hi Kartikeyan,
Thanks for the test case. Using it I was able to reproduce the problem.
so NULL is being returned as newsect->name is not NULL
Yes - this is the heart of the matter. What is happening is that you
are attempting to add a section that already exists. The old (RH9)
binutils s
Hello Nick,
>
>
> Hmm, it should work with the newer version of binutils.
>
> Can you try using the latest binutils release (2.16) or, even better,
> the current binutils sources in the CVS repository ?
>
> If the problem still exists, please could you post a small example of
> how to reproduce th
Hi Kartikeyan,
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=
Everything works as expected
When I try with binutils version binutils-2.15.94.0.2.2-2 (FC4
> error
>
> objcopy: can't create section `.skdata': File in wrong format
>
> If you need any more information please contact me.
I attached gdb to the objcopy program in the src/binutils/objcopy program
(gdb) n
1131 if (newsect->name != NULL)
(gdb) list
1126 sh = secti
ess 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.
___
bug-b