From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: SIGILL when dynamic linking without -Wl,-Bsymbolic-functions
Date: Mon, 28 May 2012 09:10:19 -0400 [thread overview]
Message-ID: <20120528131019.GG163@brightrain.aerifal.cx> (raw)
In-Reply-To: <20120527215256.508af780@newbook>
On Sun, May 27, 2012 at 09:52:56PM -0700, Isaac Dunham wrote:
> When -Wl,-Bsymbolic-functions is disabled in the makefile, musl
> cannot be used for dynamic linking.
> However, the -Bsymbolic-functions option was added in binutils 2.17.50
> (a CVS/git version, not a release); this was apparently just prior to
> the license switch.
>
> As a result, it will be impossible to use Aboriginal Linux packages to
> generate a version capable of dynamic linking.
>
> I'm pretty sure this used to work...but I don't remember when I tested
> it last. I think it was somewhere around 0.8.1-0.8.5.
It's always been this way. In principle -fvisibility=protected should
be able to do the same thing on earlier GCC's, but it doesn't work
right. You could also try -fPIE instead of -fPIC; that might work. As
a last resort, -Bsymbolic will work, but it will do too much and will
break any applications that access global vars in libc (like optarg,
environ, etc.).
I thought Rob said he was going to patch -Bsymbolic-functions into his
binutils, but I guess he never did...
Rich
next prev parent reply other threads:[~2012-05-28 13:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 4:52 Isaac Dunham
2012-05-28 8:10 ` Szabolcs Nagy
2012-05-28 13:10 ` Rich Felker [this message]
2012-05-29 6:03 ` Isaac Dunham
2012-05-29 7:04 ` Szabolcs Nagy
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=20120528131019.GG163@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--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).