mesa: Use -Bsymbolic in the linker to locally resolve Mesa-internal symbols.
authorEric Anholt <eric@anholt.net>
Fri, 20 Sep 2013 19:37:04 +0000 (12:37 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Sep 2013 19:45:22 +0000 (12:45 -0700)
commit11e494a572ce81a57c05fbe4214dd36b1c8ac4cf
tree25f35087c0d870944982adc57401d67663a7948c
parent10ef949424809d51c627008bb2feab5a067f8e08
mesa: Use -Bsymbolic in the linker to locally resolve Mesa-internal symbols.

Normally, LD_PRELOAD will take precedence over your own symbols, which you
want for things like malloc() in libc.  But we don't have any local
symbols we would want overridden (like hash_table_insert(), for example!),
so tell the linker to resolve them internally.  This also avoids calls
through the PLT.

Saves almost 100k on libdricore's size, and gets us a bunch of the
performance back that we had with non-dricore.

Reviewed-by: Ian Romanick <ian.d.romanick@.intel.com>
configure.ac
src/mesa/drivers/dri/i915/Makefile.am
src/mesa/drivers/dri/i965/Makefile.am
src/mesa/drivers/dri/nouveau/Makefile.am
src/mesa/drivers/dri/r200/Makefile.am
src/mesa/drivers/dri/radeon/Makefile.am
src/mesa/drivers/dri/swrast/Makefile.am
src/mesa/libdricore/Makefile.am