[Top][All Lists]

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

Re: [avr-libc-dev] Suggestion for FAQ entry - LD vs. GCC

From: Onno Kortmann
Subject: Re: [avr-libc-dev] Suggestion for FAQ entry - LD vs. GCC
Date: Wed, 30 Mar 2005 00:12:11 +0200
User-agent: KMail/1.7.1

> I don't mind the FAQ entry for it, but be warned: this is equally
> wrong under any kind of Unix as well.  The official frontend to link
> your job is the standard compiler driver for your language (cc, or
> c++), *not* ld directly.  If you call ld directly, you're supposed to
> know what you're doing.  (E.g. in some C++ compilers, you might miss
> to include the code for global constructors/destructors, perhaps even
> without getting any kind of warning.)
> [...]
> If this works on Linux, it is merely incidentally than anything you
> could/should rely on.
AFAIR, I had no problems so far with c++ and global constructors on x86 
(cross-mingw and linux) - the usual platforms I have contact with ;)

But if that's the way it is supposed to work, consider my post non-existant - 
at least, I learned a bit about the role of the frontend as the linker :)

Thanks for all the replies!


reply via email to

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