[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with partial linking
From: |
Paul Pluzhnikov |
Subject: |
Re: Problem with partial linking |
Date: |
Mon, 22 Jan 2007 10:39:11 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
philipp.von.hartrott@iwm.fraunhofer.de writes:
> If I use ld directly it works fine:
> $ ld -r -o rebla.o bla.o
This is about the only case when you *should* use 'ld' directly.
> Why is the relinking through g++ failing?
Because g++ is not aware that you are doing partial link -- it
doesn't examine -Wl,... args, it just passes them on to the linker.
So, as far as g++ can tell, you are doing *regular* link, and so
it adds startup objects and support libraries (neither of which
you actually want in that link).
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.