From: utzoo!watmath!watcgl!dmmartindale Newsgroups: net.unix-wizards Title: Re: demand loading - (nf) Article-I.D.: watcgl.107 Posted: Mon Jan 10 10:04:16 1983 Received: Mon Jan 10 23:40:57 1983 References: uiucdcs.1303 Using the -T option of ld will relocate the code as if it started at some particular text origin other than zero, but if you execute an a.out containing such code it still gets loaded at location zero. One possible way around this would be to have a small piece of position-independent assembler code which copies the code from where it got loaded to the address that it expects to be executed from, and then jumps to it.