Re: objcopy --add-section doubt

2006-02-01 Thread Nick Clifton
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

Re: objcopy --add-section doubt

2006-01-31 Thread Daniel Jacobowitz
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

Re: objcopy --add-section doubt

2006-01-30 Thread Nick Clifton
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

Re: objcopy --add-section doubt

2006-01-29 Thread kartikeyan sadasivuni
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

Re: objcopy --add-section doubt

2006-01-28 Thread Nick Clifton
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

Re: objcopy --add-section doubt

2006-01-28 Thread kartikeyan sadasivuni
> 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

objcopy --add-section doubt

2006-01-26 Thread kartikeyan (sent by Nabble.com)
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