delorie.com/archives/browse.cgi | search |
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?= <g DOT jedenastik AT gmail DOT com> |
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? |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |