The hidden attribute allows functions to be hidden from the public ABI. Internal functions should not be part of symbols that are visible outside the library.
Suggested-by: Ricardo Salveti <ricardo.salv...@linaro.org> Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- platform/linux-generic/include/odp_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h index e33a49e..08624ae 100644 --- a/platform/linux-generic/include/odp_internal.h +++ b/platform/linux-generic/include/odp_internal.h @@ -22,6 +22,12 @@ extern "C" { #include <stdio.h> #include <sys/types.h> +#if defined(__GNUC__) +# define HIDDEN __attribute__((visibility("hidden"))) +#else +# define HIDDEN +#endif + extern __thread int __odp_errno; #define MAX_CPU_NUMBER 128 -- 2.1.4 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp