To specify user libraries:
Include them with path information explicitly in the input file list.
--userlibpathoption to the armlink command line with a comma-separated list of directories, and then specify the names of the libraries as input files.
You can use the
to specify static libraries,
If you do not specify a full path name to a library on the
command line, the linker tries to locate the library in the directories
specified by the
--userlibpath option. For example,
if the directory
/mylib/my_lib.a to the input file list
with the command:
armlink --userlibpath /mylib my_lib.a *.o
If you add a particular member from a library this does not
add the library to the list of searchable libraries used by the
linker. To load a specific member and add the
library to the list of searchable libraries include the library
its own as well as specifying
For example, to load
strcmp.o and place
the searchable library list add the following to the input file
Any search paths used for the ARM standard libraries specified
by the linker command-line option
not searched for user libraries.