This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: -O or -g on gcc linker frontend?


"Charles L. Farbstein" <charles.farbstein@L-3Com.com> writes:

> On Thu, 2006-06-22 at 11:37 -0700, Ian Lance Taylor wrote:

> > The -g and -O options are used only when generating .o files, and are
> > ignored when linking .o files.

> Isn't the -g option used by the linker to put the debug information into
> the executable image or in the shared object library?

No.

Ian


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