This is the mail archive of the
mailing list for the GCC project.
objcopy copies not only symbols asked?
- From: "Gyurki, Istvan (MED)" <Istvan dot Gyurki at med dot ge dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 24 Feb 2003 13:41:42 +0100
- Subject: objcopy copies not only symbols asked?
I have a .o file about 1 meg size. I'd like to extract only one symbol from
objcopy --strip-all -K symbolname from.o to.o
objcopy does the job, however the new file containing only one symbol wil be
I do not think that the symbol takes up that much space, so for me it seems
that objcopy only removes symbol reference, but does not actually eliminate
My question is; is there a way to create .o file containing only the
required symbol, and not more?
Thanks in advance,