Combining object files
From Attie's Wiki
First build some objects
gcc a.c -c -o a.o gcc b.c -c -o b.o
Now, if you wanted to combine these into a single object file, do this:
ld -r a.o b.o -o ab.o
This is used by many large projects, including the Linux kernel & u-boot.