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