Date: Fri, 4 Aug 2000 10:46:46 +0200 (CEST) From: Mikko Tyolajarvi <mikko@dynas.se> To: kpielorz@tdx.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: LD_PRELOAD odities / Documentation? Message-ID: <200008040846.KAA31739@m2.dynas.se> References: <39894897.79E14398@tdx.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd-hackers you write: >Hi All, >I'm working on some code that runs fine on Linux, but not under FreeBSD... >Trying to port the code is proving to be a pain... >The code is a 'wrapper' / 'shim' that's meant to be LD_PRELOAD'ed before an >executable... I've gotten everything to compile, and the LD_PRELOAD works, but >a lot of syscall's from the wrapper library fail either with bizare messages >such as "malloc(): recursive call", or just die horibly (segmentation faults, >and all sorts). [...] >Any pointers would be greatefuly received, unfortunately this all works under >Linux (I'm not bashing anyone on the head with that, I'm far more interested >in getting it working under FreeBSD)... It used to work -- and still does on -STABLE at least. The only problem I've encountered was when the preloaded lib did not contain a dependency for libc. After adding "-lc" to the link command, things started working. $.02, /Mikko -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008040846.KAA31739>