targets/omx: use version script to limit amount of exported symbols
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 4 Apr 2014 22:53:13 +0000 (23:53 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 2 May 2014 20:48:26 +0000 (21:48 +0100)
Using export-symbols-regex is the least desirable method of restricting
the exported symbols, as is completely messes up with the symbol table.

radeon_drm_winsys_create is not needed, avoid exporting it.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/Automake.inc
src/gallium/targets/omx.sym [new file with mode: 0644]
src/gallium/targets/r600/omx/Makefile.am
src/gallium/targets/radeonsi/omx/Makefile.am

index feed5c32cb00568b9a7bfb7494690b67e08b2450..5263b7ae22adfc2c707234bd05c2b9396469ce45 100644 (file)
@@ -81,7 +81,7 @@ GALLIUM_OMX_LINKER_FLAGS = \
        -shared \
        -module \
        -no-undefined \
-       -export-symbols-regex $(EXPORTS) \
+       -Wl,--version-script=$(top_srcdir)/src/gallium/targets/omx.sym \
        $(GC_SECTIONS) \
        $(LD_NO_UNDEFINED)
 
diff --git a/src/gallium/targets/omx.sym b/src/gallium/targets/omx.sym
new file mode 100644 (file)
index 0000000..af22aed
--- /dev/null
@@ -0,0 +1,6 @@
+{
+       global:
+               omx_component_library_Setup;
+       local:
+               *;
+};
index 2168db895ea1c44b51f828dc184fbeed8149aeb8..62e39705fa695f0465e51e0fefc62a95bec2f3f1 100644 (file)
@@ -20,8 +20,6 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
-EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$'
-
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
index 3c3790988bb1d778c070ef8a794e3f3766dc22ec..859659e043503e4f94084a8b79b5efb0e856d2f9 100644 (file)
@@ -20,8 +20,6 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
-EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$'
-
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \