X-Spam-Check-By: sourceware.org Message-ID: <46B02E5F.3080408@gmail.com> Date: Wed, 01 Aug 2007 08:55:27 +0200 From: =?ISO-8859-15?Q?G=FCnther_Jedenastik?= User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: is LD_PRELOAD available in cygwin? Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com hiho AT ll using google i found only a few post's about LD_PRELOAD in cygwin concerning patches. Now i'm not sure if the linux-like LD_PRELOAD feature is available in cygwin. What i try to do: using g++ to compile a dll which overload's the open(); glibc system call. Using preload i want to load my own dll with my open(); function. using dlsym(); i try to load the glibc open(); function. On a suse box it works great, but cygwin seems to ignore LD_PRELOAD. the commands i use: g++ -g -c -Wall test.cpp g++ -shared -o libtest.dll test.o -ldl LD_PRELOAD=./libtest.dll somecommandwhichusesopensyscall Q1: is LD_PRELOAD available in cygwin? if yes, any hint's why it's not working? (maybe some configuration problem or so, any hint would be helpfull) Q2: are there any alternative ways to preloading causing the same result? thx AT ll -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/