xref: /titanic_52/usr/src/cmd/sgs/liblddbg/common/mapfile-vers (revision f345c0beb4c8f75cb54c2e070498e56febd468ac)
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.55 {
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_modified;
135		Dbg64_file_modified;
136		Dbg32_file_needed;
137		Dbg64_file_needed;
138		Dbg32_file_output;
139		Dbg64_file_output;
140		Dbg32_file_preload;
141		Dbg64_file_preload;
142		Dbg32_file_prot;
143		Dbg64_file_prot;
144		Dbg32_file_rejected;
145		Dbg64_file_rejected;
146		Dbg32_file_reuse;
147		Dbg64_file_reuse;
148		Dbg32_file_skip;
149		Dbg64_file_skip;
150
151		Dbg32_got_display;
152		Dbg64_got_display;
153
154		Dbg32_libs_audit;
155		Dbg64_libs_audit;
156		Dbg32_libs_find;
157		Dbg64_libs_find;
158		Dbg32_libs_found;
159		Dbg64_libs_found;
160		Dbg32_libs_ignore;
161		Dbg64_libs_ignore;
162		Dbg32_libs_init;
163		Dbg64_libs_init;
164		Dbg32_libs_l;
165		Dbg64_libs_l;
166		Dbg32_libs_path;
167		Dbg64_libs_path;
168		Dbg32_libs_req;
169		Dbg64_libs_req;
170		Dbg32_libs_update;
171		Dbg64_libs_update;
172		Dbg32_libs_yp;
173		Dbg64_libs_yp;
174		Dbg32_libs_ylu;
175		Dbg64_libs_ylu;
176
177		Dbg32_map_dash;
178		Dbg64_map_dash;
179		Dbg32_map_ent;
180		Dbg64_map_ent;
181		Dbg32_map_parse;
182		Dbg64_map_parse;
183		Dbg32_map_pipe;
184		Dbg64_map_pipe;
185		Dbg32_map_set_atsign;
186		Dbg64_map_set_atsign;
187		Dbg32_map_seg;
188		Dbg64_map_seg;
189		Dbg32_map_set_equal;
190		Dbg64_map_set_equal;
191		Dbg32_map_size_new;
192		Dbg64_map_size_new;
193		Dbg32_map_size_old;
194		Dbg64_map_size_old;
195		Dbg32_map_sort_fini;
196		Dbg64_map_sort_fini;
197		Dbg32_map_sort_orig;
198		Dbg64_map_sort_orig;
199		Dbg32_map_symbol;
200		Dbg64_map_symbol;
201		Dbg32_map_version;
202		Dbg64_map_version;
203
204		Dbg32_move_adjexpandreloc;
205		Dbg64_move_adjexpandreloc;
206		Dbg32_move_adjmovereloc;
207		Dbg64_move_adjmovereloc;
208		Dbg32_move_data;
209		Dbg64_move_data;
210		Dbg32_move_entry1;
211		Dbg64_move_entry1;
212		Dbg32_move_entry2;
213		Dbg64_move_entry2;
214		Dbg32_move_expand;
215		Dbg64_move_expand;
216		Dbg32_move_input;
217		Dbg64_move_input;
218		Dbg32_move_outmove;
219		Dbg64_move_outmove;
220		Dbg32_move_outsctadj;
221		Dbg64_move_outsctadj;
222		Dbg32_move_parexpn;
223		Dbg64_move_parexpn;
224
225		Dbg32_reloc_apply_reg;
226		Dbg64_reloc_apply_reg;
227		Dbg32_reloc_apply_val;
228		Dbg64_reloc_apply_val;
229		Dbg32_reloc_ars_entry;
230		Dbg64_reloc_ars_entry;
231		Dbg32_reloc_copy;
232		Dbg64_reloc_copy;
233		Dbg32_reloc_discard;
234		Dbg64_reloc_discard;
235		Dbg32_reloc_doact;
236		Dbg64_reloc_doact;
237		Dbg32_reloc_doact_title;
238		Dbg64_reloc_doact_title;
239		Dbg32_reloc_dooutrel;
240		Dbg64_reloc_dooutrel;
241		Dbg32_reloc_entry;
242		Dbg64_reloc_entry;
243		Dbg32_reloc_error;
244		Dbg64_reloc_error;
245		Dbg32_reloc_generate;
246		Dbg64_reloc_generate;
247		Dbg32_reloc_in;
248		Dbg64_reloc_in;
249		Dbg32_reloc_ors_entry;
250		Dbg64_reloc_ors_entry;
251		Dbg32_reloc_out;
252		Dbg64_reloc_out;
253		Dbg32_reloc_proc;
254		Dbg64_reloc_proc;
255		Dbg32_reloc_run;
256		Dbg64_reloc_run;
257		Dbg32_reloc_sloppycomdat;
258		Dbg64_reloc_sloppycomdat;
259		Dbg32_reloc_transition;
260		Dbg64_reloc_transition;
261
262		Dbg32_sec_added;
263		Dbg64_sec_added;
264		Dbg32_sec_created;
265		Dbg64_sec_created;
266		Dbg32_sec_discarded;
267		Dbg64_sec_discarded;
268		Dbg32_sec_group;
269		Dbg64_sec_group;
270		Dbg32_sec_in;
271		Dbg64_sec_in;
272		Dbg32_sec_order_error;
273		Dbg64_sec_order_error;
274		Dbg32_sec_order_list;
275		Dbg64_sec_order_list;
276		Dbg32_sec_strtab;
277		Dbg64_sec_strtab;
278
279		Dbg32_seg_entry;
280		Dbg64_seg_entry;
281		Dbg32_seg_list;
282		Dbg64_seg_list;
283		Dbg32_seg_os;
284		Dbg64_seg_os;
285		Dbg32_seg_title;
286		Dbg64_seg_title;
287
288		Dbg32_shdr_modified;
289		Dbg64_shdr_modified;
290
291		Dbg32_statistics_ar;
292		Dbg64_statistics_ar;
293		Dbg32_statistics_ld;
294		Dbg64_statistics_ld;
295
296		Dbg32_support_action;
297		Dbg64_support_action;
298		Dbg32_support_load;
299		Dbg64_support_load;
300		Dbg32_support_req;
301		Dbg64_support_req;
302
303		Dbg32_syminfo_entry;
304		Dbg64_syminfo_entry;
305		Dbg32_syminfo_title;
306		Dbg64_syminfo_title;
307
308		Dbg32_syms_ar_checking;
309		Dbg64_syms_ar_checking;
310		Dbg32_syms_ar_entry;
311		Dbg64_syms_ar_entry;
312		Dbg32_syms_ar_resolve;
313		Dbg64_syms_ar_resolve;
314		Dbg32_syms_ar_title;
315		Dbg64_syms_ar_title;
316		Dbg32_syms_created;
317		Dbg64_syms_created;
318		Dbg32_syms_discarded;
319		Dbg64_syms_discarded;
320		Dbg32_syms_dlsym;
321		Dbg64_syms_dlsym;
322		Dbg32_syms_entered;
323		Dbg64_syms_entered;
324		Dbg32_syms_entry;
325		Dbg64_syms_entry;
326		Dbg32_syms_global;
327		Dbg64_syms_global;
328		Dbg32_syms_ignore;
329		Dbg64_syms_ignore;
330		Dbg32_syms_lazy_rescan;
331		Dbg64_syms_lazy_rescan;
332		Dbg32_syms_lookup;
333		Dbg64_syms_lookup;
334		Dbg32_syms_lookup_aout;
335		Dbg32_syms_new;
336		Dbg64_syms_new;
337		Dbg32_syms_old;
338		Dbg64_syms_old;
339		Dbg32_syms_process;
340		Dbg64_syms_process;
341		Dbg32_syms_reduce;
342		Dbg64_syms_reduce;
343		Dbg32_syms_reloc;
344		Dbg64_syms_reloc;
345		Dbg32_syms_resolved;
346		Dbg64_syms_resolved;
347		Dbg32_syms_resolving;
348		Dbg64_syms_resolving;
349		Dbg32_syms_sec_entry;
350		Dbg64_syms_sec_entry;
351		Dbg32_syms_sec_title;
352		Dbg64_syms_sec_title;
353		Dbg32_syms_spec_title;
354		Dbg64_syms_spec_title;
355		Dbg32_syms_updated;
356		Dbg64_syms_updated;
357		Dbg32_syms_up_title;
358		Dbg64_syms_up_title;
359
360		Dbg_tls_modactivity;
361		Dbg_tls_static_block;
362		Dbg_tls_static_resv;
363
364		Dbg32_util_broadcast;
365		Dbg64_util_broadcast;
366		Dbg32_util_call_array;
367		Dbg64_util_call_array;
368		Dbg32_util_call_fini;
369		Dbg64_util_call_fini;
370		Dbg32_util_call_init;
371		Dbg64_util_call_init;
372		Dbg32_util_call_main;
373		Dbg64_util_call_main;
374		Dbg32_util_collect;
375		Dbg64_util_collect;
376		Dbg32_util_dbnotify;
377		Dbg64_util_dbnotify;
378		Dbg32_util_edge_in;
379		Dbg64_util_edge_in;
380		Dbg32_util_edge_out;
381		Dbg64_util_edge_out;
382		Dbg32_util_lcinterface;
383		Dbg64_util_lcinterface;
384		Dbg32_util_intoolate;
385		Dbg64_util_intoolate;
386		Dbg32_util_nl;
387		Dbg64_util_nl;
388		Dbg32_util_no_init;
389		Dbg64_util_no_init;
390		Dbg32_util_scc_entry;
391		Dbg64_util_scc_entry;
392		Dbg32_util_scc_title;
393		Dbg64_util_scc_title;
394		Dbg32_util_str;
395		Dbg64_util_str;
396		Dbg32_util_wait;
397		Dbg64_util_wait;
398
399		Dbg32_unused_file;
400		Dbg64_unused_file;
401		Dbg32_unused_lcinterface;
402		Dbg64_unused_lcinterface;
403		Dbg32_unused_sec;
404		Dbg64_unused_sec;
405		Dbg32_unused_unref;
406		Dbg64_unused_unref;
407
408		Dbg32_ver_avail_entry;
409		Dbg64_ver_avail_entry;
410		Dbg32_ver_avail_title;
411		Dbg64_ver_avail_title;
412		Dbg32_ver_def_title;
413		Dbg64_ver_def_title;
414		Dbg32_ver_desc_entry;
415		Dbg64_ver_desc_entry;
416		Dbg32_ver_need_entry;
417		Dbg64_ver_need_entry;
418		Dbg32_ver_need_title;
419		Dbg64_ver_need_title;
420		Dbg32_ver_nointerface;
421		Dbg64_ver_nointerface;
422		Dbg32_ver_symbol;
423		Dbg64_ver_symbol;
424
425} SUNWprivate_3.20;
426
427
428# The following interfaces are used by various parts of the link-editors and
429# the elfdump(1).  The link-editors are always packaged together but there
430# seems to be a variety of old elfdump's lying around.  elfdump only uses
431# this interface, and thus by separating in from the ever changing Dbg_*
432# interfaces we can provide a stable verioning environment for this utility.
433
434SUNWprivate_3.20 {
435	global:
436		Elf_syminfo_entry;
437		Elf_syminfo_title;
438
439		Elf32_cap_entry;
440		Elf64_cap_entry;
441		Elf32_cap_title;
442		Elf64_cap_title;
443
444		Elf32_demangle_name;
445		Elf64_demangle_name;
446		Elf32_dyn_entry;
447		Elf64_dyn_entry;
448		Elf32_dyn_title;
449		Elf64_dyn_title;
450
451		Elf32_ehdr;
452		Elf64_ehdr;
453
454		Elf32_got_entry;
455		Elf64_got_entry;
456		Elf32_got_title;
457		Elf64_got_title;
458
459		Elf32_phdr;
460		Elf64_phdr;
461
462		Elf32_reloc_apply_reg;
463		Elf64_reloc_apply_reg;
464		Elf32_reloc_apply_val;
465		Elf64_reloc_apply_val;
466		Elf32_reloc_entry_1;
467		Elf64_reloc_entry_1;
468		Elf32_reloc_entry_2;
469		Elf64_reloc_entry_2;
470		Elf32_reloc_title;
471		Elf64_reloc_title;
472
473		Elf32_shdr;
474		Elf64_shdr;
475
476		Elf32_syms_table_title;
477		Elf64_syms_table_title;
478		Elf32_syms_table_entry;
479		Elf64_syms_table_entry;
480
481		Elf32_ver_def_title;
482		Elf64_ver_def_title;
483		Elf32_ver_line_1;
484		Elf64_ver_line_1;
485		Elf32_ver_line_2;
486		Elf64_ver_line_2;
487		Elf32_ver_line_3;
488		Elf64_ver_line_3;
489		Elf32_ver_line_4;
490		Elf64_ver_line_4;
491		Elf32_ver_line_5;
492		Elf64_ver_line_5;
493		Elf32_ver_need_title;
494		Elf64_ver_need_title;
495
496	local:
497		*;
498};
499
500# The following functions must be provided by our caller, or one of the callers
501# dependencies.  When used with ld.so.1 all functions are provided from ld.so.1,
502# but when used with ld, many of the functions fall back to libc.  Presently we
503# don't build liblddbg with a libc dependency simply to avoid having to load it
504# with ld.so.1 which already offers the required interfaces (from libc_pic.a).
505# Distinguishing between `parent' and `extern' symbols offers a small
506# performance advantage with direct bindings, but this is mainly a test of what
507# we're capable of doing, rather than an admission that its really worth it :-).
508
509{
510		_dgettext =	FUNCTION extern;
511		_close =	FUNCTION extern;
512		_open =		FUNCTION extern;
513		_write =	FUNCTION extern;
514		dlopen =	FUNCTION extern;
515		dlsym =		FUNCTION extern;
516		free =		FUNCTION parent;
517		malloc =	FUNCTION parent;
518		memcpy =	FUNCTION extern;
519		qsort =		FUNCTION extern;
520		snprintf =	FUNCTION extern;
521		sprintf =	FUNCTION extern;
522		strcat =	FUNCTION extern;
523		strcmp =	FUNCTION extern;
524		strcpy =	FUNCTION extern;
525		strlen =	FUNCTION extern;
526		strrchr =	FUNCTION extern;
527		strtok_r =	FUNCTION extern;
528};
529