1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate /* Copyright (c) 1988 AT&T */ 23*7c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 24*7c478bd9Sstevel@tonic-gate 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gate /* 27*7c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 28*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 29*7c478bd9Sstevel@tonic-gate */ 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gate #ifndef _SYS_LINK_H 32*7c478bd9Sstevel@tonic-gate #define _SYS_LINK_H 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate #ifndef _ASM 37*7c478bd9Sstevel@tonic-gate #include <sys/types.h> 38*7c478bd9Sstevel@tonic-gate #include <sys/elftypes.h> 39*7c478bd9Sstevel@tonic-gate #endif 40*7c478bd9Sstevel@tonic-gate 41*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 42*7c478bd9Sstevel@tonic-gate extern "C" { 43*7c478bd9Sstevel@tonic-gate #endif 44*7c478bd9Sstevel@tonic-gate 45*7c478bd9Sstevel@tonic-gate /* 46*7c478bd9Sstevel@tonic-gate * Communication structures for the runtime linker. 47*7c478bd9Sstevel@tonic-gate */ 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate /* 50*7c478bd9Sstevel@tonic-gate * The following data structure provides a self-identifying union consisting 51*7c478bd9Sstevel@tonic-gate * of a tag from a known list and a value. 52*7c478bd9Sstevel@tonic-gate */ 53*7c478bd9Sstevel@tonic-gate #ifndef _ASM 54*7c478bd9Sstevel@tonic-gate typedef struct { 55*7c478bd9Sstevel@tonic-gate Elf32_Sword d_tag; /* how to interpret value */ 56*7c478bd9Sstevel@tonic-gate union { 57*7c478bd9Sstevel@tonic-gate Elf32_Word d_val; 58*7c478bd9Sstevel@tonic-gate Elf32_Addr d_ptr; 59*7c478bd9Sstevel@tonic-gate Elf32_Off d_off; 60*7c478bd9Sstevel@tonic-gate } d_un; 61*7c478bd9Sstevel@tonic-gate } Elf32_Dyn; 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gate #if defined(_LP64) || defined(_LONGLONG_TYPE) 64*7c478bd9Sstevel@tonic-gate typedef struct { 65*7c478bd9Sstevel@tonic-gate Elf64_Xword d_tag; /* how to interpret value */ 66*7c478bd9Sstevel@tonic-gate union { 67*7c478bd9Sstevel@tonic-gate Elf64_Xword d_val; 68*7c478bd9Sstevel@tonic-gate Elf64_Addr d_ptr; 69*7c478bd9Sstevel@tonic-gate } d_un; 70*7c478bd9Sstevel@tonic-gate } Elf64_Dyn; 71*7c478bd9Sstevel@tonic-gate #endif /* defined(_LP64) || defined(_LONGLONG_TYPE) */ 72*7c478bd9Sstevel@tonic-gate #endif /* _ASM */ 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gate /* 75*7c478bd9Sstevel@tonic-gate * Tag values 76*7c478bd9Sstevel@tonic-gate */ 77*7c478bd9Sstevel@tonic-gate #define DT_NULL 0 /* last entry in list */ 78*7c478bd9Sstevel@tonic-gate #define DT_NEEDED 1 /* a needed object */ 79*7c478bd9Sstevel@tonic-gate #define DT_PLTRELSZ 2 /* size of relocations for the PLT */ 80*7c478bd9Sstevel@tonic-gate #define DT_PLTGOT 3 /* addresses used by procedure linkage table */ 81*7c478bd9Sstevel@tonic-gate #define DT_HASH 4 /* hash table */ 82*7c478bd9Sstevel@tonic-gate #define DT_STRTAB 5 /* string table */ 83*7c478bd9Sstevel@tonic-gate #define DT_SYMTAB 6 /* symbol table */ 84*7c478bd9Sstevel@tonic-gate #define DT_RELA 7 /* addr of relocation entries */ 85*7c478bd9Sstevel@tonic-gate #define DT_RELASZ 8 /* size of relocation table */ 86*7c478bd9Sstevel@tonic-gate #define DT_RELAENT 9 /* base size of relocation entry */ 87*7c478bd9Sstevel@tonic-gate #define DT_STRSZ 10 /* size of string table */ 88*7c478bd9Sstevel@tonic-gate #define DT_SYMENT 11 /* size of symbol table entry */ 89*7c478bd9Sstevel@tonic-gate #define DT_INIT 12 /* _init addr */ 90*7c478bd9Sstevel@tonic-gate #define DT_FINI 13 /* _fini addr */ 91*7c478bd9Sstevel@tonic-gate #define DT_SONAME 14 /* name of this shared object */ 92*7c478bd9Sstevel@tonic-gate #define DT_RPATH 15 /* run-time search path */ 93*7c478bd9Sstevel@tonic-gate #define DT_SYMBOLIC 16 /* shared object linked -Bsymbolic */ 94*7c478bd9Sstevel@tonic-gate #define DT_REL 17 /* addr of relocation entries */ 95*7c478bd9Sstevel@tonic-gate #define DT_RELSZ 18 /* size of relocation table */ 96*7c478bd9Sstevel@tonic-gate #define DT_RELENT 19 /* base size of relocation entry */ 97*7c478bd9Sstevel@tonic-gate #define DT_PLTREL 20 /* relocation type for PLT entry */ 98*7c478bd9Sstevel@tonic-gate #define DT_DEBUG 21 /* pointer to r_debug structure */ 99*7c478bd9Sstevel@tonic-gate #define DT_TEXTREL 22 /* text relocations remain for this object */ 100*7c478bd9Sstevel@tonic-gate #define DT_JMPREL 23 /* pointer to the PLT relocation entries */ 101*7c478bd9Sstevel@tonic-gate #define DT_BIND_NOW 24 /* perform all relocations at load of object */ 102*7c478bd9Sstevel@tonic-gate #define DT_INIT_ARRAY 25 /* pointer to .initarray */ 103*7c478bd9Sstevel@tonic-gate #define DT_FINI_ARRAY 26 /* pointer to .finiarray */ 104*7c478bd9Sstevel@tonic-gate #define DT_INIT_ARRAYSZ 27 /* size of .initarray */ 105*7c478bd9Sstevel@tonic-gate #define DT_FINI_ARRAYSZ 28 /* size of .finiarray */ 106*7c478bd9Sstevel@tonic-gate #define DT_RUNPATH 29 /* run-time search path */ 107*7c478bd9Sstevel@tonic-gate #define DT_FLAGS 30 /* state flags - see DF_* */ 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gate #define DT_ENCODING 32 /* DT_* encoding rules start after this */ 110*7c478bd9Sstevel@tonic-gate #define DT_PREINIT_ARRAY 32 /* pointer to .preinitarray segment */ 111*7c478bd9Sstevel@tonic-gate #define DT_PREINIT_ARRAYSZ 33 /* size of .preinitarray segment */ 112*7c478bd9Sstevel@tonic-gate 113*7c478bd9Sstevel@tonic-gate #define DT_MAXPOSTAGS 34 /* number of positive tags */ 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gate #define DT_LOOS 0x6000000d /* OS specific range */ 116*7c478bd9Sstevel@tonic-gate #define DT_SUNW_AUXILIARY 0x6000000d /* symbol auxiliary name */ 117*7c478bd9Sstevel@tonic-gate #define DT_SUNW_RTLDINF 0x6000000e /* ld.so.1 info (private) */ 118*7c478bd9Sstevel@tonic-gate #define DT_SUNW_FILTER 0x6000000f /* symbol filter name */ 119*7c478bd9Sstevel@tonic-gate #define DT_SUNW_CAP 0x60000010 /* hardware/software */ 120*7c478bd9Sstevel@tonic-gate /* capabilities */ 121*7c478bd9Sstevel@tonic-gate #define DT_HIOS 0x6ffff000 122*7c478bd9Sstevel@tonic-gate 123*7c478bd9Sstevel@tonic-gate /* 124*7c478bd9Sstevel@tonic-gate * The following values have been deprecated and remain here to allow 125*7c478bd9Sstevel@tonic-gate * compatibility with older binaries. 126*7c478bd9Sstevel@tonic-gate */ 127*7c478bd9Sstevel@tonic-gate #define DT_DEPRECATED_SPARC_REGISTER 0x7000001 128*7c478bd9Sstevel@tonic-gate 129*7c478bd9Sstevel@tonic-gate /* 130*7c478bd9Sstevel@tonic-gate * DT_* entries which fall between DT_VALRNGHI & DT_VALRNGLO use the 131*7c478bd9Sstevel@tonic-gate * Dyn.d_un.d_val field of the Elf*_Dyn structure. 132*7c478bd9Sstevel@tonic-gate */ 133*7c478bd9Sstevel@tonic-gate #define DT_VALRNGLO 0x6ffffd00 134*7c478bd9Sstevel@tonic-gate #define DT_CHECKSUM 0x6ffffdf8 /* elf checksum */ 135*7c478bd9Sstevel@tonic-gate #define DT_PLTPADSZ 0x6ffffdf9 /* pltpadding size */ 136*7c478bd9Sstevel@tonic-gate #define DT_MOVEENT 0x6ffffdfa /* move table entry size */ 137*7c478bd9Sstevel@tonic-gate #define DT_MOVESZ 0x6ffffdfb /* move table size */ 138*7c478bd9Sstevel@tonic-gate #define DT_FEATURE_1 0x6ffffdfc /* feature holder */ 139*7c478bd9Sstevel@tonic-gate #define DT_POSFLAG_1 0x6ffffdfd /* flags for DT_* entries, effecting */ 140*7c478bd9Sstevel@tonic-gate /* the following DT_* entry. */ 141*7c478bd9Sstevel@tonic-gate /* See DF_P1_* definitions */ 142*7c478bd9Sstevel@tonic-gate #define DT_SYMINSZ 0x6ffffdfe /* syminfo table size (in bytes) */ 143*7c478bd9Sstevel@tonic-gate #define DT_SYMINENT 0x6ffffdff /* syminfo entry size (in bytes) */ 144*7c478bd9Sstevel@tonic-gate #define DT_VALRNGHI 0x6ffffdff 145*7c478bd9Sstevel@tonic-gate 146*7c478bd9Sstevel@tonic-gate /* 147*7c478bd9Sstevel@tonic-gate * DT_* entries which fall between DT_ADDRRNGHI & DT_ADDRRNGLO use the 148*7c478bd9Sstevel@tonic-gate * Dyn.d_un.d_ptr field of the Elf*_Dyn structure. 149*7c478bd9Sstevel@tonic-gate * 150*7c478bd9Sstevel@tonic-gate * If any adjustment is made to the ELF object after it has been 151*7c478bd9Sstevel@tonic-gate * built, these entries will need to be adjusted. 152*7c478bd9Sstevel@tonic-gate */ 153*7c478bd9Sstevel@tonic-gate #define DT_ADDRRNGLO 0x6ffffe00 154*7c478bd9Sstevel@tonic-gate #define DT_CONFIG 0x6ffffefa /* configuration information */ 155*7c478bd9Sstevel@tonic-gate #define DT_DEPAUDIT 0x6ffffefb /* dependency auditing */ 156*7c478bd9Sstevel@tonic-gate #define DT_AUDIT 0x6ffffefc /* object auditing */ 157*7c478bd9Sstevel@tonic-gate #define DT_PLTPAD 0x6ffffefd /* pltpadding (sparcv9) */ 158*7c478bd9Sstevel@tonic-gate #define DT_MOVETAB 0x6ffffefe /* move table */ 159*7c478bd9Sstevel@tonic-gate #define DT_SYMINFO 0x6ffffeff /* syminfo table */ 160*7c478bd9Sstevel@tonic-gate #define DT_ADDRRNGHI 0x6ffffeff 161*7c478bd9Sstevel@tonic-gate 162*7c478bd9Sstevel@tonic-gate /* 163*7c478bd9Sstevel@tonic-gate * The following DT_* entries should have been assigned within one of the 164*7c478bd9Sstevel@tonic-gate * DT_* ranges, but existed before such ranges had been established. 165*7c478bd9Sstevel@tonic-gate */ 166*7c478bd9Sstevel@tonic-gate #define DT_VERSYM 0x6ffffff0 /* version symbol table - unused */ 167*7c478bd9Sstevel@tonic-gate 168*7c478bd9Sstevel@tonic-gate #define DT_RELACOUNT 0x6ffffff9 /* number of RELATIVE relocations */ 169*7c478bd9Sstevel@tonic-gate #define DT_RELCOUNT 0x6ffffffa /* number of RELATIVE relocations */ 170*7c478bd9Sstevel@tonic-gate #define DT_FLAGS_1 0x6ffffffb /* state flags - see DF_1_* defs */ 171*7c478bd9Sstevel@tonic-gate #define DT_VERDEF 0x6ffffffc /* version definition table and */ 172*7c478bd9Sstevel@tonic-gate #define DT_VERDEFNUM 0x6ffffffd /* associated no. of entries */ 173*7c478bd9Sstevel@tonic-gate #define DT_VERNEED 0x6ffffffe /* version needed table and */ 174*7c478bd9Sstevel@tonic-gate #define DT_VERNEEDNUM 0x6fffffff /* associated no. of entries */ 175*7c478bd9Sstevel@tonic-gate 176*7c478bd9Sstevel@tonic-gate /* 177*7c478bd9Sstevel@tonic-gate * DT_* entries between DT_HIPROC and DT_LOPROC are reserved for processor 178*7c478bd9Sstevel@tonic-gate * specific semantics. 179*7c478bd9Sstevel@tonic-gate */ 180*7c478bd9Sstevel@tonic-gate #define DT_LOPROC 0x70000000 /* processor specific range */ 181*7c478bd9Sstevel@tonic-gate #define DT_AUXILIARY 0x7ffffffd /* shared library auxiliary name */ 182*7c478bd9Sstevel@tonic-gate #define DT_USED 0x7ffffffe /* ignored - same as needed */ 183*7c478bd9Sstevel@tonic-gate #define DT_FILTER 0x7fffffff /* shared library filter name */ 184*7c478bd9Sstevel@tonic-gate #define DT_HIPROC 0x7fffffff 185*7c478bd9Sstevel@tonic-gate 186*7c478bd9Sstevel@tonic-gate 187*7c478bd9Sstevel@tonic-gate /* 188*7c478bd9Sstevel@tonic-gate * Values for DT_FLAGS 189*7c478bd9Sstevel@tonic-gate */ 190*7c478bd9Sstevel@tonic-gate #define DF_ORIGIN 0x00000001 /* ORIGIN processing required */ 191*7c478bd9Sstevel@tonic-gate #define DF_SYMBOLIC 0x00000002 /* symbolic bindings in effect */ 192*7c478bd9Sstevel@tonic-gate #define DF_TEXTREL 0x00000004 /* text relocations remain */ 193*7c478bd9Sstevel@tonic-gate #define DF_BIND_NOW 0x00000008 /* process all relocations */ 194*7c478bd9Sstevel@tonic-gate #define DF_STATIC_TLS 0x00000010 /* obj. contains static TLS refs */ 195*7c478bd9Sstevel@tonic-gate 196*7c478bd9Sstevel@tonic-gate /* 197*7c478bd9Sstevel@tonic-gate * Values for the DT_POSFLAG_1 .dynamic entry. 198*7c478bd9Sstevel@tonic-gate * These values only affect the following DT_* entry. 199*7c478bd9Sstevel@tonic-gate */ 200*7c478bd9Sstevel@tonic-gate #define DF_P1_LAZYLOAD 0x00000001 /* following object is to be */ 201*7c478bd9Sstevel@tonic-gate /* lazy loaded */ 202*7c478bd9Sstevel@tonic-gate #define DF_P1_GROUPPERM 0x00000002 /* following object's symbols are */ 203*7c478bd9Sstevel@tonic-gate /* not available for general */ 204*7c478bd9Sstevel@tonic-gate /* symbol bindings. */ 205*7c478bd9Sstevel@tonic-gate /* 206*7c478bd9Sstevel@tonic-gate * Values for the DT_FLAGS_1 .dynamic entry. 207*7c478bd9Sstevel@tonic-gate */ 208*7c478bd9Sstevel@tonic-gate #define DF_1_NOW 0x00000001 /* set RTLD_NOW for this object */ 209*7c478bd9Sstevel@tonic-gate #define DF_1_GLOBAL 0x00000002 /* set RTLD_GLOBAL for this object */ 210*7c478bd9Sstevel@tonic-gate #define DF_1_GROUP 0x00000004 /* set RTLD_GROUP for this object */ 211*7c478bd9Sstevel@tonic-gate #define DF_1_NODELETE 0x00000008 /* set RTLD_NODELETE for this object */ 212*7c478bd9Sstevel@tonic-gate #define DF_1_LOADFLTR 0x00000010 /* trigger filtee loading at runtime */ 213*7c478bd9Sstevel@tonic-gate #define DF_1_INITFIRST 0x00000020 /* set RTLD_INITFIRST for this object */ 214*7c478bd9Sstevel@tonic-gate #define DF_1_NOOPEN 0x00000040 /* set RTLD_NOOPEN for this object */ 215*7c478bd9Sstevel@tonic-gate #define DF_1_ORIGIN 0x00000080 /* ORIGIN processing required */ 216*7c478bd9Sstevel@tonic-gate #define DF_1_DIRECT 0x00000100 /* direct binding enabled */ 217*7c478bd9Sstevel@tonic-gate #define DF_1_TRANS 0x00000200 218*7c478bd9Sstevel@tonic-gate #define DF_1_INTERPOSE 0x00000400 /* object is an 'interposer' */ 219*7c478bd9Sstevel@tonic-gate #define DF_1_NODEFLIB 0x00000800 /* ignore default library search path */ 220*7c478bd9Sstevel@tonic-gate #define DF_1_NODUMP 0x00001000 /* object can't be dldump(3x)'ed */ 221*7c478bd9Sstevel@tonic-gate #define DF_1_CONFALT 0x00002000 /* configuration alternative created */ 222*7c478bd9Sstevel@tonic-gate #define DF_1_ENDFILTEE 0x00004000 /* filtee terminates filters search */ 223*7c478bd9Sstevel@tonic-gate #define DF_1_DISPRELDNE 0x00008000 /* disp reloc applied at build time */ 224*7c478bd9Sstevel@tonic-gate #define DF_1_DISPRELPND 0x00010000 /* disp reloc applied at run-time */ 225*7c478bd9Sstevel@tonic-gate #define DF_1_NODIRECT 0x00020000 /* object contains symbols that */ 226*7c478bd9Sstevel@tonic-gate /* cannot be directly bound to */ 227*7c478bd9Sstevel@tonic-gate #define DF_1_IGNMULDEF 0x00040000 /* krtld link should muldef'd syms */ 228*7c478bd9Sstevel@tonic-gate #define DF_1_NOKSYMS 0x00080000 /* object's symbols should not be */ 229*7c478bd9Sstevel@tonic-gate /* exported via /dev/ksyms */ 230*7c478bd9Sstevel@tonic-gate #define DF_1_NORELOC 0x00400000 231*7c478bd9Sstevel@tonic-gate 232*7c478bd9Sstevel@tonic-gate /* 233*7c478bd9Sstevel@tonic-gate * Values set to DT_FEATURE tag's d_val. 234*7c478bd9Sstevel@tonic-gate */ 235*7c478bd9Sstevel@tonic-gate #define DTF_1_PARINIT 0x00000001 /* partially initialization feature */ 236*7c478bd9Sstevel@tonic-gate #define DTF_1_CONFEXP 0x00000002 /* configuration file expected */ 237*7c478bd9Sstevel@tonic-gate 238*7c478bd9Sstevel@tonic-gate 239*7c478bd9Sstevel@tonic-gate /* 240*7c478bd9Sstevel@tonic-gate * Version structures. There are three types of version structure: 241*7c478bd9Sstevel@tonic-gate * 242*7c478bd9Sstevel@tonic-gate * o A definition of the versions within the image itself. 243*7c478bd9Sstevel@tonic-gate * Each version definition is assigned a unique index (starting from 244*7c478bd9Sstevel@tonic-gate * VER_NDX_BGNDEF) which is used to cross-reference symbols associated to 245*7c478bd9Sstevel@tonic-gate * the version. Each version can have one or more dependencies on other 246*7c478bd9Sstevel@tonic-gate * version definitions within the image. The version name, and any 247*7c478bd9Sstevel@tonic-gate * dependency names, are specified in the version definition auxiliary 248*7c478bd9Sstevel@tonic-gate * array. Version definition entries require a version symbol index table. 249*7c478bd9Sstevel@tonic-gate * 250*7c478bd9Sstevel@tonic-gate * o A version requirement on a needed dependency. Each needed entry 251*7c478bd9Sstevel@tonic-gate * specifies the shared object dependency (as specified in DT_NEEDED). 252*7c478bd9Sstevel@tonic-gate * One or more versions required from this dependency are specified in the 253*7c478bd9Sstevel@tonic-gate * version needed auxiliary array. 254*7c478bd9Sstevel@tonic-gate * 255*7c478bd9Sstevel@tonic-gate * o A version symbol index table. Each symbol indexes into this array 256*7c478bd9Sstevel@tonic-gate * to determine its version index. Index values of VER_NDX_BGNDEF or 257*7c478bd9Sstevel@tonic-gate * greater indicate the version definition to which a symbol is associated. 258*7c478bd9Sstevel@tonic-gate * (the size of a symbol index entry is recorded in the sh_info field). 259*7c478bd9Sstevel@tonic-gate */ 260*7c478bd9Sstevel@tonic-gate #ifndef _ASM 261*7c478bd9Sstevel@tonic-gate 262*7c478bd9Sstevel@tonic-gate typedef struct { /* Version Definition Structure. */ 263*7c478bd9Sstevel@tonic-gate Elf32_Half vd_version; /* this structures version revision */ 264*7c478bd9Sstevel@tonic-gate Elf32_Half vd_flags; /* version information */ 265*7c478bd9Sstevel@tonic-gate Elf32_Half vd_ndx; /* version index */ 266*7c478bd9Sstevel@tonic-gate Elf32_Half vd_cnt; /* no. of associated aux entries */ 267*7c478bd9Sstevel@tonic-gate Elf32_Word vd_hash; /* version name hash value */ 268*7c478bd9Sstevel@tonic-gate Elf32_Word vd_aux; /* no. of bytes from start of this */ 269*7c478bd9Sstevel@tonic-gate /* verdef to verdaux array */ 270*7c478bd9Sstevel@tonic-gate Elf32_Word vd_next; /* no. of bytes from start of this */ 271*7c478bd9Sstevel@tonic-gate } Elf32_Verdef; /* verdef to next verdef entry */ 272*7c478bd9Sstevel@tonic-gate 273*7c478bd9Sstevel@tonic-gate typedef struct { /* Verdef Auxiliary Structure. */ 274*7c478bd9Sstevel@tonic-gate Elf32_Word vda_name; /* first element defines the version */ 275*7c478bd9Sstevel@tonic-gate /* name. Additional entries */ 276*7c478bd9Sstevel@tonic-gate /* define dependency names. */ 277*7c478bd9Sstevel@tonic-gate Elf32_Word vda_next; /* no. of bytes from start of this */ 278*7c478bd9Sstevel@tonic-gate } Elf32_Verdaux; /* verdaux to next verdaux entry */ 279*7c478bd9Sstevel@tonic-gate 280*7c478bd9Sstevel@tonic-gate 281*7c478bd9Sstevel@tonic-gate typedef struct { /* Version Requirement Structure. */ 282*7c478bd9Sstevel@tonic-gate Elf32_Half vn_version; /* this structures version revision */ 283*7c478bd9Sstevel@tonic-gate Elf32_Half vn_cnt; /* no. of associated aux entries */ 284*7c478bd9Sstevel@tonic-gate Elf32_Word vn_file; /* name of needed dependency (file) */ 285*7c478bd9Sstevel@tonic-gate Elf32_Word vn_aux; /* no. of bytes from start of this */ 286*7c478bd9Sstevel@tonic-gate /* verneed to vernaux array */ 287*7c478bd9Sstevel@tonic-gate Elf32_Word vn_next; /* no. of bytes from start of this */ 288*7c478bd9Sstevel@tonic-gate } Elf32_Verneed; /* verneed to next verneed entry */ 289*7c478bd9Sstevel@tonic-gate 290*7c478bd9Sstevel@tonic-gate typedef struct { /* Verneed Auxiliary Structure. */ 291*7c478bd9Sstevel@tonic-gate Elf32_Word vna_hash; /* version name hash value */ 292*7c478bd9Sstevel@tonic-gate Elf32_Half vna_flags; /* version information */ 293*7c478bd9Sstevel@tonic-gate Elf32_Half vna_other; 294*7c478bd9Sstevel@tonic-gate Elf32_Word vna_name; /* version name */ 295*7c478bd9Sstevel@tonic-gate Elf32_Word vna_next; /* no. of bytes from start of this */ 296*7c478bd9Sstevel@tonic-gate } Elf32_Vernaux; /* vernaux to next vernaux entry */ 297*7c478bd9Sstevel@tonic-gate 298*7c478bd9Sstevel@tonic-gate typedef Elf32_Half Elf32_Versym; /* Version symbol index array */ 299*7c478bd9Sstevel@tonic-gate 300*7c478bd9Sstevel@tonic-gate typedef struct { 301*7c478bd9Sstevel@tonic-gate Elf32_Half si_boundto; /* direct bindings - symbol bound to */ 302*7c478bd9Sstevel@tonic-gate Elf32_Half si_flags; /* per symbol flags */ 303*7c478bd9Sstevel@tonic-gate } Elf32_Syminfo; 304*7c478bd9Sstevel@tonic-gate 305*7c478bd9Sstevel@tonic-gate 306*7c478bd9Sstevel@tonic-gate #if defined(_LP64) || defined(_LONGLONG_TYPE) 307*7c478bd9Sstevel@tonic-gate typedef struct { 308*7c478bd9Sstevel@tonic-gate Elf64_Half vd_version; /* this structures version revision */ 309*7c478bd9Sstevel@tonic-gate Elf64_Half vd_flags; /* version information */ 310*7c478bd9Sstevel@tonic-gate Elf64_Half vd_ndx; /* version index */ 311*7c478bd9Sstevel@tonic-gate Elf64_Half vd_cnt; /* no. of associated aux entries */ 312*7c478bd9Sstevel@tonic-gate Elf64_Word vd_hash; /* version name hash value */ 313*7c478bd9Sstevel@tonic-gate Elf64_Word vd_aux; /* no. of bytes from start of this */ 314*7c478bd9Sstevel@tonic-gate /* verdef to verdaux array */ 315*7c478bd9Sstevel@tonic-gate Elf64_Word vd_next; /* no. of bytes from start of this */ 316*7c478bd9Sstevel@tonic-gate } Elf64_Verdef; /* verdef to next verdef entry */ 317*7c478bd9Sstevel@tonic-gate 318*7c478bd9Sstevel@tonic-gate typedef struct { 319*7c478bd9Sstevel@tonic-gate Elf64_Word vda_name; /* first element defines the version */ 320*7c478bd9Sstevel@tonic-gate /* name. Additional entries */ 321*7c478bd9Sstevel@tonic-gate /* define dependency names. */ 322*7c478bd9Sstevel@tonic-gate Elf64_Word vda_next; /* no. of bytes from start of this */ 323*7c478bd9Sstevel@tonic-gate } Elf64_Verdaux; /* verdaux to next verdaux entry */ 324*7c478bd9Sstevel@tonic-gate 325*7c478bd9Sstevel@tonic-gate typedef struct { 326*7c478bd9Sstevel@tonic-gate Elf64_Half vn_version; /* this structures version revision */ 327*7c478bd9Sstevel@tonic-gate Elf64_Half vn_cnt; /* no. of associated aux entries */ 328*7c478bd9Sstevel@tonic-gate Elf64_Word vn_file; /* name of needed dependency (file) */ 329*7c478bd9Sstevel@tonic-gate Elf64_Word vn_aux; /* no. of bytes from start of this */ 330*7c478bd9Sstevel@tonic-gate /* verneed to vernaux array */ 331*7c478bd9Sstevel@tonic-gate Elf64_Word vn_next; /* no. of bytes from start of this */ 332*7c478bd9Sstevel@tonic-gate } Elf64_Verneed; /* verneed to next verneed entry */ 333*7c478bd9Sstevel@tonic-gate 334*7c478bd9Sstevel@tonic-gate typedef struct { 335*7c478bd9Sstevel@tonic-gate Elf64_Word vna_hash; /* version name hash value */ 336*7c478bd9Sstevel@tonic-gate Elf64_Half vna_flags; /* version information */ 337*7c478bd9Sstevel@tonic-gate Elf64_Half vna_other; 338*7c478bd9Sstevel@tonic-gate Elf64_Word vna_name; /* version name */ 339*7c478bd9Sstevel@tonic-gate Elf64_Word vna_next; /* no. of bytes from start of this */ 340*7c478bd9Sstevel@tonic-gate } Elf64_Vernaux; /* vernaux to next vernaux entry */ 341*7c478bd9Sstevel@tonic-gate 342*7c478bd9Sstevel@tonic-gate typedef Elf64_Half Elf64_Versym; 343*7c478bd9Sstevel@tonic-gate 344*7c478bd9Sstevel@tonic-gate typedef struct { 345*7c478bd9Sstevel@tonic-gate Elf64_Half si_boundto; /* direct bindings - symbol bound to */ 346*7c478bd9Sstevel@tonic-gate Elf64_Half si_flags; /* per symbol flags */ 347*7c478bd9Sstevel@tonic-gate } Elf64_Syminfo; 348*7c478bd9Sstevel@tonic-gate #endif /* defined(_LP64) || defined(_LONGLONG_TYPE) */ 349*7c478bd9Sstevel@tonic-gate 350*7c478bd9Sstevel@tonic-gate #endif /* _ASM */ 351*7c478bd9Sstevel@tonic-gate 352*7c478bd9Sstevel@tonic-gate /* 353*7c478bd9Sstevel@tonic-gate * Versym symbol index values. Values greater than VER_NDX_GLOBAL 354*7c478bd9Sstevel@tonic-gate * and less then VER_NDX_LORESERVE associate symbols with user 355*7c478bd9Sstevel@tonic-gate * specified version descriptors. 356*7c478bd9Sstevel@tonic-gate */ 357*7c478bd9Sstevel@tonic-gate #define VER_NDX_LOCAL 0 /* symbol is local */ 358*7c478bd9Sstevel@tonic-gate #define VER_NDX_GLOBAL 1 /* symbol is global and assigned to */ 359*7c478bd9Sstevel@tonic-gate /* the base version */ 360*7c478bd9Sstevel@tonic-gate #define VER_NDX_LORESERVE 0xff00 /* beginning of RESERVED entries */ 361*7c478bd9Sstevel@tonic-gate #define VER_NDX_ELIMINATE 0xff01 /* symbol is to be eliminated */ 362*7c478bd9Sstevel@tonic-gate 363*7c478bd9Sstevel@tonic-gate /* 364*7c478bd9Sstevel@tonic-gate * Verdef and Verneed (via Veraux) flags values. 365*7c478bd9Sstevel@tonic-gate */ 366*7c478bd9Sstevel@tonic-gate #define VER_FLG_BASE 0x1 /* version definition of file itself */ 367*7c478bd9Sstevel@tonic-gate #define VER_FLG_WEAK 0x2 /* weak version identifier */ 368*7c478bd9Sstevel@tonic-gate 369*7c478bd9Sstevel@tonic-gate /* 370*7c478bd9Sstevel@tonic-gate * Verdef version values. 371*7c478bd9Sstevel@tonic-gate */ 372*7c478bd9Sstevel@tonic-gate #define VER_DEF_NONE 0 /* Ver_def version */ 373*7c478bd9Sstevel@tonic-gate #define VER_DEF_CURRENT 1 374*7c478bd9Sstevel@tonic-gate #define VER_DEF_NUM 2 375*7c478bd9Sstevel@tonic-gate 376*7c478bd9Sstevel@tonic-gate /* 377*7c478bd9Sstevel@tonic-gate * Verneed version values. 378*7c478bd9Sstevel@tonic-gate */ 379*7c478bd9Sstevel@tonic-gate #define VER_NEED_NONE 0 /* Ver_need version */ 380*7c478bd9Sstevel@tonic-gate #define VER_NEED_CURRENT 1 381*7c478bd9Sstevel@tonic-gate #define VER_NEED_NUM 2 382*7c478bd9Sstevel@tonic-gate 383*7c478bd9Sstevel@tonic-gate 384*7c478bd9Sstevel@tonic-gate /* 385*7c478bd9Sstevel@tonic-gate * Syminfo flag values 386*7c478bd9Sstevel@tonic-gate */ 387*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_DIRECT 0x0001 /* symbol ref has direct association */ 388*7c478bd9Sstevel@tonic-gate /* to object containing defn. */ 389*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_PASSTHRU 0x0002 /* ignored - see SYMINFO_FLG_FILTER */ 390*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_COPY 0x0004 /* symbol is a copy-reloc */ 391*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_LAZYLOAD 0x0008 /* object containing defn should be */ 392*7c478bd9Sstevel@tonic-gate /* lazily-loaded */ 393*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_DIRECTBIND 0x0010 /* ref should be bound directly to */ 394*7c478bd9Sstevel@tonic-gate /* object containing defn. */ 395*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_NOEXTDIRECT 0x0020 /* don't let an external reference */ 396*7c478bd9Sstevel@tonic-gate /* directly bind to this symbol */ 397*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_FILTER 0x0002 /* symbol ref is associated to a */ 398*7c478bd9Sstevel@tonic-gate #define SYMINFO_FLG_AUXILIARY 0x0040 /* standard or auxiliary filter */ 399*7c478bd9Sstevel@tonic-gate 400*7c478bd9Sstevel@tonic-gate /* 401*7c478bd9Sstevel@tonic-gate * Syminfo.si_boundto values. 402*7c478bd9Sstevel@tonic-gate */ 403*7c478bd9Sstevel@tonic-gate #define SYMINFO_BT_SELF 0xffff /* symbol bound to self */ 404*7c478bd9Sstevel@tonic-gate #define SYMINFO_BT_PARENT 0xfffe /* symbol bound to parent */ 405*7c478bd9Sstevel@tonic-gate #define SYMINFO_BT_NONE 0xfffd /* no special symbol binding */ 406*7c478bd9Sstevel@tonic-gate #define SYMINFO_BT_EXTERN 0xfffc /* symbol defined as external */ 407*7c478bd9Sstevel@tonic-gate #define SYMINFO_BT_LOWRESERVE 0xff00 /* beginning of reserved entries */ 408*7c478bd9Sstevel@tonic-gate 409*7c478bd9Sstevel@tonic-gate /* 410*7c478bd9Sstevel@tonic-gate * Syminfo version values. 411*7c478bd9Sstevel@tonic-gate */ 412*7c478bd9Sstevel@tonic-gate #define SYMINFO_NONE 0 /* Syminfo version */ 413*7c478bd9Sstevel@tonic-gate #define SYMINFO_CURRENT 1 414*7c478bd9Sstevel@tonic-gate #define SYMINFO_NUM 2 415*7c478bd9Sstevel@tonic-gate 416*7c478bd9Sstevel@tonic-gate 417*7c478bd9Sstevel@tonic-gate /* 418*7c478bd9Sstevel@tonic-gate * Public structure defined and maintained within the runtime linker 419*7c478bd9Sstevel@tonic-gate */ 420*7c478bd9Sstevel@tonic-gate #ifndef _ASM 421*7c478bd9Sstevel@tonic-gate 422*7c478bd9Sstevel@tonic-gate typedef struct link_map Link_map; 423*7c478bd9Sstevel@tonic-gate 424*7c478bd9Sstevel@tonic-gate struct link_map { 425*7c478bd9Sstevel@tonic-gate unsigned long l_addr; /* address at which object is mapped */ 426*7c478bd9Sstevel@tonic-gate char *l_name; /* full name of loaded object */ 427*7c478bd9Sstevel@tonic-gate #ifdef _LP64 428*7c478bd9Sstevel@tonic-gate Elf64_Dyn *l_ld; /* dynamic structure of object */ 429*7c478bd9Sstevel@tonic-gate #else 430*7c478bd9Sstevel@tonic-gate Elf32_Dyn *l_ld; /* dynamic structure of object */ 431*7c478bd9Sstevel@tonic-gate #endif 432*7c478bd9Sstevel@tonic-gate Link_map *l_next; /* next link object */ 433*7c478bd9Sstevel@tonic-gate Link_map *l_prev; /* previous link object */ 434*7c478bd9Sstevel@tonic-gate char *l_refname; /* filters reference name */ 435*7c478bd9Sstevel@tonic-gate }; 436*7c478bd9Sstevel@tonic-gate 437*7c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 438*7c478bd9Sstevel@tonic-gate typedef struct link_map32 Link_map32; 439*7c478bd9Sstevel@tonic-gate 440*7c478bd9Sstevel@tonic-gate struct link_map32 { 441*7c478bd9Sstevel@tonic-gate Elf32_Word l_addr; 442*7c478bd9Sstevel@tonic-gate Elf32_Addr l_name; 443*7c478bd9Sstevel@tonic-gate Elf32_Addr l_ld; 444*7c478bd9Sstevel@tonic-gate Elf32_Addr l_next; 445*7c478bd9Sstevel@tonic-gate Elf32_Addr l_prev; 446*7c478bd9Sstevel@tonic-gate Elf32_Addr l_refname; 447*7c478bd9Sstevel@tonic-gate }; 448*7c478bd9Sstevel@tonic-gate #endif 449*7c478bd9Sstevel@tonic-gate 450*7c478bd9Sstevel@tonic-gate typedef enum { 451*7c478bd9Sstevel@tonic-gate RT_CONSISTENT, 452*7c478bd9Sstevel@tonic-gate RT_ADD, 453*7c478bd9Sstevel@tonic-gate RT_DELETE 454*7c478bd9Sstevel@tonic-gate } r_state_e; 455*7c478bd9Sstevel@tonic-gate 456*7c478bd9Sstevel@tonic-gate typedef enum { 457*7c478bd9Sstevel@tonic-gate RD_FL_NONE = 0, /* no flags */ 458*7c478bd9Sstevel@tonic-gate RD_FL_ODBG = (1<<0), /* old style debugger present */ 459*7c478bd9Sstevel@tonic-gate RD_FL_DBG = (1<<1) /* debugging enabled */ 460*7c478bd9Sstevel@tonic-gate } rd_flags_e; 461*7c478bd9Sstevel@tonic-gate 462*7c478bd9Sstevel@tonic-gate 463*7c478bd9Sstevel@tonic-gate 464*7c478bd9Sstevel@tonic-gate /* 465*7c478bd9Sstevel@tonic-gate * Debugging events enabled inside of the runtime linker. To 466*7c478bd9Sstevel@tonic-gate * access these events see the librtld_db interface. 467*7c478bd9Sstevel@tonic-gate */ 468*7c478bd9Sstevel@tonic-gate typedef enum { 469*7c478bd9Sstevel@tonic-gate RD_NONE = 0, /* no event */ 470*7c478bd9Sstevel@tonic-gate RD_PREINIT, /* the Initial rendezvous before .init */ 471*7c478bd9Sstevel@tonic-gate RD_POSTINIT, /* the Second rendezvous after .init */ 472*7c478bd9Sstevel@tonic-gate RD_DLACTIVITY /* a dlopen or dlclose has happened */ 473*7c478bd9Sstevel@tonic-gate } rd_event_e; 474*7c478bd9Sstevel@tonic-gate 475*7c478bd9Sstevel@tonic-gate struct r_debug { 476*7c478bd9Sstevel@tonic-gate int r_version; /* debugging info version no. */ 477*7c478bd9Sstevel@tonic-gate Link_map *r_map; /* address of link_map */ 478*7c478bd9Sstevel@tonic-gate unsigned long r_brk; /* address of update routine */ 479*7c478bd9Sstevel@tonic-gate r_state_e r_state; 480*7c478bd9Sstevel@tonic-gate unsigned long r_ldbase; /* base addr of ld.so */ 481*7c478bd9Sstevel@tonic-gate Link_map *r_ldsomap; /* address of ld.so.1's link map */ 482*7c478bd9Sstevel@tonic-gate rd_event_e r_rdevent; /* debug event */ 483*7c478bd9Sstevel@tonic-gate rd_flags_e r_flags; /* misc flags. */ 484*7c478bd9Sstevel@tonic-gate }; 485*7c478bd9Sstevel@tonic-gate 486*7c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 487*7c478bd9Sstevel@tonic-gate struct r_debug32 { 488*7c478bd9Sstevel@tonic-gate Elf32_Word r_version; /* debugging info version no. */ 489*7c478bd9Sstevel@tonic-gate Elf32_Addr r_map; /* address of link_map */ 490*7c478bd9Sstevel@tonic-gate Elf32_Word r_brk; /* address of update routine */ 491*7c478bd9Sstevel@tonic-gate r_state_e r_state; 492*7c478bd9Sstevel@tonic-gate Elf32_Word r_ldbase; /* base addr of ld.so */ 493*7c478bd9Sstevel@tonic-gate Elf32_Addr r_ldsomap; /* address of ld.so.1's link map */ 494*7c478bd9Sstevel@tonic-gate rd_event_e r_rdevent; /* debug event */ 495*7c478bd9Sstevel@tonic-gate rd_flags_e r_flags; /* misc flags. */ 496*7c478bd9Sstevel@tonic-gate }; 497*7c478bd9Sstevel@tonic-gate #endif 498*7c478bd9Sstevel@tonic-gate 499*7c478bd9Sstevel@tonic-gate 500*7c478bd9Sstevel@tonic-gate #define R_DEBUG_VERSION 2 /* current r_debug version */ 501*7c478bd9Sstevel@tonic-gate #endif /* _ASM */ 502*7c478bd9Sstevel@tonic-gate 503*7c478bd9Sstevel@tonic-gate /* 504*7c478bd9Sstevel@tonic-gate * Attribute/value structures used to bootstrap ELF-based dynamic linker. 505*7c478bd9Sstevel@tonic-gate */ 506*7c478bd9Sstevel@tonic-gate #ifndef _ASM 507*7c478bd9Sstevel@tonic-gate typedef struct { 508*7c478bd9Sstevel@tonic-gate Elf32_Sword eb_tag; /* what this one is */ 509*7c478bd9Sstevel@tonic-gate union { /* possible values */ 510*7c478bd9Sstevel@tonic-gate Elf32_Word eb_val; 511*7c478bd9Sstevel@tonic-gate Elf32_Addr eb_ptr; 512*7c478bd9Sstevel@tonic-gate Elf32_Off eb_off; 513*7c478bd9Sstevel@tonic-gate } eb_un; 514*7c478bd9Sstevel@tonic-gate } Elf32_Boot; 515*7c478bd9Sstevel@tonic-gate 516*7c478bd9Sstevel@tonic-gate #if defined(_LP64) || defined(_LONGLONG_TYPE) 517*7c478bd9Sstevel@tonic-gate typedef struct { 518*7c478bd9Sstevel@tonic-gate Elf64_Xword eb_tag; /* what this one is */ 519*7c478bd9Sstevel@tonic-gate union { /* possible values */ 520*7c478bd9Sstevel@tonic-gate Elf64_Xword eb_val; 521*7c478bd9Sstevel@tonic-gate Elf64_Addr eb_ptr; 522*7c478bd9Sstevel@tonic-gate Elf64_Off eb_off; 523*7c478bd9Sstevel@tonic-gate } eb_un; 524*7c478bd9Sstevel@tonic-gate } Elf64_Boot; 525*7c478bd9Sstevel@tonic-gate #endif /* defined(_LP64) || defined(_LONGLONG_TYPE) */ 526*7c478bd9Sstevel@tonic-gate #endif /* _ASM */ 527*7c478bd9Sstevel@tonic-gate 528*7c478bd9Sstevel@tonic-gate /* 529*7c478bd9Sstevel@tonic-gate * Attributes 530*7c478bd9Sstevel@tonic-gate */ 531*7c478bd9Sstevel@tonic-gate #define EB_NULL 0 /* (void) last entry */ 532*7c478bd9Sstevel@tonic-gate #define EB_DYNAMIC 1 /* (*) dynamic structure of subject */ 533*7c478bd9Sstevel@tonic-gate #define EB_LDSO_BASE 2 /* (caddr_t) base address of ld.so */ 534*7c478bd9Sstevel@tonic-gate #define EB_ARGV 3 /* (caddr_t) argument vector */ 535*7c478bd9Sstevel@tonic-gate #define EB_ENVP 4 /* (char **) environment strings */ 536*7c478bd9Sstevel@tonic-gate #define EB_AUXV 5 /* (auxv_t *) auxiliary vector */ 537*7c478bd9Sstevel@tonic-gate #define EB_DEVZERO 6 /* (int) fd for /dev/zero */ 538*7c478bd9Sstevel@tonic-gate #define EB_PAGESIZE 7 /* (int) page size */ 539*7c478bd9Sstevel@tonic-gate #define EB_MAX 8 /* number of "EBs" */ 540*7c478bd9Sstevel@tonic-gate #define EB_MAX_SIZE32 64 /* size in bytes, _ILP32 */ 541*7c478bd9Sstevel@tonic-gate #define EB_MAX_SIZE64 128 /* size in bytes, _LP64 */ 542*7c478bd9Sstevel@tonic-gate 543*7c478bd9Sstevel@tonic-gate 544*7c478bd9Sstevel@tonic-gate #ifndef _ASM 545*7c478bd9Sstevel@tonic-gate 546*7c478bd9Sstevel@tonic-gate #ifdef __STDC__ 547*7c478bd9Sstevel@tonic-gate 548*7c478bd9Sstevel@tonic-gate /* 549*7c478bd9Sstevel@tonic-gate * Concurrency communication structure for libc callbacks. 550*7c478bd9Sstevel@tonic-gate */ 551*7c478bd9Sstevel@tonic-gate extern void _ld_libc(void *); 552*7c478bd9Sstevel@tonic-gate #else /* __STDC__ */ 553*7c478bd9Sstevel@tonic-gate extern void _ld_libc(); 554*7c478bd9Sstevel@tonic-gate #endif /* __STDC__ */ 555*7c478bd9Sstevel@tonic-gate 556*7c478bd9Sstevel@tonic-gate #pragma unknown_control_flow(_ld_libc) 557*7c478bd9Sstevel@tonic-gate #endif /* _ASM */ 558*7c478bd9Sstevel@tonic-gate 559*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 560*7c478bd9Sstevel@tonic-gate } 561*7c478bd9Sstevel@tonic-gate #endif 562*7c478bd9Sstevel@tonic-gate 563*7c478bd9Sstevel@tonic-gate #endif /* _SYS_LINK_H */ 564