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

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

Re: Problem linking *without* avr-libc, libm, etc.


From: Ian Molton
Subject: Re: Problem linking *without* avr-libc, libm, etc.
Date: Fri, 30 Apr 2021 18:29:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 30/04/2021 10:52, dvalin@internode.on.net 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



reply via email to

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