1 #ifndef _MSG_DOT_H 2 #define _MSG_DOT_H 3 4 #include <sgsmsg.h> /* Msg typedef */ 5 6 #ifndef __lint 7 8 #define MSG_SGS_LOCAL_ARRAY __ld_msg 9 10 extern const char __ld_msg[]; 11 12 #define MSG_ORIG_STRTAB(_x, _s) &_s[_x] 13 14 #define MSG_ORIG(x) MSG_ORIG_STRTAB(x, __ld_msg) 15 16 extern const char * _ld_msg(Msg); 17 18 #define MSG_INTL(x) _ld_msg(x) 19 20 21 #define MSG_SYS_OPEN 1 22 #define MSG_SYS_OPEN_SIZE 24 23 24 #define MSG_SYS_EXEC 26 25 #define MSG_SYS_EXEC_SIZE 24 26 27 #define MSG_SYS_ALLOC 51 28 #define MSG_SYS_ALLOC_SIZE 16 29 30 #define MSG_SYS_64 68 31 #define MSG_SYS_64_SIZE 38 32 33 #define MSG_ERR_BADTARG 107 34 #define MSG_ERR_BADTARG_SIZE 27 35 36 #define MSG_ERR_WARNING 135 37 #define MSG_ERR_WARNING_SIZE 9 38 39 #define MSG_ERR_GUIDANCE 145 40 #define MSG_ERR_GUIDANCE_SIZE 10 41 42 #define MSG_ERR_FATAL 156 43 #define MSG_ERR_FATAL_SIZE 7 44 45 #define MSG_ERR_ELF 164 46 #define MSG_ERR_ELF_SIZE 11 47 48 #define MSG_STR_EMPTY 0 49 #define MSG_STR_EMPTY_SIZE 0 50 51 #define MSG_STR_NL 176 52 #define MSG_STR_NL_SIZE 1 53 54 #define MSG_STR_LDDIAG 178 55 #define MSG_STR_LDDIAG_SIZE 4 56 57 #define MSG_STR_ELFDIAG 63 58 #define MSG_STR_ELFDIAG_SIZE 4 59 60 #define MSG_ARG_TWO 183 61 #define MSG_ARG_TWO_SIZE 1 62 63 #define MSG_ARG_FOUR 193 64 #define MSG_ARG_FOUR_SIZE 1 65 66 #define MSG_ARG_ALTEXEC64 185 67 #define MSG_ARG_ALTEXEC64_SIZE 9 68 69 #define MSG_ARG_TARGET 195 70 #define MSG_ARG_TARGET_SIZE 7 71 72 #define MSG_LD_OPTIONS 203 73 #define MSG_LD_OPTIONS_SIZE 10 74 75 #define MSG_LD_ALTEXEC 214 76 #define MSG_LD_ALTEXEC_SIZE 11 77 78 #define MSG_SUNW_OST_SGS 226 79 #define MSG_SUNW_OST_SGS_SIZE 12 80 81 #define MSG_TARG_SPARC 239 82 #define MSG_TARG_SPARC_SIZE 5 83 84 #define MSG_TARG_X86 245 85 #define MSG_TARG_X86_SIZE 3 86 87 #else /* __lint */ 88 89 extern const char * _ld_msg(Msg); 90 91 #ifndef MSG_SGS_LOCAL_ARRAY 92 #define MSG_SGS_LOCAL_ARRAY "" 93 #endif 94 95 extern const char __ld_msg[]; 96 97 #define MSG_ORIG_STRTAB(_x, _s) _x 98 #define MSG_ORIG(x) x 99 #define MSG_INTL(x) x 100 101 #ifndef LINTSUP_SUPPRESS_STRINGS 102 103 #define MSG_SYS_OPEN "file %s: open failed: %s" 104 #define MSG_SYS_OPEN_SIZE 24 105 106 #define MSG_SYS_EXEC "file %s: exec failed: %s" 107 #define MSG_SYS_EXEC_SIZE 24 108 109 #define MSG_SYS_ALLOC "alloc failed: %s" 110 #define MSG_SYS_ALLOC_SIZE 16 111 112 #define MSG_SYS_64 "unable to execute 64-bit version of ld" 113 #define MSG_SYS_64_SIZE 38 114 115 #define MSG_ERR_BADTARG "unknown target platform: %s" 116 #define MSG_ERR_BADTARG_SIZE 27 117 118 #define MSG_ERR_WARNING "warning: " 119 #define MSG_ERR_WARNING_SIZE 9 120 121 #define MSG_ERR_GUIDANCE "guidance: " 122 #define MSG_ERR_GUIDANCE_SIZE 10 123 124 #define MSG_ERR_FATAL "fatal: " 125 #define MSG_ERR_FATAL_SIZE 7 126 127 #define MSG_ERR_ELF "elf error: " 128 #define MSG_ERR_ELF_SIZE 11 129 130 #define MSG_STR_EMPTY "" 131 #define MSG_STR_EMPTY_SIZE 0 132 133 #define MSG_STR_NL "\n" 134 #define MSG_STR_NL_SIZE 1 135 136 #define MSG_STR_LDDIAG "ld: " 137 #define MSG_STR_LDDIAG_SIZE 4 138 139 #define MSG_STR_ELFDIAG ": %s" 140 #define MSG_STR_ELFDIAG_SIZE 4 141 142 #define MSG_ARG_TWO "2" 143 #define MSG_ARG_TWO_SIZE 1 144 145 #define MSG_ARG_FOUR "4" 146 #define MSG_ARG_FOUR_SIZE 1 147 148 #define MSG_ARG_ALTEXEC64 "altexec64" 149 #define MSG_ARG_ALTEXEC64_SIZE 9 150 151 #define MSG_ARG_TARGET "target=" 152 #define MSG_ARG_TARGET_SIZE 7 153 154 #define MSG_LD_OPTIONS "LD_OPTIONS" 155 #define MSG_LD_OPTIONS_SIZE 10 156 157 #define MSG_LD_ALTEXEC "LD_ALTEXEC=" 158 #define MSG_LD_ALTEXEC_SIZE 11 159 160 #define MSG_SUNW_OST_SGS "SUNW_OST_SGS" 161 #define MSG_SUNW_OST_SGS_SIZE 12 162 163 #define MSG_TARG_SPARC "sparc" 164 #define MSG_TARG_SPARC_SIZE 5 165 166 #define MSG_TARG_X86 "x86" 167 #define MSG_TARG_X86_SIZE 3 168 169 #endif /* LINTSUP_SUPPRESS_STRINGS */ 170 171 #endif /* __lint */ 172 173 #endif 174