[cvs-nhc98] patch applied (nhc98): Fixed ARCH confusion

Sven Panne sven.panne at aedion.de
Thu Mar 1 11:57:36 EST 2007


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.


More information about the Cvs-nhc98 mailing list