libproc-ng: fix ld version script file support
Notice that contents of file library.map file are almost certainly wrong as it is making everything exported. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
fadce3f1b2
commit
901e381256
@ -4,7 +4,12 @@ lib_LTLIBRARIES = libproc-ng.la
|
|||||||
|
|
||||||
libproc_ng_ladir = $(ladir)
|
libproc_ng_ladir = $(ladir)
|
||||||
libproc_ng_la_LIBADD = $(LIB_KPARTS)
|
libproc_ng_la_LIBADD = $(LIB_KPARTS)
|
||||||
libproc_ng_la_LDFLAGS = $(all_libraries) -release $(PACKAGE_VERSION) -no-undefined
|
libproc_ng_la_LDFLAGS = \
|
||||||
|
$(AM_LDFLAGS) \
|
||||||
|
$(all_libraries) \
|
||||||
|
-release $(PACKAGE_VERSION) \
|
||||||
|
-no-undefined \
|
||||||
|
-Wl,--version-script=$(top_srcdir)/proc/library.map
|
||||||
|
|
||||||
libproc_ng_la_SOURCES = \
|
libproc_ng_la_SOURCES = \
|
||||||
alloc.c \
|
alloc.c \
|
||||||
|
@ -1,24 +1,76 @@
|
|||||||
# for --version-script
|
LIBPROC_NG_3_3_0 {
|
||||||
# WTF is the syntax for this file?
|
|
||||||
# Give me a BNF, man!
|
|
||||||
_3_2_5 {
|
|
||||||
global:
|
global:
|
||||||
__cyg_profile_func_enter; __cyg_profile_func_exit; main;
|
Hertz;
|
||||||
|
__cyg_profile_func_enter;
|
||||||
readproc; readtask; readproctab; readproctab2; look_up_our_self; escape_command;
|
__cyg_profile_func_exit;
|
||||||
escape_str; escape_strlist; escaped_copy; read_cmdline;
|
closeproc;
|
||||||
openproc; closeproc; freeproc; readeither; readproctab3;
|
cpuinfo;
|
||||||
tty_to_dev; dev_to_tty; open_psdb_message; open_psdb; lookup_wchan;
|
dev_to_tty;
|
||||||
display_version; procps_version; linux_version_code;
|
display_version;
|
||||||
Hertz; smp_num_cpus; have_privs; getbtime;
|
escape_command;
|
||||||
sprint_uptime; uptime; user_from_uid; print_uptime; loadavg;
|
escape_str;
|
||||||
pretty_print_signals; print_given_signals; unix_print_signals; signal_name_to_number; signal_number_to_name;
|
escape_strlist;
|
||||||
cpuinfo; meminfo; vminfo; getstat; getdiskstat; getpartitions_num; getslabinfo; get_pid_digits;
|
escaped_copy;
|
||||||
kb_active; kb_inactive; kb_main_buffers; kb_main_cached;
|
free_slabinfo;
|
||||||
kb_main_free; kb_main_total; kb_main_used; kb_swap_free;
|
freeproc;
|
||||||
kb_swap_total; kb_swap_used; kb_main_shared;
|
get_pid_digits;
|
||||||
kb_low_total; kb_low_free; kb_high_total; kb_high_free;
|
get_proc_stats;
|
||||||
vm_pgpgin; vm_pgpgout; vm_pswpin; vm_pswpout;
|
get_slabinfo;
|
||||||
free_slabinfo; put_slabinfo; get_slabinfo; get_proc_stats;
|
getbtime;
|
||||||
local: *;
|
getdiskstat;
|
||||||
|
getpartitions_num;
|
||||||
|
getslabinfo;
|
||||||
|
getstat;
|
||||||
|
have_privs;
|
||||||
|
kb_active;
|
||||||
|
kb_high_free;
|
||||||
|
kb_high_total;
|
||||||
|
kb_inactive;
|
||||||
|
kb_low_free;
|
||||||
|
kb_low_total;
|
||||||
|
kb_main_buffers;
|
||||||
|
kb_main_cached;
|
||||||
|
kb_main_free;
|
||||||
|
kb_main_shared;
|
||||||
|
kb_main_total;
|
||||||
|
kb_main_used;
|
||||||
|
kb_swap_free;
|
||||||
|
kb_swap_total;
|
||||||
|
kb_swap_used;
|
||||||
|
linux_version_code;
|
||||||
|
loadavg;
|
||||||
|
look_up_our_self;
|
||||||
|
lookup_wchan;
|
||||||
|
main;
|
||||||
|
meminfo;
|
||||||
|
open_psdb;
|
||||||
|
open_psdb_message;
|
||||||
|
openproc;
|
||||||
|
pretty_print_signals;
|
||||||
|
print_given_signals;
|
||||||
|
print_uptime;
|
||||||
|
procps_version;
|
||||||
|
put_slabinfo;
|
||||||
|
read_cmdline;
|
||||||
|
readeither;
|
||||||
|
readproc;
|
||||||
|
readproctab2;
|
||||||
|
readproctab3;
|
||||||
|
readproctab;
|
||||||
|
readtask;
|
||||||
|
signal_name_to_number;
|
||||||
|
signal_number_to_name;
|
||||||
|
smp_num_cpus;
|
||||||
|
sprint_uptime;
|
||||||
|
tty_to_dev;
|
||||||
|
unix_print_signals;
|
||||||
|
uptime;
|
||||||
|
user_from_uid;
|
||||||
|
vm_pgpgin;
|
||||||
|
vm_pgpgout;
|
||||||
|
vm_pswpin;
|
||||||
|
vm_pswpout;
|
||||||
|
vminfo;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user