simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] asm and --gstabs


From: reinhard . jessich
Subject: Re: [Simulavr-devel] asm and --gstabs
Date: Sun, 6 Jan 2002 21:11:06 +0100

On Fri, 04 Jan 2002, Theodore A. Roth wrote:
<snip>

> How do tell the link not to link to a crt file and only build the rom 
> image with symbol table relocated? I think I've seen this question posed 
> on the avr-gcc-list, but have never seen an answer.
I have tried to use the -nostartfiles and -nostdlib option and it does exactly
what you want.

I have tried this command:
/usr/local/cross-tools/bin/avr-gcc -v -x assembler-with-cpp
-nostartfiles   -nostdlib -o test_blink test_blink.asm

And got this output:
Reading specs from /usr/local/cross-tools/lib/gcc-lib/avr/3.0.2/specs
Configured with: /opt/avr/gcc/source/gcc-3.0.2/configure -v --target=avr
--prefix=/usr/local/cross-tools --with-gnu-ld --with-gnu-as --disable-nls
Thread model: single
gcc version 3.0.2
 /usr/local/cross-tools/lib/gcc-lib/avr/3.0.2/cpp0 -lang-asm -v -D__GNUC__=3
-D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -DAVR
-D__AVR__ -D__AVR -D__NO_INLINE__ -D__STDC_HOSTED__=1
-D__AVR_ARCH__=2 -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int
-D__INT_MAX__=32767 test_blink.asm -o /tmp/cc6L1nnc.s GNU CPP version 3.0.2
(cpplib) (GNU assembler syntax) ignoring nonexistent directory
"/usr/local/cross-tools/avr/sys-include"
#include "..." search starts here:
#include <...> search starts here: 
/usr/local/cross-tools/lib/gcc-lib/avr/3.0.2/include 
/usr/local/cross-tools/avr/include End of search list. 
/usr/local/cross-tools/lib/gcc-lib/avr/3.0.2/../../../../avr/bin/as -o
/tmp/ccW0a68d.o /tmp/cc6L1nnc.s 
/usr/local/cross-tools/lib/gcc-lib/avr/3.0.2/../../../../avr/bin/ld -m avr85xx
-o xxx -L/usr/local/cross-tools/lib/gcc-lib/avr/3.0.2
-L/usr/local/cross-tools/lib/gcc-lib/avr/3.0.2/../../../../avr/lib
/tmp/ccW0a68d.o

If you don't like the -L's and the -D's, you have to call avr-as and avr-ld
directly.

Reinhard

-- 
 Ing. Reinhard Jessich              mailto: address@hidden
 A-1190 Vienna, Goergengasse 2/2/1  phone: +43/1/3692600
 http://members.telering.at/jessich mobile: +43/664/1735439



reply via email to

[Prev in Thread] Current Thread [Next in Thread]