From owner-freebsd-hackers Thu Nov 29 23:41:44 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from warez.scriptkiddie.org (uswest-dsl-142-38.cortland.com [209.162.142.38]) by hub.freebsd.org (Postfix) with ESMTP id 0BAA837B41C for ; Thu, 29 Nov 2001 23:41:43 -0800 (PST) Received: from [192.168.69.11] (unknown [192.168.69.11]) by warez.scriptkiddie.org (Postfix) with ESMTP id 9D72362D01 for ; Thu, 29 Nov 2001 23:41:42 -0800 (PST) Date: Thu, 29 Nov 2001 23:41:58 -0800 (PST) From: Lamont Granquist To: Subject: detecting linux emulation in rtld.c? In-Reply-To: <20011130012603.F46769@elvis.mu.org> Message-ID: <20011129233851.H40312-100000@coredump.scriptkiddie.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG can anyone suggest a method of determining inside libexec/rtld-elf/rtld.c if a binary being run is native or linux emulation? i'd like to be able to write code which basically does: if (IsNativeCode()) PreloadSomeLibraries() any suggestions? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message