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

Ulf Samuelsson ulf at atmel.com
Thu Oct 26 09:06:37 CEST 2006


> Dear Ulf,
> 
> in message <crmSxxCQKzD6.801NTpXz at mailout.dof.se> you wrote:
>> 
>> >I'm not sure. Which sort of problems was this exactly? >Whic boards  /
>> platforms, and which toolchains?
>> 
>> Crosstool-0.42 
>> generic-arm
>> gcc-3.4.6-softfloat
>> binutils 2.16.1
>> glibc-2.3.5
>> (IIRC)
>> 
>> Refused to compile when
>> -gstabs was changed to -g
> 
> Can this toolchain compile any source file using somthing like this:
> 
> ${CROSS_COMPILE}gcc -g -c foo.c
> 
> ?

Yes, it is only when the gcc driver calls the assembler that the AFLAGS gets used
and the arm assembler apparently requires that you qualify "-g" with "stabs"  .

Maybe a better idea for patch is to override "stabs" 

pseudo code:

if   ! defined(DEBUG_FORMAT)
DEBUG_FORMAT=stabs
end if

AFLAGS="-w,g$(DEBUG_FORMAT)"



> If this is the same problem as previously reported by Matthew, I tend
> to blame it on the toolchain...
> 


Best Regards
Ulf Samuelsson





More information about the U-Boot mailing list