[Top][All Lists]

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

Re: [avr-libc-dev] getting a short interrupt vector table

From: Georg-Johann Lay
Subject: Re: [avr-libc-dev] getting a short interrupt vector table
Date: Mon, 06 Feb 2012 11:09:59 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Bill Westfield schrieb:
In the case where a size-limited program is only using one interrupt
(this is "usbtiny" on an ATtiny2313, and avr-gcc 4.3.2), is there a
good way to get an "abbreviated" vector table instead of having
vectors for everything?

Jörg, would it help to make ./crt1/gcrt1.S:__vectors weak so that
user can provide his own vector table?

With 1.7.1 an error will occur if one tries to:

main.o: In function `__vectors':
main.c:(.vectors+0x0): multiple definition of `__vectors'
./bin/../lib/gcc/avr/4.7.0/../../../../avr/lib/avr5/crtm168.o:../../../../../../source/avr-libc-1.7.1/crt1/gcrt1.S:52: first defined here ./bin/../lib/gcc/avr/4.7.0/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
collect2.exe: error: ld returned 1 exit status


reply via email to

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