Subject: Questions about linker scripts in /usr/share/ldscripts
To: port-arm32@netbsd.org <port-arm32@netbsd.org>
From: Paul Becke <pbecke@javagear.com>
List: port-arm32
Date: 05/19/2000 08:10:19
I have been trying to cross compile code for an arm processor on an
i386netbsd platform.  The linker seems to need a set of scripts such as
armnbsd.x, armnbsd.xr, armnbsd.xbn, armnbsd.xu and armnbsd.xn.  There
are similar scripts in the /usr/share/ldscripts directory.  My questions
are:
What is the significance of the different extensions .x , .xr, .xbn,
.xu, .xn?
How does the linker know about these files?
How does gcc pass information on to the linker so that it chooses one of
the files and not another?
Are parameters passed by some environment variable?

Thanks
Paul