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