From owner-freebsd-hackers Mon Feb 19 02:37:59 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA18534 for hackers-outgoing; Mon, 19 Feb 1996 02:37:59 -0800 (PST) Received: from hemi.com (hemi.com [204.132.158.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA18528 for ; Mon, 19 Feb 1996 02:37:56 -0800 (PST) Received: (from mbarkah@localhost) by hemi.com (8.6.12/8.6.12) id DAA08331 for hackers@freebsd.org; Mon, 19 Feb 1996 03:38:44 -0700 From: Ade Barkah Message-Id: <199602191038.DAA08331@hemi.com> Subject: omagic executables To: hackers@freebsd.org Date: Mon, 19 Feb 1996 03:38:44 -0700 (MST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk Hello, I'm wondering if it is possible to create and run an OMAGIC executable under FreeBSD 2.x. The goal is to create a self- modifying executable. My (lame) attempt to simply pass -Wl,-N to the linker gets me a `Wrong architecture' complaint when trying to run the program (`file' says it's a PDP-11 binary.) Any other hints on how to have a writable text segment (or simulating such behavior) is greatly appreciated. Thanks, -Ade -------------------------------------------------------------------- Inet: mbarkah@hemi.com - HEMISPHERE ONLINE - www: --------------------------------------------------------------------