link.h (9335) | link.h (13771) |
---|---|
1/* 2 * Copyright (c) 1993 Paul Kranenburg 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. All advertising materials mentioning features or use of this software 14 * must display the following acknowledgement: 15 * This product includes software developed by Paul Kranenburg. 16 * 4. The name of the author may not be used to endorse or promote products | 1/* 2 * Copyright (c) 1993 Paul Kranenburg 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. All advertising materials mentioning features or use of this software 14 * must display the following acknowledgement: 15 * This product includes software developed by Paul Kranenburg. 16 * 4. The name of the author may not be used to endorse or promote products |
17 * derived from this software withough specific prior written permission | 17 * derived from this software without specific prior written permission |
18 * 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * | 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $Id: link.h,v 1.4 1995/03/04 17:49:20 nate Exp $ | 30 * $Id: link.h,v 1.5 1995/06/27 09:52:59 dfr Exp $ |
31 */ 32 33/* 34 * RRS section definitions. 35 * 36 * The layout of some data structures defined in this header file is 37 * such that we can provide compatibility with the SunOS 4.x shared 38 * library scheme. 39 */ 40 41#ifndef _LINK_H_ 42#define _LINK_H_ 43 44/* | 31 */ 32 33/* 34 * RRS section definitions. 35 * 36 * The layout of some data structures defined in this header file is 37 * such that we can provide compatibility with the SunOS 4.x shared 38 * library scheme. 39 */ 40 41#ifndef _LINK_H_ 42#define _LINK_H_ 43 44/* |
45 * A `Shared Object Descriptor' descibes a shared object that is needed | 45 * A `Shared Object Descriptor' describes a shared object that is needed |
46 * to complete the link edit process of the object containing it. 47 * A list of such objects (chained through `sod_next') is pointed at 48 * by `sdt_sods' in the section_dispatch_table structure. 49 */ 50 51struct sod { /* Shared Object Descriptor */ 52 long sod_name; /* name (relative to load address) */ 53 u_int sod_library : 1, /* Searched for by library rules */ --- 178 unchanged lines hidden (view full) --- 232#define LD_STRSZ(x) ((x)->d_un.d_sdt->sdt_str_sz) 233#define LD_TEXTSZ(x) ((x)->d_un.d_sdt->sdt_text_sz) 234 235/* 236 * Interface to ld.so 237 */ 238struct crt_ldso { 239 int crt_ba; /* Base address of ld.so */ | 46 * to complete the link edit process of the object containing it. 47 * A list of such objects (chained through `sod_next') is pointed at 48 * by `sdt_sods' in the section_dispatch_table structure. 49 */ 50 51struct sod { /* Shared Object Descriptor */ 52 long sod_name; /* name (relative to load address) */ 53 u_int sod_library : 1, /* Searched for by library rules */ --- 178 unchanged lines hidden (view full) --- 232#define LD_STRSZ(x) ((x)->d_un.d_sdt->sdt_str_sz) 233#define LD_TEXTSZ(x) ((x)->d_un.d_sdt->sdt_text_sz) 234 235/* 236 * Interface to ld.so 237 */ 238struct crt_ldso { 239 int crt_ba; /* Base address of ld.so */ |
240 int crt_dzfd; /* "/dev/zero" file decriptor (SunOS) */ | 240 int crt_dzfd; /* "/dev/zero" file descriptor (SunOS) */ |
241 int crt_ldfd; /* ld.so file descriptor */ 242 struct _dynamic *crt_dp; /* Main's __DYNAMIC */ 243 char **crt_ep; /* environment strings */ 244 caddr_t crt_bp; /* Breakpoint if run from debugger */ 245 char *crt_prog; /* Program name (v3) */ 246 char *crt_ldso; /* Link editor name (v4) */ 247 struct ld_entry *crt_ldentry; /* dl*() access (v4) */ 248}; --- 49 unchanged lines hidden --- | 241 int crt_ldfd; /* ld.so file descriptor */ 242 struct _dynamic *crt_dp; /* Main's __DYNAMIC */ 243 char **crt_ep; /* environment strings */ 244 caddr_t crt_bp; /* Breakpoint if run from debugger */ 245 char *crt_prog; /* Program name (v3) */ 246 char *crt_ldso; /* Link editor name (v4) */ 247 struct ld_entry *crt_ldentry; /* dl*() access (v4) */ 248}; --- 49 unchanged lines hidden --- |