xref: /titanic_44/usr/src/cmd/sgs/liblddbg/common/mapfile-vers (revision 587032cf0967234b39ccb50adca936a367841063)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# Generic interface definition for usr/src/cmd/sgs/liblddbg.
29#
30# For information regarding the establishment of versioned definitions see:
31#	The Linker and Libraries Manual (version 2.5 or greater)
32# This is part of the Developers Guide in the Answerbook.  Specifically refer
33# to Chapter 2 under section "Defining Additional Symbols" through section
34# "Reducing Symbol Scope", and Chapter 5 "Versioning".
35#
36# For specific OSNET rules for the modification (evolution) of these version
37# definitions see:
38#	Policy for Shared Library Version Names and Interface Definitions
39
40
41SUNWprivate_4.51 {
42	global:
43		dbg_desc = NODIRECT;	# interposed - ld.so.1(1)
44		dbg_print = NODIRECT;	# interposed - ld(1) and ld.so.1(1)
45
46		Dbg_args_files;
47		Dbg_args_flags;
48		Dbg_audit_interface;
49		Dbg_audit_lib;
50		Dbg_audit_object;
51		Dbg_audit_symval;
52		Dbg_audit_version;
53
54		Dbg_setup;
55
56		Dbg32_bind_global;
57		Dbg64_bind_global;
58		Dbg32_bind_plt_summary;
59		Dbg64_bind_plt_summary;
60		Dbg64_bind_pltpad_from;
61		Dbg64_bind_pltpad_to;
62		Dbg32_bind_weak;
63		Dbg64_bind_weak;
64
65		Dbg32_cap_hw_candidate;
66		Dbg64_cap_hw_candidate;
67		Dbg32_cap_hw_filter;
68		Dbg64_cap_hw_filter;
69		Dbg32_cap_mapfile;
70		Dbg64_cap_mapfile;
71		Dbg32_cap_sec_entry;
72		Dbg64_cap_sec_entry;
73		Dbg32_cap_sec_title;
74		Dbg64_cap_sec_title;
75		Dbg32_cap_val_hw1;
76		Dbg64_cap_val_hw1;
77
78		Dbg32_demangle_name;
79		Dbg64_demangle_name;
80
81		Dbg32_ent_print;
82		Dbg64_ent_print;
83
84		Dbg32_file_analyze;
85		Dbg64_file_analyze;
86		Dbg32_file_aout;
87		Dbg64_file_aout;
88		Dbg32_file_ar;
89		Dbg64_file_ar;
90		Dbg32_file_ar_rescan;
91		Dbg64_file_ar_rescan;
92		Dbg32_file_bind_entry;
93		Dbg64_file_bind_entry;
94		Dbg32_file_bindings;
95		Dbg64_file_bindings;
96		Dbg32_file_cntl;
97		Dbg64_file_cntl;
98		Dbg32_file_config_dis;
99		Dbg64_file_config_dis;
100		Dbg32_file_config_obj;
101		Dbg64_file_config_obj;
102		Dbg32_file_del_rescan;
103		Dbg64_file_del_rescan;
104		Dbg32_file_delete;
105		Dbg64_file_delete;
106		Dbg32_file_dlclose;
107		Dbg64_file_dlclose;
108		Dbg32_file_dldump;
109		Dbg64_file_dldump;
110		Dbg32_file_dlopen;
111		Dbg64_file_dlopen;
112		Dbg32_file_elf;
113		Dbg64_file_elf;
114		Dbg32_file_filtee;
115		Dbg64_file_filtee;
116		Dbg32_file_filter;
117		Dbg64_file_filter;
118		Dbg32_file_fixname;
119		Dbg64_file_fixname;
120		Dbg32_file_generic;
121		Dbg64_file_generic;
122		Dbg32_file_hdl_action;
123		Dbg64_file_hdl_action;
124		Dbg32_file_hdl_collect;
125		Dbg64_file_hdl_collect;
126		Dbg32_file_hdl_title;
127		Dbg64_file_hdl_title;
128		Dbg32_file_lazyload;
129		Dbg64_file_lazyload;
130		Dbg32_file_ldso;
131		Dbg64_file_ldso;
132		Dbg32_file_mode_promote;
133		Dbg64_file_mode_promote;
134		Dbg32_file_needed;
135		Dbg64_file_needed;
136		Dbg32_file_output;
137		Dbg64_file_output;
138		Dbg32_file_preload;
139		Dbg64_file_preload;
140		Dbg32_file_prot;
141		Dbg64_file_prot;
142		Dbg32_file_rejected;
143		Dbg64_file_rejected;
144		Dbg32_file_reuse;
145		Dbg64_file_reuse;
146		Dbg32_file_skip;
147		Dbg64_file_skip;
148
149		Dbg32_got_display;
150		Dbg64_got_display;
151
152		Dbg32_libs_audit;
153		Dbg64_libs_audit;
154		Dbg32_libs_find;
155		Dbg64_libs_find;
156		Dbg32_libs_found;
157		Dbg64_libs_found;
158		Dbg32_libs_ignore;
159		Dbg64_libs_ignore;
160		Dbg32_libs_init;
161		Dbg64_libs_init;
162		Dbg32_libs_l;
163		Dbg64_libs_l;
164		Dbg32_libs_path;
165		Dbg64_libs_path;
166		Dbg32_libs_req;
167		Dbg64_libs_req;
168		Dbg32_libs_update;
169		Dbg64_libs_update;
170		Dbg32_libs_yp;
171		Dbg64_libs_yp;
172		Dbg32_libs_ylu;
173		Dbg64_libs_ylu;
174
175		Dbg32_map_dash;
176		Dbg64_map_dash;
177		Dbg32_map_ent;
178		Dbg64_map_ent;
179		Dbg32_map_parse;
180		Dbg64_map_parse;
181		Dbg32_map_pipe;
182		Dbg64_map_pipe;
183		Dbg32_map_set_atsign;
184		Dbg64_map_set_atsign;
185		Dbg32_map_seg;
186		Dbg64_map_seg;
187		Dbg32_map_set_equal;
188		Dbg64_map_set_equal;
189		Dbg32_map_size_new;
190		Dbg64_map_size_new;
191		Dbg32_map_size_old;
192		Dbg64_map_size_old;
193		Dbg32_map_sort_fini;
194		Dbg64_map_sort_fini;
195		Dbg32_map_sort_orig;
196		Dbg64_map_sort_orig;
197		Dbg32_map_symbol;
198		Dbg64_map_symbol;
199		Dbg32_map_version;
200		Dbg64_map_version;
201
202		Dbg32_move_adjexpandreloc;
203		Dbg64_move_adjexpandreloc;
204		Dbg32_move_adjmovereloc;
205		Dbg64_move_adjmovereloc;
206		Dbg32_move_data;
207		Dbg64_move_data;
208		Dbg32_move_entry1;
209		Dbg64_move_entry1;
210		Dbg32_move_entry2;
211		Dbg64_move_entry2;
212		Dbg32_move_expand;
213		Dbg64_move_expand;
214		Dbg32_move_input;
215		Dbg64_move_input;
216		Dbg32_move_outmove;
217		Dbg64_move_outmove;
218		Dbg32_move_outsctadj;
219		Dbg64_move_outsctadj;
220		Dbg32_move_parexpn;
221		Dbg64_move_parexpn;
222
223		Dbg32_reloc_apply_reg;
224		Dbg64_reloc_apply_reg;
225		Dbg32_reloc_apply_val;
226		Dbg64_reloc_apply_val;
227		Dbg32_reloc_ars_entry;
228		Dbg64_reloc_ars_entry;
229		Dbg32_reloc_copy;
230		Dbg64_reloc_copy;
231		Dbg32_reloc_discard;
232		Dbg64_reloc_discard;
233		Dbg32_reloc_doact;
234		Dbg64_reloc_doact;
235		Dbg32_reloc_doact_title;
236		Dbg64_reloc_doact_title;
237		Dbg32_reloc_dooutrel;
238		Dbg64_reloc_dooutrel;
239		Dbg32_reloc_entry;
240		Dbg64_reloc_entry;
241		Dbg32_reloc_error;
242		Dbg64_reloc_error;
243		Dbg32_reloc_generate;
244		Dbg64_reloc_generate;
245		Dbg32_reloc_in;
246		Dbg64_reloc_in;
247		Dbg32_reloc_ors_entry;
248		Dbg64_reloc_ors_entry;
249		Dbg32_reloc_out;
250		Dbg64_reloc_out;
251		Dbg32_reloc_proc;
252		Dbg64_reloc_proc;
253		Dbg32_reloc_run;
254		Dbg64_reloc_run;
255		Dbg32_reloc_transition;
256		Dbg64_reloc_transition;
257
258		Dbg32_sec_added;
259		Dbg64_sec_added;
260		Dbg32_sec_created;
261		Dbg64_sec_created;
262		Dbg32_sec_discarded;
263		Dbg64_sec_discarded;
264		Dbg32_sec_group;
265		Dbg64_sec_group;
266		Dbg32_sec_in;
267		Dbg64_sec_in;
268		Dbg32_sec_order_error;
269		Dbg64_sec_order_error;
270		Dbg32_sec_order_list;
271		Dbg64_sec_order_list;
272		Dbg32_sec_strtab;
273		Dbg64_sec_strtab;
274
275		Dbg32_seg_entry;
276		Dbg64_seg_entry;
277		Dbg32_seg_list;
278		Dbg64_seg_list;
279		Dbg32_seg_os;
280		Dbg64_seg_os;
281		Dbg32_seg_title;
282		Dbg64_seg_title;
283
284		Dbg32_statistics_ar;
285		Dbg64_statistics_ar;
286		Dbg32_statistics_ld;
287		Dbg64_statistics_ld;
288
289		Dbg32_support_action;
290		Dbg64_support_action;
291		Dbg32_support_load;
292		Dbg64_support_load;
293		Dbg32_support_req;
294		Dbg64_support_req;
295
296		Dbg32_syminfo_entry;
297		Dbg64_syminfo_entry;
298		Dbg32_syminfo_title;
299		Dbg64_syminfo_title;
300
301		Dbg32_syms_ar_checking;
302		Dbg64_syms_ar_checking;
303		Dbg32_syms_ar_entry;
304		Dbg64_syms_ar_entry;
305		Dbg32_syms_ar_resolve;
306		Dbg64_syms_ar_resolve;
307		Dbg32_syms_ar_title;
308		Dbg64_syms_ar_title;
309		Dbg32_syms_created;
310		Dbg64_syms_created;
311		Dbg32_syms_discarded;
312		Dbg64_syms_discarded;
313		Dbg32_syms_dlsym;
314		Dbg64_syms_dlsym;
315		Dbg32_syms_entered;
316		Dbg64_syms_entered;
317		Dbg32_syms_entry;
318		Dbg64_syms_entry;
319		Dbg32_syms_global;
320		Dbg64_syms_global;
321		Dbg32_syms_ignore;
322		Dbg64_syms_ignore;
323		Dbg32_syms_lazy_rescan;
324		Dbg64_syms_lazy_rescan;
325		Dbg32_syms_lookup;
326		Dbg64_syms_lookup;
327		Dbg32_syms_lookup_aout;
328		Dbg32_syms_new;
329		Dbg64_syms_new;
330		Dbg32_syms_old;
331		Dbg64_syms_old;
332		Dbg32_syms_process;
333		Dbg64_syms_process;
334		Dbg32_syms_reduce;
335		Dbg64_syms_reduce;
336		Dbg32_syms_reloc;
337		Dbg64_syms_reloc;
338		Dbg32_syms_resolved;
339		Dbg64_syms_resolved;
340		Dbg32_syms_resolving;
341		Dbg64_syms_resolving;
342		Dbg32_syms_sec_entry;
343		Dbg64_syms_sec_entry;
344		Dbg32_syms_sec_title;
345		Dbg64_syms_sec_title;
346		Dbg32_syms_spec_title;
347		Dbg64_syms_spec_title;
348		Dbg32_syms_updated;
349		Dbg64_syms_updated;
350		Dbg32_syms_up_title;
351		Dbg64_syms_up_title;
352
353		Dbg_tls_modactivity;
354		Dbg_tls_static_block;
355
356		Dbg32_util_broadcast;
357		Dbg64_util_broadcast;
358		Dbg32_util_call_array;
359		Dbg64_util_call_array;
360		Dbg32_util_call_fini;
361		Dbg64_util_call_fini;
362		Dbg32_util_call_init;
363		Dbg64_util_call_init;
364		Dbg32_util_call_main;
365		Dbg64_util_call_main;
366		Dbg32_util_collect;
367		Dbg64_util_collect;
368		Dbg32_util_dbnotify;
369		Dbg64_util_dbnotify;
370		Dbg32_util_edge_in;
371		Dbg64_util_edge_in;
372		Dbg32_util_edge_out;
373		Dbg64_util_edge_out;
374		Dbg32_util_lcinterface;
375		Dbg64_util_lcinterface;
376		Dbg32_util_intoolate;
377		Dbg64_util_intoolate;
378		Dbg32_util_nl;
379		Dbg64_util_nl;
380		Dbg32_util_no_init;
381		Dbg64_util_no_init;
382		Dbg32_util_scc_entry;
383		Dbg64_util_scc_entry;
384		Dbg32_util_scc_title;
385		Dbg64_util_scc_title;
386		Dbg32_util_str;
387		Dbg64_util_str;
388		Dbg32_util_wait;
389		Dbg64_util_wait;
390
391		Dbg32_unused_file;
392		Dbg64_unused_file;
393		Dbg32_unused_lcinterface;
394		Dbg64_unused_lcinterface;
395		Dbg32_unused_sec;
396		Dbg64_unused_sec;
397		Dbg32_unused_unref;
398		Dbg64_unused_unref;
399
400		Dbg32_ver_avail_entry;
401		Dbg64_ver_avail_entry;
402		Dbg32_ver_avail_title;
403		Dbg64_ver_avail_title;
404		Dbg32_ver_def_title;
405		Dbg64_ver_def_title;
406		Dbg32_ver_desc_entry;
407		Dbg64_ver_desc_entry;
408		Dbg32_ver_need_entry;
409		Dbg64_ver_need_entry;
410		Dbg32_ver_need_title;
411		Dbg64_ver_need_title;
412		Dbg32_ver_nointerface;
413		Dbg64_ver_nointerface;
414		Dbg32_ver_symbol;
415		Dbg64_ver_symbol;
416
417} SUNWprivate_3.20;
418
419
420# The following interfaces are used by various parts of the link-editors and
421# the elfdump(1).  The link-editors are always packaged together but there
422# seems to be a variety of old elfdump's lying around.  elfdump only uses
423# this interface, and thus by separating in from the ever changing Dbg_*
424# interfaces we can provide a stable verioning environment for this utility.
425
426SUNWprivate_3.20 {
427	global:
428		Elf_syminfo_entry;
429		Elf_syminfo_title;
430
431		Elf32_cap_entry;
432		Elf64_cap_entry;
433		Elf32_cap_title;
434		Elf64_cap_title;
435
436		Elf32_demangle_name;
437		Elf64_demangle_name;
438		Elf32_dyn_entry;
439		Elf64_dyn_entry;
440		Elf32_dyn_title;
441		Elf64_dyn_title;
442
443		Elf32_ehdr;
444		Elf64_ehdr;
445
446		Elf32_got_entry;
447		Elf64_got_entry;
448		Elf32_got_title;
449		Elf64_got_title;
450
451		Elf32_phdr;
452		Elf64_phdr;
453
454		Elf32_reloc_apply_reg;
455		Elf64_reloc_apply_reg;
456		Elf32_reloc_apply_val;
457		Elf64_reloc_apply_val;
458		Elf32_reloc_entry_1;
459		Elf64_reloc_entry_1;
460		Elf32_reloc_entry_2;
461		Elf64_reloc_entry_2;
462		Elf32_reloc_title;
463		Elf64_reloc_title;
464
465		Elf32_shdr;
466		Elf64_shdr;
467
468		Elf32_syms_table_title;
469		Elf64_syms_table_title;
470		Elf32_syms_table_entry;
471		Elf64_syms_table_entry;
472
473		Elf32_ver_def_title;
474		Elf64_ver_def_title;
475		Elf32_ver_line_1;
476		Elf64_ver_line_1;
477		Elf32_ver_line_2;
478		Elf64_ver_line_2;
479		Elf32_ver_line_3;
480		Elf64_ver_line_3;
481		Elf32_ver_line_4;
482		Elf64_ver_line_4;
483		Elf32_ver_line_5;
484		Elf64_ver_line_5;
485		Elf32_ver_need_title;
486		Elf64_ver_need_title;
487
488	local:
489		*;
490};
491
492# The following functions must be provided by our caller, or one of the callers
493# dependencies.  When used with ld.so.1 all functions are provided from ld.so.1,
494# but when used with ld, many of the functions fall back to libc.  Presently we
495# don't build liblddbg with a libc dependency simply to avoid having to load it
496# with ld.so.1 which already offers the required interfaces (from libc_pic.a).
497# Distinguishing between `parent' and `extern' symbols offers a small
498# performance advantage with direct bindings, but this is mainly a test of what
499# we're capable of doing, rather than an admission that its really worth it :-).
500
501{
502		_dgettext =	FUNCTION extern;
503		_close =	FUNCTION extern;
504		_open =		FUNCTION extern;
505		_write =	FUNCTION extern;
506		dlopen =	FUNCTION extern;
507		dlsym =		FUNCTION extern;
508		free =		FUNCTION parent;
509		malloc =	FUNCTION parent;
510		memcpy =	FUNCTION extern;
511		qsort =		FUNCTION extern;
512		snprintf =	FUNCTION extern;
513		sprintf =	FUNCTION extern;
514		strcat =	FUNCTION extern;
515		strcmp =	FUNCTION extern;
516		strcpy =	FUNCTION extern;
517		strlen =	FUNCTION extern;
518		strrchr =	FUNCTION extern;
519		strtok_r =	FUNCTION extern;
520};
521