GNU's ar lets you make and do stuff with archives.
It's commonly used to bundle functions into a static library with ar -rcs libcool.a func1.o func2.o. This will insert ® the func1.o and func2.o objects into the newly created © libcool.a static library along with an index (s). Then you can link it along with your program as normal.