3.5. Using your own libraries

The ARM librarian, armar, enables sets of ELF object files to be collected together and maintained in libraries. Such a library can then be passed to armlink in place of several object files. However, linking with an object library file does not necessarily produce the same results as linking with all the object files collected into the object library file. This is because armlink processes the input list and libraries differently:

To create a new library called my_lib and add all the object files in the current directory, type:


armar -create my_lib *.o

To delete all objects from the library that have a name starting with sys_, type:


armar -d my_lib sys_*

To replace, or add, three objects in the library with the version located in the current directory, type:


armar -r my_lib obj1.o obj2.o obj3.o

For more information on armar, see the ADS Linker and Utilities Guide.

Note

The ARM libraries should not be modified. If you want to create a new implementation of a library function, place the new function in an object file or your own library. Include your object or library when you link the application. Your version of the function will be used instead of the standard library version.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0064D
Non-Confidential