Re: [PATCH bpf-next] libbpf: Per-symbol visibility for DSO

2018-10-16 Thread Alexei Starovoitov
On Mon, Oct 15, 2018 at 10:50:34PM -0700, Andrey Ignatov wrote: > Make global symbols in libbpf DSO hidden by default with > -fvisibility=hidden and export symbols that are part of ABI explicitly > with __attribute__((visibility("default"))). > > This is common practice that should prevent from

[PATCH bpf-next] libbpf: Per-symbol visibility for DSO

2018-10-15 Thread Andrey Ignatov
Make global symbols in libbpf DSO hidden by default with -fvisibility=hidden and export symbols that are part of ABI explicitly with __attribute__((visibility("default"))). This is common practice that should prevent from accidentally exporting a symbol, that is not supposed to be a part of ABI