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