10Sstevel@tonic-gate/* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 51618Srie * Common Development and Distribution License (the "License"). 61618Srie * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate/* LINTLIBRARY */ 220Sstevel@tonic-gate/* PROTOLIB1 */ 230Sstevel@tonic-gate 240Sstevel@tonic-gate/* 256206Sab196087 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 260Sstevel@tonic-gate * Use is subject to license terms. 270Sstevel@tonic-gate */ 280Sstevel@tonic-gate 290Sstevel@tonic-gate#include "libld.h" 300Sstevel@tonic-gate 310Sstevel@tonic-gate/* 320Sstevel@tonic-gate * Generic interface definition for usr/src/lib/libld. 330Sstevel@tonic-gate */ 341618Srieuintptr_t ld32_create_outfile(Ofl_desc *); 351618Srieuintptr_t ld64_create_outfile(Ofl_desc *); 360Sstevel@tonic-gate 371618Srieuintptr_t ld32_ent_setup(Ofl_desc *, Xword); 381618Srieuintptr_t ld64_ent_setup(Ofl_desc *, Xword); 391618Srie 402850Srieuintptr_t ld32_init_strings(Ofl_desc *); 412850Srieuintptr_t ld64_init_strings(Ofl_desc *); 422850Srie 43*7636SRod.Evans@Sun.COMint ld_getopt(Lm_list *, int, int, char **); 44*7636SRod.Evans@Sun.COM 456206Sab196087int ld32_main(int, char **, Elf32_Half); 466206Sab196087int ld64_main(int, char **, Elf64_Half); 471618Srieuintptr_t ld32_make_sections(Ofl_desc *); 481618Srieuintptr_t ld64_make_sections(Ofl_desc *); 491618Srie 502850Srievoid ld32_ofl_cleanup(Ofl_desc *); 512850Srievoid ld64_ofl_cleanup(Ofl_desc *); 522850Srie 532978SrieIfl_desc *ld32_process_open(const char *, const char *, int *, 544716Sab196087 Ofl_desc *, Elf32_Word, Rej_desc *); 552978SrieIfl_desc *ld64_process_open(const char *, const char *, int *, 564716Sab196087 Ofl_desc *, Elf64_Word, Rej_desc *); 572850Srie 581618Srieuintptr_t ld32_reloc_init(Ofl_desc *); 592850Srieuintptr_t ld64_reloc_init(Ofl_desc *); 602850Srieuintptr_t ld32_reloc_process(Ofl_desc *); 611618Srieuintptr_t ld64_reloc_process(Ofl_desc *); 621618Srie 631618Srieuintptr_t ld32_sym_validate(Ofl_desc *); 641618Srieuintptr_t ld64_sym_validate(Ofl_desc *); 651618Srie 661618Srieuintptr_t ld32_update_outfile(Ofl_desc *); 671618Srieuintptr_t ld64_update_outfile(Ofl_desc *); 68