You can't do anything in the linker. It's too late, since "hello" is a final linked executable. You may be able to play some tricks in the dynamic linker, assuming "hello" is dynamically linked. Investigate LD_PRELOAD. -- Alan Modra IBM OzLabs - Linux Technology Centre