]> git.cworth.org Git - fips/commit
Fix to actually load the real libGL.so when the application asks for it.
authorCarl Worth <cworth@cworth.org>
Wed, 12 Jun 2013 23:22:06 +0000 (16:22 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 12 Jun 2013 23:28:03 +0000 (16:28 -0700)
commitad0f6ba12d81e4704ce2ba59795d9e1dd31098d7
tree753a60fb0dc74cb523ba5311b86ec10bd31cd06e
parent54157251d30d586e8f97fb594f22bf18e9ac4bbe
Fix to actually load the real libGL.so when the application asks for it.

Our wrapper library intercepts calls to dlopen "libGL.so" and returns
a handle to itself. That's correct, and as intended.

Before doing this, however, it's essential to actual dlopen "libGL.so"
for real even though we won't be returning a handle to it. This
ensures that any side effects from that dlopen are taken care of.

This fixes a bug where "fips apitrace replay foo.trace" would cause
Mesa to fail to load its driver as follows (with LIBGL_DEBUG=verbose):

libGL: OpenDriver: trying .../lib/dri/i965_dri.so
libGL error: dlopen .../lib/dri/i965_dri.so failed (.../lib/libdricore9.2.0.so.1: undefined symbol: _glapi_tls_Context)
dlwrap.c