[Top][All Lists]

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

Re: objcopy --add-section doubt

From: kartikeyan sadasivuni
Subject: Re: objcopy --add-section doubt
Date: Sat, 28 Jan 2006 15:39:18 +0530

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 the problem so that we can investigate further ?

 I tried with CVS version
These are the steps I followed.

system information

>uname -a
Linux lh 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686
i386 GNU/Linux

cvs -z 9 -d :pserver:address@hidden:/cvs/src login
 cvs -z 9 -d :pserver:address@hidden:/cvs/src co binutils
./make install

No problems in installation
ld -v output
GNU ld version 2.16.91 20060128

objcopy -V output
GNU objcopy 2.16.91 20060128
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

So the installation seems to be OK

Now reproducing the Bug(possibly as it is working under RH9)
copy the four attached files to  /tmp directory
now do
>sh a.sh

attachment description
filename      desc
-------------    ----------------
a                text file to be embedded in .skdata section of exectuable
a.c              C source file
a.lds            LD Script
a.sh             Script to compile and produce the binary

Working Under RH9 (Tested before posting)
Not working under FC4
Also Not working under bintutils from sourceware CVS version 2.16

objcopy: can't create section `.skdata': File in wrong format

If you need any more information please contact me.


Attachment: a
Description: Binary data

Attachment: a.c
Description: Text Data

Attachment: a.lds
Description: Binary data

Attachment: a.sh
Description: Bourne shell script

reply via email to

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