kernel_optimize_test/tools
Andrey Ignatov ab9e084821 libbpf: Per-symbol visibility for DSO
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 what, in turn,
improves both libbpf developer- and user-experiences. See [1] for more
details.

Export control becomes more important since more and more projects use
libbpf.

The patch doesn't export a bunch of netlink related functions since as
agreed in [2] they'll be reworked. That doesn't break bpftool since
bpftool links libbpf statically.

[1] https://www.akkadia.org/drepper/dsohowto.pdf (2.2 Export Control)
[2] https://www.mail-archive.com/netdev@vger.kernel.org/msg251434.html

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-10-16 15:16:47 -07:00
..
accounting
arch
bpf tools: bpftool: add map create command 2018-10-15 16:39:21 -07:00
build
cgroup
firewire
gpio
hv tools: hv: fcopy: set 'error' in case an unknown operation was requested 2018-09-30 08:49:55 -07:00
iio
include bpf, tls: add tls header to tools infrastructure 2018-10-16 08:10:01 -07:00
kvm/kvm_stat tools/kvm_stat: cut down decimal places in update interval dialog 2018-10-01 15:40:59 +02:00
laptop
leds
lib libbpf: Per-symbol visibility for DSO 2018-10-16 15:16:47 -07:00
memory-model
nfsd
objtool
pci
pcmcia
perf perf record: Use unmapped IP for inline callchain cursors 2018-10-05 11:18:09 -03:00
power
scripts
spi
testing bpf, tls: add tls header to tools infrastructure 2018-10-16 08:10:01 -07:00
thermal/tmon
time
usb
virtio
vm
wmi
Makefile