On Fri, 30 Mar 2001, David Douthitt wrote:

> What is the difference between:
> 
> gcc -s        ...stripping a binary, yes?

yes

> gcc -g        ...adding debugging symbols, yes?

debugging symbols means source code line number information

> strip         ...removing debugging symbols, yes?

... and symbols for addresses in the obj that may not be associated with
source code line numbers

> 
> I had always thought "gcc -s" and "strip" were synonymous; just having
> compiled tftp it didn't appear to be - at least I don't think so.  The
> compile had the -s option but file labeled the results as
> "non-stripped."

I am not sure... strip manpage says they are "similar"

I tried a sample program, and found no difference in the result, but I am
not intimately familiar with strip, so it might be related to a feature of
the source code that I did not use.

> What gives?  Also, what's the difference between no options and -g? 

information about line number positions in the source code

> After all, what gets stripped if -g isn't used?

relation between addresses and symbols. That is, if you are looking at a
memory dump of the executable, what is the name of these locations that
the code loads data from or jumps to?

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
Work:<[EMAIL PROTECTED]>              Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------


_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to