xref: /illumos-gate/usr/src/cmd/sgs/liblddbg/common/mapfile-vers (revision 150d2c5288c645a1c1a7d2bee61199a3729406c7)
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.56 {
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_dup_sort_addr;
323		Dbg64_syms_dup_sort_addr;
324		Dbg32_syms_entered;
325		Dbg64_syms_entered;
326		Dbg32_syms_entry;
327		Dbg64_syms_entry;
328		Dbg32_syms_global;
329		Dbg64_syms_global;
330		Dbg32_syms_ignore;
331		Dbg64_syms_ignore;
332		Dbg32_syms_lazy_rescan;
333		Dbg64_syms_lazy_rescan;
334		Dbg32_syms_lookup;
335		Dbg64_syms_lookup;
336		Dbg32_syms_lookup_aout;
337		Dbg32_syms_new;
338		Dbg64_syms_new;
339		Dbg32_syms_old;
340		Dbg64_syms_old;
341		Dbg32_syms_process;
342		Dbg64_syms_process;
343		Dbg32_syms_reduce;
344		Dbg64_syms_reduce;
345		Dbg32_syms_reloc;
346		Dbg64_syms_reloc;
347		Dbg32_syms_resolved;
348		Dbg64_syms_resolved;
349		Dbg32_syms_resolving;
350		Dbg64_syms_resolving;
351		Dbg32_syms_sec_entry;
352		Dbg64_syms_sec_entry;
353		Dbg32_syms_sec_title;
354		Dbg64_syms_sec_title;
355		Dbg32_syms_spec_title;
356		Dbg64_syms_spec_title;
357		Dbg32_syms_updated;
358		Dbg64_syms_updated;
359		Dbg32_syms_up_title;
360		Dbg64_syms_up_title;
361
362		Dbg_tls_modactivity;
363		Dbg_tls_static_block;
364		Dbg_tls_static_resv;
365
366		Dbg32_util_broadcast;
367		Dbg64_util_broadcast;
368		Dbg32_util_call_array;
369		Dbg64_util_call_array;
370		Dbg32_util_call_fini;
371		Dbg64_util_call_fini;
372		Dbg32_util_call_init;
373		Dbg64_util_call_init;
374		Dbg32_util_call_main;
375		Dbg64_util_call_main;
376		Dbg32_util_collect;
377		Dbg64_util_collect;
378		Dbg32_util_dbnotify;
379		Dbg64_util_dbnotify;
380		Dbg32_util_edge_in;
381		Dbg64_util_edge_in;
382		Dbg32_util_edge_out;
383		Dbg64_util_edge_out;
384		Dbg32_util_lcinterface;
385		Dbg64_util_lcinterface;
386		Dbg32_util_intoolate;
387		Dbg64_util_intoolate;
388		Dbg32_util_nl;
389		Dbg64_util_nl;
390		Dbg32_util_no_init;
391		Dbg64_util_no_init;
392		Dbg32_util_scc_entry;
393		Dbg64_util_scc_entry;
394		Dbg32_util_scc_title;
395		Dbg64_util_scc_title;
396		Dbg32_util_str;
397		Dbg64_util_str;
398		Dbg32_util_wait;
399		Dbg64_util_wait;
400
401		Dbg32_unused_file;
402		Dbg64_unused_file;
403		Dbg32_unused_lcinterface;
404		Dbg64_unused_lcinterface;
405		Dbg32_unused_sec;
406		Dbg64_unused_sec;
407		Dbg32_unused_unref;
408		Dbg64_unused_unref;
409
410		Dbg32_ver_avail_entry;
411		Dbg64_ver_avail_entry;
412		Dbg32_ver_avail_title;
413		Dbg64_ver_avail_title;
414		Dbg32_ver_def_title;
415		Dbg64_ver_def_title;
416		Dbg32_ver_desc_entry;
417		Dbg64_ver_desc_entry;
418		Dbg32_ver_need_entry;
419		Dbg64_ver_need_entry;
420		Dbg32_ver_need_title;
421		Dbg64_ver_need_title;
422		Dbg32_ver_nointerface;
423		Dbg64_ver_nointerface;
424		Dbg32_ver_symbol;
425		Dbg64_ver_symbol;
426
427} SUNWprivate_3.20;
428
429
430# The following interfaces are used by various parts of the link-editors and
431# elfdump(1).  The link-editors are always packaged together but there
432# seems to be a variety of old elfdump's lying around.  elfdump only uses
433# this interface, and thus by separating in from the ever changing Dbg_*
434# interfaces we can provide a stable verioning environment for this utility.
435
436SUNWprivate_3.20 {
437	global:
438		Elf_syminfo_entry;
439		Elf_syminfo_title;
440
441		Elf32_cap_entry;
442		Elf64_cap_entry;
443		Elf32_cap_title;
444		Elf64_cap_title;
445
446		Elf32_demangle_name;
447		Elf64_demangle_name;
448		Elf32_dyn_entry;
449		Elf64_dyn_entry;
450		Elf32_dyn_title;
451		Elf64_dyn_title;
452
453		Elf32_ehdr;
454		Elf64_ehdr;
455
456		Elf32_got_entry;
457		Elf64_got_entry;
458		Elf32_got_title;
459		Elf64_got_title;
460
461		Elf32_phdr;
462		Elf64_phdr;
463
464		Elf32_reloc_apply_reg;
465		Elf64_reloc_apply_reg;
466		Elf32_reloc_apply_val;
467		Elf64_reloc_apply_val;
468		Elf32_reloc_entry_1;
469		Elf64_reloc_entry_1;
470		Elf32_reloc_entry_2;
471		Elf64_reloc_entry_2;
472		Elf32_reloc_title;
473		Elf64_reloc_title;
474
475		Elf32_shdr;
476		Elf64_shdr;
477
478		Elf32_syms_table_title;
479		Elf64_syms_table_title;
480		Elf32_syms_table_entry;
481		Elf64_syms_table_entry;
482
483		Elf32_ver_def_title;
484		Elf64_ver_def_title;
485		Elf32_ver_line_1;
486		Elf64_ver_line_1;
487		Elf32_ver_line_2;
488		Elf64_ver_line_2;
489		Elf32_ver_line_3;
490		Elf64_ver_line_3;
491		Elf32_ver_line_4;
492		Elf64_ver_line_4;
493		Elf32_ver_line_5;
494		Elf64_ver_line_5;
495		Elf32_ver_need_title;
496		Elf64_ver_need_title;
497
498	local:
499		*;
500};
501
502# The following functions must be provided by our caller, or one of the callers
503# dependencies.  When used with ld.so.1 all functions are provided from ld.so.1,
504# but when used with ld, many of the functions fall back to libc.  Presently we
505# don't build liblddbg with a libc dependency simply to avoid having to load it
506# with ld.so.1 which already offers the required interfaces (from libc_pic.a).
507# Distinguishing between `parent' and `extern' symbols offers a small
508# performance advantage with direct bindings, but this is mainly a test of what
509# we're capable of doing, rather than an admission that its really worth it :-).
510
511{
512		_dgettext =	FUNCTION extern;
513		_close =	FUNCTION extern;
514		_open =		FUNCTION extern;
515		_write =	FUNCTION extern;
516		dlopen =	FUNCTION extern;
517		dlsym =		FUNCTION extern;
518		free =		FUNCTION parent;
519		malloc =	FUNCTION parent;
520		memcpy =	FUNCTION extern;
521		qsort =		FUNCTION extern;
522		snprintf =	FUNCTION extern;
523		sprintf =	FUNCTION extern;
524		strcat =	FUNCTION extern;
525		strcmp =	FUNCTION extern;
526		strcpy =	FUNCTION extern;
527		strlen =	FUNCTION extern;
528		strrchr =	FUNCTION extern;
529		strtok_r =	FUNCTION extern;
530};
531