[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "reloca
[avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause "relocation truncated to fit: R_AVR_13_PCREL" linker error
Sun, 19 Feb 2012 06:12:05 +0000
Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20110328 Firefox/4.0.1
Follow-up Comment #10, bug #33698 (project avr-libc):
The math library is not designed to use float routines from
libgcc. The float routines of libm are extended in comparison
to standart ones. For example, the 40-bit float and bit T are widely used
Normaly, the libm resolves all links internaly. The usage of
libgcc from libm is error. Alas, there is no checking of this.
Sometimes the 'relocation truncuted to fit' is such protection :-).
If linking is classic (libm is first), explicit use of
RJMP/RCALL is OK, as libm is small. In practice, this works.
The problems are C++ and usage float operations in libc (float
printing and scanning).
I will think how to untangle this ball. Not quickly.
Reply to this item at:
Message sent via/by Savannah