[U-Boot-Users] [PATCH 1/6] AVR32: Use -g instead of -gstabs in AFLAGS_DEBUG

Wolfgang Denk wd at denx.de
Wed Oct 25 21:58:02 CEST 2006


In message <20061025144151.7039c0e5 at cad-250-152.norway.atmel.com> you wrote:
>
> Matthew McClintock <msm at freescale.com> wrote:
> 
> > Commit 2da2d9a4766063b9848f3a35ad6025499cf87265 is causing build
> > problems when building the latest MPC8540ADS with the follow tools
> > installed:
...
> Right. The 2.15 documentation doesn't seem to mention the -g option,
> only -g<debug format>.

Ummm...

This file is a user guide to the GNU assembler `as' version
2.15.94.0.2.2.
...
1 Overview
**********

Here is a brief summary of how to invoke `as'.  For details, *note
Command-Line Options: Invoking.

     as [-a[cdhlns][=FILE]] [-alternate] [-D]
      [-defsym SYM=VAL] [-f] [-g] [-gstabs] [-gstabs+]
      [-gdwarf-2] [-help] [-I DIR] [-J] [-K] [-L]
...
`-g'
`--gen-debug'
     Generate debugging information for each assembler source line
     using whichever debug format is preferred by the target.  This
     currently means either STABS, ECOFF or DWARF2.

Am I missing something?

> Wolfgang, please consider applying the patch below to fix this problem.

I do, but I'd like to understand the problem first. Matthew's example
looked to me as if the gcc driver was calling "as" as a result  of  a
"gcc -g" command, and this should IMHO always work.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The C-shell doesn't parse. It adhoculates.
    - Casper.Dik at Holland.Sun.COM in <3ol96k$b2j at engnews2.Eng.Sun.COM>




More information about the U-Boot mailing list