This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/16585] dlsym() shouldn't be declared as leaf
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 14 Feb 2014 16:34:08 +0000
- Subject: [Bug dynamic-link/16585] dlsym() shouldn't be declared as leaf
- Auto-submitted: auto-generated
- References: <bug-16585-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16585
Jakub Jelinek <jakub at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at redhat dot com
--- Comment #4 from Jakub Jelinek <jakub at redhat dot com> ---
How would that help? For malloc wrappers like this, you would have to not use
leaf attribute for any functin that might call malloc, that is obviously
undesirable. Just use volatile or put your malloc wrapper with all the related
variables into another translation unit and don't inspect it directly, just
through calls or similar. Of course for LTO then you really have to just mark
it volatile.
--
You are receiving this mail because:
You are on the CC list for the bug.