Re: Problem linking *without* avr-libc, libm, etc.
Ian Molton <[email protected]> Fri, 30 Apr 2021 18:29:14 +0100
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Message-ID | <[email protected]> |
On 30/04/2021 10:52, [email protected] wrote: > > Still dabbling a little with AVR once in a while, I add -nostartfiles to > Ian's -nostdlib, to avoid startup code. Aha, yes, that one went astray during my attempt to debug this :) As my most recent dabble is > -mmcu=attiny2313, with only 1k instructions, any extraneous code bytes > would quickly be noticed. Indeed so! > And for libgcc, my makefile remembers better than I, a choice to use > avr-gcc, not just avr-ld for linking on a project which needed libgcc. > That residual choice in the attiny2313 project confirms David's reminder > that stuff is only linked if you use it. * if its present on the system :) I've solved it anyhow - see my other post :) Thanks, -Ian