On Thursday 01 March 2007 17:15, Malcolm Wallace wrote:
> Since $LD is already defined to equal $CC, I'm thinking to replace
> ld -r ...
> with
> $LD -Wl,-r ...
I've just experimented a bit, but only with partial success: When gcc is
called with the -m32 option, it passes the correct emulation option to the
linker, so this part works. What doesn't work: gcc is not aware that we only
want to do a partial linking, despite of the -Wl,r option, and tries to link
things like -lc, -lgcc, ... :-(
Is this partial linking really necessary? Or can the driver script be adapted
to handle 2 .o files explicitly when dealing with *.gc files? This might be a
cleaner solution.
Cheers,
S.
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|