From: Riyad Parvez <riyad.parvez@uwaterloo.ca>
To: musl@lists.openwall.com
Subject: Making a shared library that intercepts call to main work with musl compiled binary
Date: Mon, 6 Jul 2015 13:00:52 -0400 [thread overview]
Message-ID: <CAJhBkVQRq7HSD1o76MgL79R1ce14buFMTp5WDn-Z+E4b-1qjDw@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2015-07-06 17:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 17:00 Riyad Parvez [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJhBkVQRq7HSD1o76MgL79R1ce14buFMTp5WDn-Z+E4b-1qjDw@mail.gmail.com \
--to=riyad.parvez@uwaterloo.ca \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).