avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] avr-ld: Do linker stubs need --relax?


From: Georg-Johann Lay
Subject: [avr-gcc-list] avr-ld: Do linker stubs need --relax?
Date: Fri, 04 May 2012 17:44:02 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100302)

Jörg Wunsch wrote in [1]:

>> The most important thing about using more than 128 KiB of flash is
>> to not forget about the -mrelax compiler (linker) option.

The question "Is using linker stubs supported without --relax at all?" came up
recently, namely in

http://sourceware.org/PR14058#c4

AFAIR correct handling/generation of stubs needs --relax, but I cannot find
it documented in binutils nor together with -mrelax documentation in avr-gcc.
There is just a hint in AVR-LibC docs, far away from -mrelax and --relax.

As far as I understand you:

1) --relax is needed for linker to operate correctly
with stubs resp. gs expression modifier.

2) Binutils PR14058 and perhaps also PR13812 should be classified as "invalid".

3) Binutils documentstion should document that implication.

4) The avr-gcc documentation should document that implication, e.g. together
with -mrelax and EIND policies.

Johann


[1]
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=877735#877735



reply via email to

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