[Mesa-dev] [PATCH v2] gallium makefiles: use a linker script for building dri drivers

Maarten Lankhorst maarten.lankhorst at canonical.com
Wed Feb 12 00:54:44 PST 2014


op 12-02-14 08:27, Christian König schreef:
> Am 12.02.2014 03:50, schrieb Michel Dänzer:
>> On Die, 2014-02-11 at 17:28 +0100, Maarten Lankhorst wrote:
>>> Only export __driDriverExtensions by default, and
>>> radeon_drm_winsys_create on radeons.
>>> Remove -Bsymbolic which should no longer be needed.
>> Is there any particular reason for removing -Bsymbolic though? Whenever
>> it was accidentally dropped somewhere previously, that seems to have
>> caused subtle problems.
>
> "-Bsymbolic" changes the priority on how symbols in the local DSO are resolved and that creates problems with for example NV_vdpau_interop.
>
> We should rather use an linker script that let us export only the absolutely needed symbols and resolve everything else locally.
Because now only __driDriverExtensions and radeon_drm_winsys_create are exported -Bsymbolic is no longer needed.
Any calls to radeon_drm_winsys_create have to be overridable, else vdpau interop will not work correctly.

~Maarten


More information about the mesa-dev mailing list