[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Unused functions linked?
From: |
Tvrtko A. Ursulin |
Subject: |
Re: [avr-gcc-list] Unused functions linked? |
Date: |
Wed, 15 Jan 2003 09:07:05 +0100 |
User-agent: |
KMail/1.4.3 |
> > I thought that someone said that one can solve this but putting them
> > in separate object file. I did that so I have two functions in a
> > separate object file. Both are left unused, but linker includes them
> > nevertheless..
>
> Than you might have other references in that file. Normally, that's
> the way to go. Oh, maybe we're talking about different things...
> Read what i wrote above: /all/ .o files on the command-line will
> /always/ be included into the resulting ELF file. Maybe that's your
> problem? The automatic lookup will only work for library (.a) files.
Thank you Joerg for a very detailed explanation!
The later was the solution for me. I was indeed linking many small .o files.
Now I am combining them with avr-ar into .a archive, and linking with it.
And it works as suggested.
avr-gcc-list at http://avr1.org