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.
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.
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]
23 * Copyright (c) 1988 AT&T
26 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
36 Ld_heap
*ld_heap
; /* list of allocated blocks for */
37 /* link-edit dynamic allocations */
38 APlist
*lib_support
; /* list of support libraries specified */
40 int demangle_flag
; /* symbol demangling required */
43 * Paths and directories for library searches. These are used to set up
44 * linked lists of directories which are maintained in the ofl structure.
46 char *Plibpath
; /* User specified -YP or defaults to LIBPATH */
47 char *Llibdir
; /* User specified -YL */
48 char *Ulibdir
; /* User specified -YU */
51 * A default library search path is used if one was not supplied on the command
52 * line. Note: these strings can not use MSG_ORIG() since they are modified as
53 * part of the path processing.
55 char def64_Plibpath
[] = "/lib/64:/usr/lib/64";
56 char def32_Plibpath
[] = "/usr/ccs/lib:/lib:/usr/lib";
59 * Rejected file error messages (indexed to match SGS_REJ_ values).
62 reject
[SGS_REJ_NUM
] = {
64 MSG_REJ_MACH
, /* MSG_INTL(MSG_REJ_MACH) */
65 MSG_REJ_CLASS
, /* MSG_INTL(MSG_REJ_CLASS) */
66 MSG_REJ_DATA
, /* MSG_INTL(MSG_REJ_DATA) */
67 MSG_REJ_TYPE
, /* MSG_INTL(MSG_REJ_TYPE) */
68 MSG_REJ_BADFLAG
, /* MSG_INTL(MSG_REJ_BADFLAG) */
69 MSG_REJ_MISFLAG
, /* MSG_INTL(MSG_REJ_MISFLAG) */
70 MSG_REJ_VERSION
, /* MSG_INTL(MSG_REJ_VERSION) */
71 MSG_REJ_HAL
, /* MSG_INTL(MSG_REJ_HAL) */
72 MSG_REJ_US3
, /* MSG_INTL(MSG_REJ_US3) */
73 MSG_REJ_STR
, /* MSG_INTL(MSG_REJ_STR) */
74 MSG_REJ_UNKFILE
, /* MSG_INTL(MSG_REJ_UNKFILE) */
75 MSG_REJ_UNKCAP
, /* MSG_INTL(MSG_REJ_UNKCAP) */
76 MSG_REJ_HWCAP_1
, /* MSG_INTL(MSG_REJ_HWCAP_1) */
77 MSG_REJ_SFCAP_1
, /* MSG_INTL(MSG_REJ_SFCAP_1) */
78 MSG_REJ_MACHCAP
, /* MSG_INTL(MSG_REJ_MACHCAP) */
79 MSG_REJ_PLATCAP
, /* MSG_INTL(MSG_REJ_PLATCAP) */
80 MSG_REJ_HWCAP_2
, /* MSG_INTL(MSG_REJ_HWCAP_2) */
81 MSG_REJ_ARCHIVE
/* MSG_INTL(MSG_REJ_ARCHIVE) */
83 #if SGS_REJ_NUM != (SGS_REJ_ARCHIVE + 1)
84 #error SGS_REJ_NUM has changed
88 * Symbol types that we include in .SUNW_ldynsym sections
89 * (indexed by STT_ values).
93 0, /* STT_NOTYPE (not counting 1st slot) */
106 0, /* STT_SPARC_REGISTER */
110 #if STT_NUM != (STT_TLS + 1)
111 #error "STT_NUM has grown. Update ldynsym_symtype[]."
115 * Symbol types that we include in .SUNW_dynsymsort sections
116 * (indexed by STT_ values).
119 dynsymsort_symtype
[] = {
133 0, /* STT_SPARC_REGISTER */
137 #if STT_NUM != (STT_TLS + 1)
138 #error "STT_NUM has grown. Update dynsymsort_symtype[]."