[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in avr-ld when using templates and generating a map file
From: |
Lars Hamren |
Subject: |
Bug in avr-ld when using templates and generating a map file |
Date: |
Fri, 16 Jul 2004 21:12:25 +0200 |
--text follows this line--
avr-gcc -mmcu=atmega128 uart2.cc -o uart2.bin
but crashes avr-ld when a link map is requested.
avr-gcc -mmcu=atmega128 -Wl,-Map,uart2.map uart2.cc -o uart2.bin
Regards
/Lars
--------------------
struct UartRegs {
char BAUDRATE;
} uart0regs = { 12 };
template<UartRegs ®s>
class Uart {
public:
Uart() {};
};
Uart<uart0regs> uart0;
int main() { return 0; }
--------------------
$ avr-gcc -v
Reading specs from
/disks/hda5/lfs/usr-local/prog/avr-20040620/bin/../lib/gcc/avr/3.4.0/specs
Configured with: /usr/local/src/gcc-3.4.0/configure
--prefix=/usr/local/prog/avr-20040620 --program-prefix=avr- --target=avr :
(reconfigured) ../gcc-3.4.0/configure --prefix=/usr/local/prog/avr-20040620/
--program-prefix=avr- --enable-languages=c,c++ -target=avr
Thread model: single
gcc version 3.4.0
$ avr-ld -v
GNU ld version 2.15
-------------------------------------------------------------------
Lars Hamrén Tel...: +46(46)189090
Svensk Datorutveckling e-post: address@hidden
Vadmöllan 211 WWW...: www.sdu.se
S-225 94 Lund
Sweden
- Bug in avr-ld when using templates and generating a map file,
Lars Hamren <=