
On 10/25/06, Wolfgang Denk wd@denx.de wrote:
In message 20061025144151.7039c0e5@cad-250-152.norway.atmel.com you wrote:
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.
2.15.94 is actually closer to 2.16 than 2.15...
If you look at the as.texinfo file tagged as binutils_2_15, the -g option is only documented for certain targets, e.g. Alpha and MIPS:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/doc/as.texinfo?rev=1.96&...
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.
Yes, "gcc -g" should always work. However, in Matthew's example, the command line also included "-Wa,-g", which injects the -g option directly into the command line for the assembler, and that seems to work only for 2.16 and later (or maybe not even that in case of ARM.)
I wonder if gcc will automatically pass the correct -g<whatever> option to gas when it's given the -g option? If that's the case, I suppose we could simply remove -Wa,-g and everyone will be happy...
Haavard