Remove -Wl,--retain-symbols-file from dynamic library linking to fix tool support
authoryieldthought <mark.oconnor@gmail.com>
Tue, 8 Oct 2013 14:37:17 +0000 (16:37 +0200)
committeryieldthought <mark.oconnor@gmail.com>
Tue, 8 Oct 2013 14:37:17 +0000 (16:37 +0200)
commitce5626a3841604bf2e9e29a7caf149695c3e3748
tree88d7fd4a6d17313be747b7e57e25f2dd5eb4f1d9
parent16eb780e13f00c75b55fa8c7b8a9278c62d123fb
Remove -Wl,--retain-symbols-file from dynamic library linking to fix tool support

The aim is to restrict the symbols exported from openBLAS, but for dynamic libraries --retain-symbols-file has the opposite effect intended. It removes symbols from the .symtab section of the library, which is used by tools such as debuggers, profilers, objdump etc. but does not remove them from .dynsym, which is the section used by the runtime when loading the binary.

In short, using --retain-symbols-file like this doesn't prevent symbol leakage but does prevent tools from analyzing applications linked with openBLAS.

This patch improves tool support for openBLAS applications but does not address symbol leakage through .dynsym.
exports/Makefile