mailing list of musl libc
 help / color / mirror / code / Atom feed
* Making a shared library that intercepts call to main work with musl compiled binary
@ 2015-07-06 17:00 Riyad Parvez
  2015-07-06 17:32 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Riyad Parvez @ 2015-07-06 17:00 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

Hi All,

I've shared library [1] which intercepts loading of a binary and does some
pre-processing with the command-line arguments via "LD_PRELOAD" technique.
The shared library works fine with glibc compiled binary i.e., it can
intercept the call to main and does some preprocessing. But it can't
intercept call to "main" in musl-compiled binary. I've compiled my binary
in static mode with musl "CC=/musl-gcc -static". How can I make the shared
library work with musl-compiled binary?

Thanks
Riyad

[1]: https://github.com/dslab-epfl/s2e/blob/master/guest/init_env/init_env.c

[-- Attachment #2: Type: text/html, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-06 20:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 17:00 Making a shared library that intercepts call to main work with musl compiled binary Riyad Parvez
2015-07-06 17:32 ` Rich Felker
2015-07-06 19:00   ` Alexander Monakov
2015-07-06 19:06     ` Rich Felker
2015-07-06 20:34       ` Alexander Monakov

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).