17c478bd9Sstevel@tonic-gate/* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 55aefb655Srie * Common Development and Distribution License (the "License"). 65aefb655Srie * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate/* LINTLIBRARY */ 227c478bd9Sstevel@tonic-gate/* PROTOLIB1 */ 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gate/* 25ba2be530Sab196087 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 267c478bd9Sstevel@tonic-gate * Use is subject to license terms. 277c478bd9Sstevel@tonic-gate */ 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate#include "libld.h" 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate/* 327c478bd9Sstevel@tonic-gate * Generic interface definition for usr/src/lib/libld. 337c478bd9Sstevel@tonic-gate */ 345aefb655Srieuintptr_t ld32_create_outfile(Ofl_desc *); 355aefb655Srieuintptr_t ld64_create_outfile(Ofl_desc *); 367c478bd9Sstevel@tonic-gate 375aefb655Srieuintptr_t ld32_ent_setup(Ofl_desc *, Xword); 385aefb655Srieuintptr_t ld64_ent_setup(Ofl_desc *, Xword); 395aefb655Srie 402926dd2eSrieuintptr_t ld32_init_strings(Ofl_desc *); 412926dd2eSrieuintptr_t ld64_init_strings(Ofl_desc *); 422926dd2eSrie 43*92a02081SRod Evansint ld_getopt(Lm_list *, int, int, char **); 44*92a02081SRod Evans 45ba2be530Sab196087int ld32_main(int, char **, Elf32_Half); 46ba2be530Sab196087int ld64_main(int, char **, Elf64_Half); 475aefb655Srieuintptr_t ld32_make_sections(Ofl_desc *); 485aefb655Srieuintptr_t ld64_make_sections(Ofl_desc *); 495aefb655Srie 502926dd2eSrievoid ld32_ofl_cleanup(Ofl_desc *); 512926dd2eSrievoid ld64_ofl_cleanup(Ofl_desc *); 522926dd2eSrie 533906e0c2SrieIfl_desc *ld32_process_open(const char *, const char *, int *, 54d840867fSab196087 Ofl_desc *, Elf32_Word, Rej_desc *); 553906e0c2SrieIfl_desc *ld64_process_open(const char *, const char *, int *, 56d840867fSab196087 Ofl_desc *, Elf64_Word, Rej_desc *); 572926dd2eSrie 585aefb655Srieuintptr_t ld32_reloc_init(Ofl_desc *); 592926dd2eSrieuintptr_t ld64_reloc_init(Ofl_desc *); 602926dd2eSrieuintptr_t ld32_reloc_process(Ofl_desc *); 615aefb655Srieuintptr_t ld64_reloc_process(Ofl_desc *); 625aefb655Srie 635aefb655Srieuintptr_t ld32_sym_validate(Ofl_desc *); 645aefb655Srieuintptr_t ld64_sym_validate(Ofl_desc *); 655aefb655Srie 665aefb655Srieuintptr_t ld32_update_outfile(Ofl_desc *); 675aefb655Srieuintptr_t ld64_update_outfile(Ofl_desc *); 68