GNOME Bugzilla – Bug 689456
build: Use -Bsymbolic-functions by default if available
Last modified: 2015-02-07 16:48:49 UTC
While we have much larger performance problems right now, using -Bsymbolic-functions to avoid internal PLT indirection is an easy win. This is the same code that both GLib and GTK+ have.
Created attachment 230407 [details] [review] build: Use -Bsymbolic-functions by default if available
Review of attachment 230407 [details] [review]: Why not just "-Bsymbolic", to make it work for all symbols?
(In reply to comment #2) > Review of attachment 230407 [details] [review]: > > Why not just "-Bsymbolic", to make it work for all symbols? Well, it doesn't matter for g-i because we don't have any global variables. As I understand it though, it was not a compatible change for GLib to use -Bsymbolic because then GLib itself would see a different copy of global variables as compared to the application. See e.g. http://www.openwall.com/lists/musl/2012/08/18/8 It's more valuable to match the rest of the stack (currently, glib, pango, gtk+) than it is to be theoretically better here.
Review of attachment 230407 [details] [review]: OK then.
Attachment 230407 [details] pushed as 68a4a3e - build: Use -Bsymbolic-functions by default if available
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]