Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.wizards Subject: Re: Aliasing text and data segments of a process Message-ID: <7155@brl-smoke.ARPA> Date: 21 Jan 88 16:48:17 GMT References: <202@sdti.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <202@sdti.UUCP> mjy@sdti.UUCP (Michael J. Young) writes: >in which a program "compiles" a block of code into its data segment (created >via malloc() perhaps?) and then tries to execute it. In general, there is no support for doing this. Some specific implementations may have the necessary hooks, if the architecture permits it. There are several obvious alternative portable approaches to doing something of this general nature. Which to pursue would depend on what you're really trying to accomplish, functionally.