diff --git a/proc/library.map b/proc/library.map index 91845c5e..4c4a59d3 100644 --- a/proc/library.map +++ b/proc/library.map @@ -1,4 +1,15 @@ _3_1_5 { - global: readproc; - local: *; +global: + readproc; openproc; closeproc; display_version; meminfo; vminfo; + dev_to_tty; escape_command; open_psdb_message; signal_name_to_number; + sprint_uptime; wchan; procps_version; linux_version_code; + Hertz; smp_num_cpus; escape_str; escape_strlist; look_up_our_self; + open_psdb; ps_readproc; uptime; pretty_print_signals; + unix_print_signals; user_from_uid; print_uptime; loadavg; + kb_active; kb_inactive; kb_main_buffers; kb_main_cached; + kb_main_free; kb_main_total; kb_main_used; kb_swap_free; + kb_swap_total; kb_swap_used; kb_main_shared; tty_to_dev; + vm_pgpgin; vm_pgpgout; vm_pswpin; vm_pswpout; readproctab; + print_given_signals; +local: *; }; diff --git a/proc/module.mk b/proc/module.mk index f405accd..8cdade3a 100644 --- a/proc/module.mk +++ b/proc/module.mk @@ -40,8 +40,9 @@ DIRS += proc/ proc/lib$(NAME).a: $(LIBOBJ) $(AR) rcs $@ $^ +#proc/$(SONAME): proc/library.map proc/$(SONAME): $(LIBOBJ) - $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $^ -lc + $(CC) -shared -Wl,-soname,$(SONAME) -Wl,--version-script=proc/library.map -o $@ $^ -lc cd proc && $(ln_sf) $(SONAME) lib$(NAME).so