From: Ulf Samuelsson Date: Thu, 26 Oct 2006 09:06:37 +0200 Subject: [U-Boot-Users] [PATCH 1/6] AVR32: Use -g instead of -gstab s in AFLAGS_DEBUG References: <20061025194227.77D223535EE@atlas.denx.de> Message-ID: <01cb01c6f8d2$97a80770$6501a8c0@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Dear Ulf, > > in message 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