This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strip only symbols coming from myfile.o file


Hi Fabio,

I need strip, from myfile.exe file, ONLY debug symbols coming from a
specified object file (file.o).

The way to do this is to strip file.o *before* it is linked into the myfile.exe executable. ie:


  gcc -c -f file.c
  strip -g file.o
  gcc file.o <other object files> -o myfile.exe

Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]