Link in two stages. First one is ld -r to pick out the objects you need. Second one uses a linker script to place the ld -r output where you want it. -- Alan Modra Australia Development Lab, IBM