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 __elfedit_msg 9 10 extern const char __elfedit_msg[]; 11 12 #define MSG_ORIG_STRTAB(_x, _s) &_s[_x] 13 14 #define MSG_ORIG(x) MSG_ORIG_STRTAB(x, __elfedit_msg) 15 16 extern const char * _elfedit_msg(Msg); 17 18 #define MSG_INTL(x) _elfedit_msg(x) 19 20 21 #define MSG_USAGE_BRIEF 1 22 #define MSG_USAGE_BRIEF_SIZE 73 23 24 #define MSG_USAGE_DETAIL1 75 25 #define MSG_USAGE_DETAIL1_SIZE 45 26 27 #define MSG_USAGE_DETAIL2 121 28 #define MSG_USAGE_DETAIL2_SIZE 61 29 30 #define MSG_USAGE_DETAIL3 183 31 #define MSG_USAGE_DETAIL3_SIZE 28 32 33 #define MSG_USAGE_DETAIL4 212 34 #define MSG_USAGE_DETAIL4_SIZE 31 35 36 #define MSG_USAGE_DETAIL5 244 37 #define MSG_USAGE_DETAIL5_SIZE 49 38 39 #define MSG_USAGE_DETAIL6 294 40 #define MSG_USAGE_DETAIL6_SIZE 54 41 42 #define MSG_USAGE_DETAIL_LAST 349 43 #define MSG_USAGE_DETAIL_LAST_SIZE 86 44 45 #define MSG_USAGE_CMD 436 46 #define MSG_USAGE_CMD_SIZE 10 47 48 #define MSG_SYSSET_A 447 49 #define MSG_SYSSET_A_SIZE 14 50 51 #define MSG_SYSSET_D 462 52 #define MSG_SYSSET_D_SIZE 10 53 54 #define MSG_ALLOC_OBJSTATE 473 55 #define MSG_ALLOC_OBJSTATE_SIZE 12 56 57 #define MSG_ALLOC_SYMTABOS 486 58 #define MSG_ALLOC_SYMTABOS_SIZE 31 59 60 #define MSG_ALLOC_MODDEF 518 61 #define MSG_ALLOC_MODDEF_SIZE 17 62 63 #define MSG_ALLOC_UCMD 536 64 #define MSG_ALLOC_UCMD_SIZE 18 65 66 #define MSG_ALLOC_UCMDSTR 555 67 #define MSG_ALLOC_UCMDSTR_SIZE 26 68 69 #define MSG_ALLOC_TOKBUF 582 70 #define MSG_ALLOC_TOKBUF_SIZE 25 71 72 #define MSG_ALLOC_BATCHLST 608 73 #define MSG_ALLOC_BATCHLST_SIZE 19 74 75 #define MSG_ALLOC_EXPATH 628 76 #define MSG_ALLOC_EXPATH_SIZE 27 77 78 #define MSG_ALLOC_PATHARR 656 79 #define MSG_ALLOC_PATHARR_SIZE 17 80 81 #define MSG_ALLOC_HELPITEM 674 82 #define MSG_ALLOC_HELPITEM_SIZE 10 83 84 #define MSG_ALLOC_SECMSGPRE 685 85 #define MSG_ALLOC_SECMSGPRE_SIZE 29 86 87 #define MSG_ALLOC_ELFCONDESC 715 88 #define MSG_ALLOC_ELFCONDESC_SIZE 31 89 90 #define MSG_FMT_BUILTIN 747 91 #define MSG_FMT_BUILTIN_SIZE 10 92 93 #define MSG_FMT_UNKNOWN 758 94 #define MSG_FMT_UNKNOWN_SIZE 9 95 96 #define MSG_DEBUG_ADDDYNFLG 768 97 #define MSG_DEBUG_ADDDYNFLG_SIZE 35 98 99 #define MSG_DEBUG_SEEDYNFLG 804 100 #define MSG_DEBUG_SEEDYNFLG_SIZE 64 101 102 #define MSG_DEBUG_CMDALIAS 869 103 #define MSG_DEBUG_CMDALIAS_SIZE 36 104 105 #define MSG_DEBUG_MODLOAD 908 106 #define MSG_DEBUG_MODLOAD_SIZE 20 107 108 #define MSG_DEBUG_MODUNLOAD 906 109 #define MSG_DEBUG_MODUNLOAD_SIZE 22 110 111 #define MSG_DEBUG_CPFILE 929 112 #define MSG_DEBUG_CPFILE_SIZE 29 113 114 #define MSG_DEBUG_UNLINKFILE 959 115 #define MSG_DEBUG_UNLINKFILE_SIZE 31 116 117 #define MSG_DEBUG_VERSION 991 118 #define MSG_DEBUG_VERSION_SIZE 15 119 120 #define MSG_DEBUG_READONLY 1007 121 #define MSG_DEBUG_READONLY_SIZE 20 122 123 #define MSG_DEBUG_NOFILE 1028 124 #define MSG_DEBUG_NOFILE_SIZE 60 125 126 #define MSG_DEBUG_DIRTYEXIT 1089 127 #define MSG_DEBUG_DIRTYEXIT_SIZE 25 128 129 #define MSG_DEBUG_FNDSEC 1115 130 #define MSG_DEBUG_FNDSEC_SIZE 18 131 132 #define MSG_DEBUG_FNDCAP 1134 133 #define MSG_DEBUG_FNDCAP_SIZE 31 134 135 #define MSG_DEBUG_FNDDYN 1166 136 #define MSG_DEBUG_FNDDYN_SIZE 26 137 138 #define MSG_DEBUG_FNDSTR 1193 139 #define MSG_DEBUG_FNDSTR_SIZE 25 140 141 #define MSG_DEBUG_FNDSTRTAB 1219 142 #define MSG_DEBUG_FNDSTRTAB_SIZE 44 143 144 #define MSG_DEBUG_FNDSTRTABFL 1264 145 #define MSG_DEBUG_FNDSTRTABFL_SIZE 45 146 147 #define MSG_DEBUG_FNDSYMTAB 1310 148 #define MSG_DEBUG_FNDSYMTAB_SIZE 34 149 150 #define MSG_DEBUG_FNDSYMINFO 1345 151 #define MSG_DEBUG_FNDSYMINFO_SIZE 26 152 153 #define MSG_DEBUG_FNDVERSYM 1372 154 #define MSG_DEBUG_FNDVERSYM_SIZE 35 155 156 #define MSG_DEBUG_FNDXSHNDX 1408 157 #define MSG_DEBUG_FNDXSHNDX_SIZE 51 158 159 #define MSG_DEBUG_EXISTSTR 1460 160 #define MSG_DEBUG_EXISTSTR_SIZE 51 161 162 #define MSG_DEBUG_ADDSTR 1512 163 #define MSG_DEBUG_ADDSTR_SIZE 69 164 165 #define MSG_DEBUG_NULL2DYNFL1 1582 166 #define MSG_DEBUG_NULL2DYNFL1_SIZE 83 167 168 #define MSG_DEBUG_AUX_LINK 1666 169 #define MSG_DEBUG_AUX_LINK_SIZE 84 170 171 #define MSG_DEBUG_AUX_SIZE 1751 172 #define MSG_DEBUG_AUX_SIZE_SIZE 97 173 174 #define MSG_DEBUG_EXECCMD 1885 175 #define MSG_DEBUG_EXECCMD_SIZE 12 176 177 #define MSG_DEBUG_SHNAM2NDX 1898 178 #define MSG_DEBUG_SHNAM2NDX_SIZE 27 179 180 #define MSG_DEBUG_SYMNAM2NDX 1926 181 #define MSG_DEBUG_SYMNAM2NDX_SIZE 26 182 183 #define MSG_DEBUG_INPLACEWARN 1953 184 #define MSG_DEBUG_INPLACEWARN_SIZE 60 185 186 #define MSG_DEBUG_SHNDX_RANGE 2014 187 #define MSG_DEBUG_SHNDX_RANGE_SIZE 80 188 189 #define MSG_DEBUG_ARRCPY_1 2095 190 #define MSG_DEBUG_ARRCPY_1_SIZE 36 191 192 #define MSG_DEBUG_ARRCPY_N 2132 193 #define MSG_DEBUG_ARRCPY_N_SIZE 43 194 195 #define MSG_DEBUG_ARRZERO_1 2176 196 #define MSG_DEBUG_ARRZERO_1_SIZE 27 197 198 #define MSG_DEBUG_ARRZERO_N 2204 199 #define MSG_DEBUG_ARRZERO_N_SIZE 34 200 201 #define MSG_DEBUG_ARRMOVE_1 2239 202 #define MSG_DEBUG_ARRMOVE_1_SIZE 31 203 204 #define MSG_DEBUG_ARRMOVE_N 2271 205 #define MSG_DEBUG_ARRMOVE_N_SIZE 46 206 207 #define MSG_ERR_NOFILSYSONLY 2318 208 #define MSG_ERR_NOFILSYSONLY_SIZE 75 209 210 #define MSG_ERR_BADOSTYLE 2394 211 #define MSG_ERR_BADOSTYLE_SIZE 51 212 213 #define MSG_ERR_BADCONST 2446 214 #define MSG_ERR_BADCONST_SIZE 63 215 216 #define MSG_ERR_BADGETVAL 2510 217 #define MSG_ERR_BADGETVAL_SIZE 69 218 219 #define MSG_ERR_PATHTOOLONG 2580 220 #define MSG_ERR_PATHTOOLONG_SIZE 24 221 222 #define MSG_ERR_CNTDLOPEN 2605 223 #define MSG_ERR_CNTDLOPEN_SIZE 45 224 225 #define MSG_ERR_CNTDLCLOSE 2651 226 #define MSG_ERR_CNTDLCLOSE_SIZE 47 227 228 #define MSG_ERR_ESCEOL 2699 229 #define MSG_ERR_ESCEOL_SIZE 47 230 231 #define MSG_ERR_BADCESC 2747 232 #define MSG_ERR_BADCESC_SIZE 48 233 234 #define MSG_ERR_UNTERMQUOTE 2796 235 #define MSG_ERR_UNTERMQUOTE_SIZE 37 236 237 #define MSG_ERR_UNRECMOD 2834 238 #define MSG_ERR_UNRECMOD_SIZE 19 239 240 #define MSG_ERR_UNRECCMD 2854 241 #define MSG_ERR_UNRECCMD_SIZE 23 242 243 #define MSG_ERR_SONOTMOD 2878 244 #define MSG_ERR_SONOTMOD_SIZE 50 245 246 #define MSG_ERR_CNTULSMOD 2929 247 #define MSG_ERR_CNTULSMOD_SIZE 34 248 249 #define MSG_ERR_NULLPRICMDNAM 1849 250 #define MSG_ERR_NULLPRICMDNAM_SIZE 48 251 252 #define MSG_ERR_BADMODLOAD 2964 253 #define MSG_ERR_BADMODLOAD_SIZE 40 254 255 #define MSG_ERR_BADMODNAME 3005 256 #define MSG_ERR_BADMODNAME_SIZE 68 257 258 #define MSG_ERR_OPT_MODPRE 3074 259 #define MSG_ERR_OPT_MODPRE_SIZE 57 260 261 #define MSG_ERR_OPT_MODLEN 3132 262 #define MSG_ERR_OPT_MODLEN_SIZE 68 263 264 #define MSG_ERR_OPT_EXCMASKN0 3201 265 #define MSG_ERR_OPT_EXCMASKN0_SIZE 76 266 267 #define MSG_ERR_OPT_IDMASKPOW2 3278 268 #define MSG_ERR_OPT_IDMASKPOW2_SIZE 64 269 270 #define MSG_ERR_OPT_IDMASKUNIQ 3343 271 #define MSG_ERR_OPT_IDMASKUNIQ_SIZE 74 272 273 #define MSG_ERR_ARG_MODPRE 3418 274 #define MSG_ERR_ARG_MODPRE_SIZE 62 275 276 #define MSG_ERR_ARG_MODLEN 3481 277 #define MSG_ERR_ARG_MODLEN_SIZE 70 278 279 #define MSG_ERR_ARG_CMDOA_VAL 3552 280 #define MSG_ERR_ARG_CMDOA_VAL_SIZE 105 281 282 #define MSG_ERR_ARG_MASKNOT0 3658 283 #define MSG_ERR_ARG_MASKNOT0_SIZE 86 284 285 #define MSG_ERR_BADSTDOA 3745 286 #define MSG_ERR_BADSTDOA_SIZE 86 287 288 #define MSG_ERR_CMDOA_VALNAM 3832 289 #define MSG_ERR_CMDOA_VALNAM_SIZE 61 290 291 #define MSG_ERR_CMDOA_VALNOT0 3894 292 #define MSG_ERR_CMDOA_VALNOT0_SIZE 103 293 294 #define MSG_ERR_BADMODOPTVAL 3998 295 #define MSG_ERR_BADMODOPTVAL_SIZE 101 296 297 #define MSG_ERR_CNTOPNFILE 4100 298 #define MSG_ERR_CNTOPNFILE_SIZE 20 299 300 #define MSG_ERR_CNTOPNDIR 4121 301 #define MSG_ERR_CNTOPNDIR_SIZE 33 302 303 #define MSG_ERR_SIGACTION 4155 304 #define MSG_ERR_SIGACTION_SIZE 33 305 306 #define MSG_ERR_NOAR 4189 307 #define MSG_ERR_NOAR_SIZE 31 308 309 #define MSG_ERR_UNRECELFFILE 4221 310 #define MSG_ERR_UNRECELFFILE_SIZE 32 311 312 #define MSG_ERR_BADELFCLASS 4254 313 #define MSG_ERR_BADELFCLASS_SIZE 46 314 315 #define MSG_ERR_MALLOC 4301 316 #define MSG_ERR_MALLOC_SIZE 15 317 318 #define MSG_ERR_LIBELF 4317 319 #define MSG_ERR_LIBELF_SIZE 18 320 321 #define MSG_ERR_MODNOCMD 4336 322 #define MSG_ERR_MODNOCMD_SIZE 40 323 324 #define MSG_ERR_CNTFORK 4377 325 #define MSG_ERR_CNTFORK_SIZE 36 326 327 #define MSG_ERR_CNTWAIT 4414 328 #define MSG_ERR_CNTWAIT_SIZE 37 329 330 #define MSG_ERR_CNTEXEC 4452 331 #define MSG_ERR_CNTEXEC_SIZE 24 332 333 #define MSG_ERR_CNTSTAT 4477 334 #define MSG_ERR_CNTSTAT_SIZE 22 335 336 #define MSG_ERR_CNTCHMOD 4500 337 #define MSG_ERR_CNTCHMOD_SIZE 23 338 339 #define MSG_ERR_BADSECNDX 4524 340 #define MSG_ERR_BADSECNDX_SIZE 58 341 342 #define MSG_ERR_NOCAP 4583 343 #define MSG_ERR_NOCAP_SIZE 48 344 345 #define MSG_ERR_NODYN 4632 346 #define MSG_ERR_NODYN_SIZE 43 347 348 #define MSG_ERR_NOSYM 4676 349 #define MSG_ERR_NOSYM_SIZE 51 350 351 #define MSG_ERR_NOSYMTAB 4728 352 #define MSG_ERR_NOSYMTAB_SIZE 31 353 354 #define MSG_ERR_NOSYMINFO 4760 355 #define MSG_ERR_NOSYMINFO_SIZE 43 356 357 #define MSG_ERR_NOTSYMTAB 4804 358 #define MSG_ERR_NOTSYMTAB_SIZE 40 359 360 #define MSG_ERR_STRSHNDX 4845 361 #define MSG_ERR_STRSHNDX_SIZE 57 362 363 #define MSG_ERR_NOTSTRSH 4903 364 #define MSG_ERR_NOTSTRSH_SIZE 52 365 366 #define MSG_ERR_NOSTRPAD 4956 367 #define MSG_ERR_NOSTRPAD_SIZE 56 368 369 #define MSG_ERR_BADSTROFF 5013 370 #define MSG_ERR_BADSTROFF_SIZE 58 371 372 #define MSG_ERR_NOVERSYMSEC 5072 373 #define MSG_ERR_NOVERSYMSEC_SIZE 66 374 375 #define MSG_ERR_NOXSHSEC 5139 376 #define MSG_ERR_NOXSHSEC_SIZE 74 377 378 #define MSG_ERR_BADATOISTR 5214 379 #define MSG_ERR_BADATOISTR_SIZE 32 380 381 #define MSG_ERR_ATOIRANGE 5247 382 #define MSG_ERR_ATOIRANGE_SIZE 45 383 384 #define MSG_ERR_ATOUIRANGE 5293 385 #define MSG_ERR_ATOUIRANGE_SIZE 45 386 387 #define MSG_ERR_BADPATHCODE 5339 388 #define MSG_ERR_BADPATHCODE_SIZE 58 389 390 #define MSG_ERR_UNKNOWNSYSERR 758 391 #define MSG_ERR_UNKNOWNSYSERR_SIZE 9 392 393 #define MSG_ERR_PAGERFINI 5398 394 #define MSG_ERR_PAGERFINI_SIZE 40 395 396 #define MSG_ERR_PRINTF 5439 397 #define MSG_ERR_PRINTF_SIZE 33 398 399 #define MSG_ERR_FWRITE 5473 400 #define MSG_ERR_FWRITE_SIZE 37 401 402 #define MSG_ERR_MODNAMTOOLONG 5511 403 #define MSG_ERR_MODNAMTOOLONG_SIZE 25 404 405 #define MSG_ERR_CNTGETORIGIN 5537 406 #define MSG_ERR_CNTGETORIGIN_SIZE 36 407 408 #define MSG_ERR_GLREAD 5574 409 #define MSG_ERR_GLREAD_SIZE 29 410 411 #define MSG_ERR_READONLY 5604 412 #define MSG_ERR_READONLY_SIZE 42 413 414 #define MSG_ERR_NODIRTYQUIT 5647 415 #define MSG_ERR_NODIRTYQUIT_SIZE 99 416 417 #define MSG_ERR_NOSECNAM 5747 418 #define MSG_ERR_NOSECNAM_SIZE 42 419 420 #define MSG_ERR_NOSECTYP 5790 421 #define MSG_ERR_NOSECTYP_SIZE 42 422 423 #define MSG_ERR_ARRBNDS 5833 424 #define MSG_ERR_ARRBNDS_SIZE 84 425 426 #define MSG_ERR_ARRMVOVERLAP 5918 427 #define MSG_ERR_ARRMVOVERLAP_SIZE 65 428 429 #define MSG_ERR_BADOSABI 5984 430 #define MSG_ERR_BADOSABI_SIZE 46 431 432 #define MSG_HLPFMT_MOD 6031 433 #define MSG_HLPFMT_MOD_SIZE 19 434 435 #define MSG_HLPFMT_NAME 6051 436 #define MSG_HLPFMT_NAME_SIZE 17 437 438 #define MSG_HLPFMT_SYNOPSIS 6069 439 #define MSG_HLPFMT_SYNOPSIS_SIZE 16 440 441 #define MSG_HLPFMT_ALIASES 6086 442 #define MSG_HLPFMT_ALIASES_SIZE 9 443 444 #define MSG_HLPFMT_MODDEFCMD 6096 445 #define MSG_HLPFMT_MODDEFCMD_SIZE 14 446 447 #define MSG_HLPFMT_DEFCMD 6111 448 #define MSG_HLPFMT_DEFCMD_SIZE 30 449 450 #define MSG_HLPFMT_DESC 6142 451 #define MSG_HLPFMT_DESC_SIZE 13 452 453 #define MSG_HLPFMT_ARGS 6156 454 #define MSG_HLPFMT_ARGS_SIZE 11 455 456 #define MSG_HLPFMT_OPT 6168 457 #define MSG_HLPFMT_OPT_SIZE 9 458 459 #define MSG_HLPFMT_MULTIEND 6178 460 #define MSG_HLPFMT_MULTIEND_SIZE 20 461 462 #define MSG_HLPFMT_INFILE 6199 463 #define MSG_HLPFMT_INFILE_SIZE 16 464 465 #define MSG_HLPFMT_INFILERO 6216 466 #define MSG_HLPFMT_INFILERO_SIZE 27 467 468 #define MSG_HLPFMT_INFILENONE 6244 469 #define MSG_HLPFMT_INFILENONE_SIZE 26 470 471 #define MSG_HLPFMT_OUTFILE 6271 472 #define MSG_HLPFMT_OUTFILE_SIZE 16 473 474 #define MSG_HLPFMT_CNGPENDING 6288 475 #define MSG_HLPFMT_CNGPENDING_SIZE 22 476 477 #define MSG_HLPFMT_VARHDR 6311 478 #define MSG_HLPFMT_VARHDR_SIZE 10 479 480 #define MSG_HLPFMT_AFLG 6322 481 #define MSG_HLPFMT_AFLG_SIZE 25 482 483 #define MSG_HLPFMT_DFLG 6348 484 #define MSG_HLPFMT_DFLG_SIZE 25 485 486 #define MSG_HLPFMT_OFLG 6374 487 #define MSG_HLPFMT_OFLG_SIZE 25 488 489 #define MSG_HLPFMT_PATHHDR 6400 490 #define MSG_HLPFMT_PATHHDR_SIZE 19 491 492 #define MSG_HLPFMT_MODHDR 6420 493 #define MSG_HLPFMT_MODHDR_SIZE 27 494 495 #define MSG_HLPFMT_SUMSYNOPSIS 6448 496 #define MSG_HLPFMT_SUMSYNOPSIS_SIZE 15 497 498 #define MSG_UNKNOWNSECNAM 6464 499 #define MSG_UNKNOWNSECNAM_SIZE 22 500 501 #define MSG_BADSYMOFFSETNAM 6487 502 #define MSG_BADSYMOFFSETNAM_SIZE 17 503 504 #define MSG_MOD_SYS_DESC 6505 505 #define MSG_MOD_SYS_DESC_SIZE 25 506 507 #define MSG_SYS_DESC_HELP 6531 508 #define MSG_SYS_DESC_HELP_SIZE 55 509 510 #define MSG_SYS_DESC_LOAD 6587 511 #define MSG_SYS_DESC_LOAD_SIZE 14 512 513 #define MSG_SYS_DESC_SET 6602 514 #define MSG_SYS_DESC_SET_SIZE 19 515 516 #define MSG_SYS_DESC_STATUS 6622 517 #define MSG_SYS_DESC_STATUS_SIZE 40 518 519 #define MSG_SYS_DESC_QUIT 6663 520 #define MSG_SYS_DESC_QUIT_SIZE 20 521 522 #define MSG_SYS_DESC_UNLOAD 6684 523 #define MSG_SYS_DESC_UNLOAD_SIZE 16 524 525 #define MSG_SYS_DESC_WRITE 6701 526 #define MSG_SYS_DESC_WRITE_SIZE 42 527 528 #define MSG_SYS_OPTDESC_HELP_S 6744 529 #define MSG_SYS_OPTDESC_HELP_S_SIZE 59 530 531 #define MSG_SYS_OPTDESC_LOAD_A 6804 532 #define MSG_SYS_OPTDESC_LOAD_A_SIZE 71 533 534 #define MSG_SYS_OPTDESC_QUIT_F 6876 535 #define MSG_SYS_OPTDESC_QUIT_F_SIZE 156 536 537 #define MSG_SYS_OPTDESC_UNLOAD_A 7033 538 #define MSG_SYS_OPTDESC_UNLOAD_A_SIZE 98 539 540 #define MSG_ARGDESC_HELP_ARG 7132 541 #define MSG_ARGDESC_HELP_ARG_SIZE 100 542 543 #define MSG_ARGDESC_LOAD_MODNAME 7233 544 #define MSG_ARGDESC_LOAD_MODNAME_SIZE 33 545 546 #define MSG_ARGDESC_SET_OPTION 7267 547 #define MSG_ARGDESC_SET_OPTION_SIZE 26 548 549 #define MSG_ARGDESC_SET_VALUE 7294 550 #define MSG_ARGDESC_SET_VALUE_SIZE 28 551 552 #define MSG_ARGDESC_UNLOAD_MODNAME 7233 553 #define MSG_ARGDESC_UNLOAD_MODNAME_SIZE 33 554 555 #define MSG_SYS_HELP_HELP_NOARG 7323 556 #define MSG_SYS_HELP_HELP_NOARG_SIZE 4854 557 558 #define MSG_SYS_HELP_HELP 12178 559 #define MSG_SYS_HELP_HELP_SIZE 807 560 561 #define MSG_SYS_HELP_LOAD 12986 562 #define MSG_SYS_HELP_LOAD_SIZE 928 563 564 #define MSG_SYS_HELP_SET 13915 565 #define MSG_SYS_HELP_SET_SIZE 1417 566 567 #define MSG_SYS_HELP_STATUS 15333 568 #define MSG_SYS_HELP_STATUS_SIZE 274 569 570 #define MSG_SYS_HELP_QUIT 15608 571 #define MSG_SYS_HELP_QUIT_SIZE 257 572 573 #define MSG_SYS_HELP_UNLOAD 15866 574 #define MSG_SYS_HELP_UNLOAD_SIZE 211 575 576 #define MSG_SYS_HELP_WRITE 16078 577 #define MSG_SYS_HELP_WRITE_SIZE 227 578 579 #define MSG_STDOA_OPTDESC_AND 16306 580 #define MSG_STDOA_OPTDESC_AND_SIZE 67 581 582 #define MSG_STDOA_OPTDESC_CMP 16374 583 #define MSG_STDOA_OPTDESC_CMP_SIZE 132 584 585 #define MSG_STDOA_OPTDESC_O 16507 586 #define MSG_STDOA_OPTDESC_O_SIZE 276 587 588 #define MSG_STDOA_OPTDESC_OR 16784 589 #define MSG_STDOA_OPTDESC_OR_SIZE 66 590 591 #define MSG_ELF_BEGIN 16851 592 #define MSG_ELF_BEGIN_SIZE 9 593 594 #define MSG_ELF_GETEHDR 16861 595 #define MSG_ELF_GETEHDR_SIZE 11 596 597 #define MSG_ELF_GETDATA 16873 598 #define MSG_ELF_GETDATA_SIZE 11 599 600 #define MSG_ELF_GETPHDRNUM 16885 601 #define MSG_ELF_GETPHDRNUM_SIZE 14 602 603 #define MSG_ELF_GETPHDR 16900 604 #define MSG_ELF_GETPHDR_SIZE 11 605 606 #define MSG_ELF_GETSCN 16912 607 #define MSG_ELF_GETSCN_SIZE 10 608 609 #define MSG_ELF_GETSHDR 16923 610 #define MSG_ELF_GETSHDR_SIZE 11 611 612 #define MSG_ELF_GETSHDRNUM 16935 613 #define MSG_ELF_GETSHDRNUM_SIZE 14 614 615 #define MSG_ELF_GETSHDRSTRNDX 16950 616 #define MSG_ELF_GETSHDRSTRNDX_SIZE 17 617 618 #define MSG_ELF_UPDATE 16968 619 #define MSG_ELF_UPDATE_SIZE 10 620 621 #define MSG_SHT_SYMTAB 16979 622 #define MSG_SHT_SYMTAB_SIZE 10 623 624 #define MSG_SHT_SYMTAB_ALT1 16990 625 #define MSG_SHT_SYMTAB_ALT1_SIZE 6 626 627 #define MSG_SHT_STRTAB 16997 628 #define MSG_SHT_STRTAB_SIZE 10 629 630 #define MSG_SHT_STRTAB_ALT1 17008 631 #define MSG_SHT_STRTAB_ALT1_SIZE 6 632 633 #define MSG_SHT_DYNSYM 17015 634 #define MSG_SHT_DYNSYM_SIZE 10 635 636 #define MSG_SHT_DYNSYM_ALT1 17032 637 #define MSG_SHT_DYNSYM_ALT1_SIZE 6 638 639 #define MSG_SHT_SUNW_LDYNSYM 17039 640 #define MSG_SHT_SUNW_LDYNSYM_SIZE 16 641 642 #define MSG_SHT_SUNW_LDYNSYM_ALT1 17026 643 #define MSG_SHT_SUNW_LDYNSYM_ALT1_SIZE 12 644 645 #define MSG_ISA_SPARC_32 17056 646 #define MSG_ISA_SPARC_32_SIZE 5 647 648 #define MSG_ISA_SPARC_64 17062 649 #define MSG_ISA_SPARC_64_SIZE 7 650 651 #define MSG_ISA_X86_32 17070 652 #define MSG_ISA_X86_32_SIZE 4 653 654 #define MSG_ISA_X86_64 17075 655 #define MSG_ISA_X86_64_SIZE 5 656 657 #define MSG_FMT_BLDPATH 17081 658 #define MSG_FMT_BLDPATH_SIZE 5 659 660 #define MSG_FMT_BLDSOPATH 17087 661 #define MSG_FMT_BLDSOPATH_SIZE 8 662 663 #define MSG_FMT_MODCMD 17096 664 #define MSG_FMT_MODCMD_SIZE 5 665 666 #define MSG_FMT_SYSCMD 17102 667 #define MSG_FMT_SYSCMD_SIZE 8 668 669 #define MSG_FMT_WORDVAL 17111 670 #define MSG_FMT_WORDVAL_SIZE 2 671 672 #define MSG_FMT_WRAPUSAGE 17114 673 #define MSG_FMT_WRAPUSAGE_SIZE 3 674 675 #define MSG_FMT_SECMSGPRE 17118 676 #define MSG_FMT_SECMSGPRE_SIZE 8 677 678 #define MSG_STR_NULL 0 679 #define MSG_STR_NULL_SIZE 0 680 681 #define MSG_STR_ARG 17127 682 #define MSG_STR_ARG_SIZE 3 683 684 #define MSG_STR_SP_BAR_SP 17131 685 #define MSG_STR_SP_BAR_SP_SIZE 3 686 687 #define MSG_STR_ELIPSES 17135 688 #define MSG_STR_ELIPSES_SIZE 3 689 690 #define MSG_STR_OPTIONS 17139 691 #define MSG_STR_OPTIONS_SIZE 9 692 693 #define MSG_STR_ELFEDIT 17149 694 #define MSG_STR_ELFEDIT_SIZE 9 695 696 #define MSG_STR_PROMPT 17159 697 #define MSG_STR_PROMPT_SIZE 2 698 699 #define MSG_STR_NL 17175 700 #define MSG_STR_NL_SIZE 1 701 702 #define MSG_STR_TAB 17177 703 #define MSG_STR_TAB_SIZE 1 704 705 #define MSG_STR_BINCP 17179 706 #define MSG_STR_BINCP_SIZE 7 707 708 #define MSG_STR_BINMORE 17187 709 #define MSG_STR_BINMORE_SIZE 9 710 711 #define MSG_STR_PAGER 17197 712 #define MSG_STR_PAGER_SIZE 5 713 714 #define MSG_STR_ELFEDITINIT32 17203 715 #define MSG_STR_ELFEDITINIT32_SIZE 14 716 717 #define MSG_STR_ELFEDITINIT64 17218 718 #define MSG_STR_ELFEDITINIT64_SIZE 14 719 720 #define MSG_STR_HLPINDENT 17244 721 #define MSG_STR_HLPINDENT_SIZE 3 722 723 #define MSG_STR_HLPUSEINDENT 17239 724 #define MSG_STR_HLPUSEINDENT_SIZE 8 725 726 #define MSG_STR_HLPSUMINDENT 17233 727 #define MSG_STR_HLPSUMINDENT_SIZE 14 728 729 #define MSG_STR_HLPOPTARG 17115 730 #define MSG_STR_HLPOPTARG_SIZE 2 731 732 #define MSG_STR_HLPOPTARG2 17248 733 #define MSG_STR_HLPOPTARG2_SIZE 5 734 735 #define MSG_STR_ENVVAR 17254 736 #define MSG_STR_ENVVAR_SIZE 12 737 738 #define MSG_STR_MODPATH 17267 739 #define MSG_STR_MODPATH_SIZE 21 740 741 #define MSG_STR_EMPTY 0 742 #define MSG_STR_EMPTY_SIZE 0 743 744 #define MSG_STR_DOT 17137 745 #define MSG_STR_DOT_SIZE 1 746 747 #define MSG_STR_COLON 17289 748 #define MSG_STR_COLON_SIZE 1 749 750 #define MSG_STR_SPACE 17292 751 #define MSG_STR_SPACE_SIZE 1 752 753 #define MSG_STR_COMMA_SP 17291 754 #define MSG_STR_COMMA_SP_SIZE 2 755 756 #define MSG_STR_CPAREN 6600 757 #define MSG_STR_CPAREN_SIZE 1 758 759 #define MSG_STR_DOTSO 17092 760 #define MSG_STR_DOTSO_SIZE 3 761 762 #define MSG_STR_MINUS_MINUS 17294 763 #define MSG_STR_MINUS_MINUS_SIZE 2 764 765 #define MSG_STR_MINUS_A 17297 766 #define MSG_STR_MINUS_A_SIZE 2 767 768 #define MSG_STR_MINUS_AND 17300 769 #define MSG_STR_MINUS_AND_SIZE 4 770 771 #define MSG_STR_MINUS_CMP 17305 772 #define MSG_STR_MINUS_CMP_SIZE 4 773 774 #define MSG_STR_MINUS_F 17310 775 #define MSG_STR_MINUS_F_SIZE 2 776 777 #define MSG_STR_MINUS_S 17313 778 #define MSG_STR_MINUS_S_SIZE 2 779 780 #define MSG_STR_MINUS_O 17316 781 #define MSG_STR_MINUS_O_SIZE 2 782 783 #define MSG_STR_MINUS_OR 17319 784 #define MSG_STR_MINUS_OR_SIZE 3 785 786 #define MSG_STR_MODNAME 17323 787 #define MSG_STR_MODNAME_SIZE 7 788 789 #define MSG_STR_TRUE 17331 790 #define MSG_STR_TRUE_SIZE 4 791 792 #define MSG_STR_FALSE 17336 793 #define MSG_STR_FALSE_SIZE 5 794 795 #define MSG_STR_ON 17346 796 #define MSG_STR_ON_SIZE 2 797 798 #define MSG_STR_OFF 17349 799 #define MSG_STR_OFF_SIZE 3 800 801 #define MSG_STR_YES 17353 802 #define MSG_STR_YES_SIZE 3 803 804 #define MSG_STR_NO 17357 805 #define MSG_STR_NO_SIZE 2 806 807 #define MSG_STR_0 17360 808 #define MSG_STR_0_SIZE 1 809 810 #define MSG_STR_1 17362 811 #define MSG_STR_1_SIZE 1 812 813 #define MSG_STR_A 17298 814 #define MSG_STR_A_SIZE 1 815 816 #define MSG_STR_D 17303 817 #define MSG_STR_D_SIZE 1 818 819 #define MSG_STR_F 17311 820 #define MSG_STR_F_SIZE 1 821 822 #define MSG_STR_N 17347 823 #define MSG_STR_N_SIZE 1 824 825 #define MSG_STR_O 17317 826 #define MSG_STR_O_SIZE 1 827 828 #define MSG_STR_OPTION 17342 829 #define MSG_STR_OPTION_SIZE 6 830 831 #define MSG_STR_T 17366 832 #define MSG_STR_T_SIZE 1 833 834 #define MSG_STR_VALUE 17368 835 #define MSG_STR_VALUE_SIZE 5 836 837 #define MSG_STR_W 17374 838 #define MSG_STR_W_SIZE 1 839 840 #define MSG_STR_Y 672 841 #define MSG_STR_Y_SIZE 1 842 843 #define MSG_STR_DEFAULT 17378 844 #define MSG_STR_DEFAULT_SIZE 7 845 846 #define MSG_STR_MINUS_O_DEFAULT 17376 847 #define MSG_STR_MINUS_O_DEFAULT_SIZE 9 848 849 #define MSG_STR_SIMPLE 17388 850 #define MSG_STR_SIMPLE_SIZE 6 851 852 #define MSG_STR_MINUS_O_SIMPLE 17386 853 #define MSG_STR_MINUS_O_SIMPLE_SIZE 8 854 855 #define MSG_STR_NUM 17397 856 #define MSG_STR_NUM_SIZE 3 857 858 #define MSG_STR_MINUS_O_NUM 17395 859 #define MSG_STR_MINUS_O_NUM_SIZE 5 860 861 #define MSG_STR_OUTSTYLE 17401 862 #define MSG_STR_OUTSTYLE_SIZE 8 863 864 #define MSG_HLPFMT_MULTIHDR 17410 865 #define MSG_HLPFMT_MULTIHDR_SIZE 33 866 867 #define MSG_HLPFMT_NAMDSCCOL 17444 868 #define MSG_HLPFMT_NAMDSCCOL_SIZE 11 869 870 #define MSG_HLPFMT_NAMDSCHDR 17168 871 #define MSG_HLPFMT_NAMDSCHDR_SIZE 8 872 873 #define MSG_HLPFMT_NAMSUMHDR 17162 874 #define MSG_HLPFMT_NAMSUMHDR_SIZE 14 875 876 #define MSG_HLPFMT_PATHELT 6453 877 #define MSG_HLPFMT_PATHELT_SIZE 10 878 879 #define MSG_HLPFMT_MULTNAM 17456 880 #define MSG_HLPFMT_MULTNAM_SIZE 4 881 882 #define MSG_MOD_SYS 17461 883 #define MSG_MOD_SYS_SIZE 3 884 885 #define MSG_SYS_CMD_HELP 17465 886 #define MSG_SYS_CMD_HELP_SIZE 4 887 888 #define MSG_SYS_CMD_HELP_A1 17470 889 #define MSG_SYS_CMD_HELP_A1_SIZE 1 890 891 #define MSG_SYS_CMD_HELP_A2 17472 892 #define MSG_SYS_CMD_HELP_A2_SIZE 3 893 894 #define MSG_SYS_CMD_LOAD 17478 895 #define MSG_SYS_CMD_LOAD_SIZE 4 896 897 #define MSG_SYS_CMD_QUIT 17483 898 #define MSG_SYS_CMD_QUIT_SIZE 4 899 900 #define MSG_SYS_CMD_QUIT_A1 17488 901 #define MSG_SYS_CMD_QUIT_A1_SIZE 4 902 903 #define MSG_SYS_CMD_QUIT_A2 17493 904 #define MSG_SYS_CMD_QUIT_A2_SIZE 3 905 906 #define MSG_SYS_CMD_SET 17364 907 #define MSG_SYS_CMD_SET_SIZE 3 908 909 #define MSG_SYS_CMD_STATUS 17497 910 #define MSG_SYS_CMD_STATUS_SIZE 6 911 912 #define MSG_SYS_CMD_UNLOAD 17476 913 #define MSG_SYS_CMD_UNLOAD_SIZE 6 914 915 #define MSG_SYS_CMD_WRITE 17504 916 #define MSG_SYS_CMD_WRITE_SIZE 5 917 918 #define MSG_SYS_CMD_WRITE_A1 17510 919 #define MSG_SYS_CMD_WRITE_A1_SIZE 5 920 921 #define MSG_SYS_CMD_WRITE_A2 17516 922 #define MSG_SYS_CMD_WRITE_A2_SIZE 4 923 924 #else /* __lint */ 925 926 extern const char * _elfedit_msg(Msg); 927 928 #ifndef MSG_SGS_LOCAL_ARRAY 929 #define MSG_SGS_LOCAL_ARRAY "" 930 #endif 931 932 extern const char __elfedit_msg[]; 933 934 #define MSG_ORIG_STRTAB(_x, _s) _x 935 #define MSG_ORIG(x) x 936 #define MSG_INTL(x) x 937 938 #ifndef LINTSUP_SUPPRESS_STRINGS 939 940 #define MSG_USAGE_BRIEF "usage: elfedit [-adrw] [-e cmd] [-L modpath] [-o style] [file] [outfile]\n" 941 #define MSG_USAGE_BRIEF_SIZE 73 942 943 #define MSG_USAGE_DETAIL1 "\t[-a] Autoprint (show edit results)\n" 944 #define MSG_USAGE_DETAIL1_SIZE 45 945 946 #define MSG_USAGE_DETAIL2 "\t[-d] Issue messages describing internal operations\n" 947 #define MSG_USAGE_DETAIL2_SIZE 61 948 949 #define MSG_USAGE_DETAIL3 "\t[-e cmd] edit command\n" 950 #define MSG_USAGE_DETAIL3_SIZE 28 951 952 #define MSG_USAGE_DETAIL4 "\t[-L modpath] Set module path\n" 953 #define MSG_USAGE_DETAIL4_SIZE 31 954 955 #define MSG_USAGE_DETAIL5 "\t[-o ostyle] Output style (default|simple|num)\n" 956 #define MSG_USAGE_DETAIL5_SIZE 49 957 958 #define MSG_USAGE_DETAIL6 "\t[-r] Readonly session (outfile not allowed)\n" 959 #define MSG_USAGE_DETAIL6_SIZE 54 960 961 #define MSG_USAGE_DETAIL_LAST "\n\tExtensive help for edit commands is available.\n\tEnter 'help' at the elfedit prompt.\n" 962 #define MSG_USAGE_DETAIL_LAST_SIZE 86 963 964 #define MSG_USAGE_CMD "usage: %s\n" 965 #define MSG_USAGE_CMD_SIZE 10 966 967 #define MSG_SYSSET_A "autoprint flag" 968 #define MSG_SYSSET_A_SIZE 14 969 970 #define MSG_SYSSET_D "debug flag" 971 #define MSG_SYSSET_D_SIZE 10 972 973 #define MSG_ALLOC_OBJSTATE "object state" 974 #define MSG_ALLOC_OBJSTATE_SIZE 12 975 976 #define MSG_ALLOC_SYMTABOS "symbol table information buffer" 977 #define MSG_ALLOC_SYMTABOS_SIZE 31 978 979 #define MSG_ALLOC_MODDEF "module definition" 980 #define MSG_ALLOC_MODDEF_SIZE 17 981 982 #define MSG_ALLOC_UCMD "user command state" 983 #define MSG_ALLOC_UCMD_SIZE 18 984 985 #define MSG_ALLOC_UCMDSTR "user command string buffer" 986 #define MSG_ALLOC_UCMDSTR_SIZE 26 987 988 #define MSG_ALLOC_TOKBUF "user command token buffer" 989 #define MSG_ALLOC_TOKBUF_SIZE 25 990 991 #define MSG_ALLOC_BATCHLST "list of -e commands" 992 #define MSG_ALLOC_BATCHLST_SIZE 19 993 994 #define MSG_ALLOC_EXPATH "expanded module search path" 995 #define MSG_ALLOC_EXPATH_SIZE 27 996 997 #define MSG_ALLOC_PATHARR "search path array" 998 #define MSG_ALLOC_PATHARR_SIZE 17 999 1000 #define MSG_ALLOC_HELPITEM "help state" 1001 #define MSG_ALLOC_HELPITEM_SIZE 10 1002 1003 #define MSG_ALLOC_SECMSGPRE "section message prefix string" 1004 #define MSG_ALLOC_SECMSGPRE_SIZE 29 1005 1006 #define MSG_ALLOC_ELFCONDESC "ELF constant string descriptors" 1007 #define MSG_ALLOC_ELFCONDESC_SIZE 31 1008 1009 #define MSG_FMT_BUILTIN "<built in>" 1010 #define MSG_FMT_BUILTIN_SIZE 10 1011 1012 #define MSG_FMT_UNKNOWN "<unknown>" 1013 #define MSG_FMT_UNKNOWN_SIZE 9 1014 1015 #define MSG_DEBUG_ADDDYNFLG "[%d: %s][%d]: Set DF_1_EDITED flag\n" 1016 #define MSG_DEBUG_ADDDYNFLG_SIZE 35 1017 1018 #define MSG_DEBUG_SEEDYNFLG "[%d: %s][%d]: Previously edited file (DF_1_EDITED flag is set) \n" 1019 #define MSG_DEBUG_SEEDYNFLG_SIZE 64 1020 1021 #define MSG_DEBUG_CMDALIAS "Command %s:%s is an alias for %s:%s\n" 1022 #define MSG_DEBUG_CMDALIAS_SIZE 36 1023 1024 #define MSG_DEBUG_MODLOAD "load module: %s: %s\n" 1025 #define MSG_DEBUG_MODLOAD_SIZE 20 1026 1027 #define MSG_DEBUG_MODUNLOAD "unload module: %s: %s\n" 1028 #define MSG_DEBUG_MODUNLOAD_SIZE 22 1029 1030 #define MSG_DEBUG_CPFILE "copied %s to output file: %s\n" 1031 #define MSG_DEBUG_CPFILE_SIZE 29 1032 1033 #define MSG_DEBUG_UNLINKFILE "unlink unsaved output file: %s\n" 1034 #define MSG_DEBUG_UNLINKFILE_SIZE 31 1035 1036 #define MSG_DEBUG_VERSION "%d-bit version\n" 1037 #define MSG_DEBUG_VERSION_SIZE 15 1038 1039 #define MSG_DEBUG_READONLY "session is readonly\n" 1040 #define MSG_DEBUG_READONLY_SIZE 20 1041 1042 #define MSG_DEBUG_NOFILE "no ELF object specified. Limited functionality is available\n" 1043 #define MSG_DEBUG_NOFILE_SIZE 60 1044 1045 #define MSG_DEBUG_DIRTYEXIT "discarding unsaved edits\n" 1046 #define MSG_DEBUG_DIRTYEXIT_SIZE 25 1047 1048 #define MSG_DEBUG_FNDSEC "[%d: %s]: section\n" 1049 #define MSG_DEBUG_FNDSEC_SIZE 18 1050 1051 #define MSG_DEBUG_FNDCAP "[%d: %s]: capabilities section\n" 1052 #define MSG_DEBUG_FNDCAP_SIZE 31 1053 1054 #define MSG_DEBUG_FNDDYN "[%d: %s]: dynamic section\n" 1055 #define MSG_DEBUG_FNDDYN_SIZE 26 1056 1057 #define MSG_DEBUG_FNDSTR "[%d: %s][%d]: string: %s\n" 1058 #define MSG_DEBUG_FNDSTR_SIZE 25 1059 1060 #define MSG_DEBUG_FNDSTRTAB "[%d: %s]: string table section (SHT_STRTAB)\n" 1061 #define MSG_DEBUG_FNDSTRTAB_SIZE 44 1062 1063 #define MSG_DEBUG_FNDSTRTABFL "[%d: %s]: string table section (SHF_STRINGS)\n" 1064 #define MSG_DEBUG_FNDSTRTABFL_SIZE 45 1065 1066 #define MSG_DEBUG_FNDSYMTAB "[%d: %s]: %s symbol table section\n" 1067 #define MSG_DEBUG_FNDSYMTAB_SIZE 34 1068 1069 #define MSG_DEBUG_FNDSYMINFO "[%d: %s]: syminfo section\n" 1070 #define MSG_DEBUG_FNDSYMINFO_SIZE 26 1071 1072 #define MSG_DEBUG_FNDVERSYM "[%d: %s]: versym section: [%d: %s]\n" 1073 #define MSG_DEBUG_FNDVERSYM_SIZE 35 1074 1075 #define MSG_DEBUG_FNDXSHNDX "[%d: %s]: extended section index section: [%d: %s]\n" 1076 #define MSG_DEBUG_FNDXSHNDX_SIZE 51 1077 1078 #define MSG_DEBUG_EXISTSTR "[%d: %s][%d]: Found existing string in section: %s\n" 1079 #define MSG_DEBUG_EXISTSTR_SIZE 51 1080 1081 #define MSG_DEBUG_ADDSTR "[%d: %s][%d]: Using %d/%d bytes from reserved area to add string: %s\n" 1082 #define MSG_DEBUG_ADDSTR_SIZE 69 1083 1084 #define MSG_DEBUG_NULL2DYNFL1 "[%d: %s]: No existing flags1 field to modify. Will use extra DT_NULL in slot [%d] \n" 1085 #define MSG_DEBUG_NULL2DYNFL1_SIZE 83 1086 1087 #define MSG_DEBUG_AUX_LINK "[%d: %s]: Ignoring section: sh_link field references non-symbol table section: [%d]\n" 1088 #define MSG_DEBUG_AUX_LINK_SIZE 84 1089 1090 #define MSG_DEBUG_AUX_SIZE "[%d: %s][%d]: Ignoring section: Not enough elements for corresponding symbol table: [%d: %s][%d]\n" 1091 #define MSG_DEBUG_AUX_SIZE_SIZE 97 1092 1093 #define MSG_DEBUG_EXECCMD "command: %s\n" 1094 #define MSG_DEBUG_EXECCMD_SIZE 12 1095 1096 #define MSG_DEBUG_SHNAM2NDX "[%d: %s]: section name: %s\n" 1097 #define MSG_DEBUG_SHNAM2NDX_SIZE 27 1098 1099 #define MSG_DEBUG_SYMNAM2NDX "[%d: %s][%d]: symbol \"%s\"\n" 1100 #define MSG_DEBUG_SYMNAM2NDX_SIZE 26 1101 1102 #define MSG_DEBUG_INPLACEWARN "warning: editing input file in place is not recommended: %s\n" 1103 #define MSG_DEBUG_INPLACEWARN_SIZE 60 1104 1105 #define MSG_DEBUG_SHNDX_RANGE "Specified section index [%d] is outside of valid of range for this object: 0-%d\n" 1106 #define MSG_DEBUG_SHNDX_RANGE_SIZE 80 1107 1108 #define MSG_DEBUG_ARRCPY_1 "%s: copy array element [%d] to [%d]\n" 1109 #define MSG_DEBUG_ARRCPY_1_SIZE 36 1110 1111 #define MSG_DEBUG_ARRCPY_N "%s: copy array elements [%d-%d] to [%d-%d]\n" 1112 #define MSG_DEBUG_ARRCPY_N_SIZE 43 1113 1114 #define MSG_DEBUG_ARRZERO_1 "%s[%d]: zero array element\n" 1115 #define MSG_DEBUG_ARRZERO_1_SIZE 27 1116 1117 #define MSG_DEBUG_ARRZERO_N "%s[%d-%d]: zero %d array elements\n" 1118 #define MSG_DEBUG_ARRZERO_N_SIZE 34 1119 1120 #define MSG_DEBUG_ARRMOVE_1 "%s: moved element [%d] to [%d]\n" 1121 #define MSG_DEBUG_ARRMOVE_1_SIZE 31 1122 1123 #define MSG_DEBUG_ARRMOVE_N "%s: moved %d elements from [%d-%d] to [%d-%d]\n" 1124 #define MSG_DEBUG_ARRMOVE_N_SIZE 46 1125 1126 #define MSG_ERR_NOFILSYSONLY "No ELF object specified. Only commands from module sys: are allowed: %s:%s\n" 1127 #define MSG_ERR_NOFILSYSONLY_SIZE 75 1128 1129 #define MSG_ERR_BADOSTYLE "Unrecognized output style (default|simple|num): %s\n" 1130 #define MSG_ERR_BADOSTYLE_SIZE 51 1131 1132 #define MSG_ERR_BADCONST "internal error: bad constant value in elfedit_const_to_atoui()\n" 1133 #define MSG_ERR_BADCONST_SIZE 63 1134 1135 #define MSG_ERR_BADGETVAL "internal error: bad required value passed to elfedit_XXX_get_value()\n" 1136 #define MSG_ERR_BADGETVAL_SIZE 69 1137 1138 #define MSG_ERR_PATHTOOLONG "path too long: %s/%s.so\n" 1139 #define MSG_ERR_PATHTOOLONG_SIZE 24 1140 1141 #define MSG_ERR_CNTDLOPEN "unable to load module sharable object %s: %s\n" 1142 #define MSG_ERR_CNTDLOPEN_SIZE 45 1143 1144 #define MSG_ERR_CNTDLCLOSE "unable to unload module sharable object %s: %s\n" 1145 #define MSG_ERR_CNTDLCLOSE_SIZE 47 1146 1147 #define MSG_ERR_ESCEOL "backslash escape cannot be used at end of line\n" 1148 #define MSG_ERR_ESCEOL_SIZE 47 1149 1150 #define MSG_ERR_BADCESC "unrecognized escape in double quoted token: \\%c\n" 1151 #define MSG_ERR_BADCESC_SIZE 48 1152 1153 #define MSG_ERR_UNTERMQUOTE "command is missing closing quote: %c\n" 1154 #define MSG_ERR_UNTERMQUOTE_SIZE 37 1155 1156 #define MSG_ERR_UNRECMOD "no such module: %s\n" 1157 #define MSG_ERR_UNRECMOD_SIZE 19 1158 1159 #define MSG_ERR_UNRECCMD "no such command: %s:%s\n" 1160 #define MSG_ERR_UNRECCMD_SIZE 23 1161 1162 #define MSG_ERR_SONOTMOD "sharable object is not a valid elfedit module: %s\n" 1163 #define MSG_ERR_SONOTMOD_SIZE 50 1164 1165 #define MSG_ERR_CNTULSMOD "cannot unload built in module: %s\n" 1166 #define MSG_ERR_CNTULSMOD_SIZE 34 1167 1168 #define MSG_ERR_NULLPRICMDNAM "module has empty string for primary command: %s\n" 1169 #define MSG_ERR_NULLPRICMDNAM_SIZE 48 1170 1171 #define MSG_ERR_BADMODLOAD "elfedit module failed to initialize: %s\n" 1172 #define MSG_ERR_BADMODLOAD_SIZE 40 1173 1174 #define MSG_ERR_BADMODNAME "sharable library provides module '%s' rather than expected '%s': %s\n" 1175 #define MSG_ERR_BADMODNAME_SIZE 68 1176 1177 #define MSG_ERR_OPT_MODPRE "command option name must start with a '-': %s : %s:%s %s\n" 1178 #define MSG_ERR_OPT_MODPRE_SIZE 57 1179 1180 #define MSG_ERR_OPT_MODLEN "command option name must have at least one character: %s : %s:%s %s\n" 1181 #define MSG_ERR_OPT_MODLEN_SIZE 68 1182 1183 #define MSG_ERR_OPT_EXCMASKN0 "command option oa_excmask is non-zero when oa_idmask is zero: %s : %s:%s %s\n" 1184 #define MSG_ERR_OPT_EXCMASKN0_SIZE 76 1185 1186 #define MSG_ERR_OPT_IDMASKPOW2 "command option oa_idmask must be 0 or power of 2: %s : %s:%s %s\n" 1187 #define MSG_ERR_OPT_IDMASKPOW2_SIZE 64 1188 1189 #define MSG_ERR_OPT_IDMASKUNIQ "command option oa_idmask must be 0 or must be unique value: %s : %s:%s %s\n" 1190 #define MSG_ERR_OPT_IDMASKUNIQ_SIZE 74 1191 1192 #define MSG_ERR_ARG_MODPRE "command argument name may not start with a '-': %s : %s:%s %s\n" 1193 #define MSG_ERR_ARG_MODPRE_SIZE 62 1194 1195 #define MSG_ERR_ARG_MODLEN "command argument name must have at least one character: %s : %s:%s %s\n" 1196 #define MSG_ERR_ARG_MODLEN_SIZE 70 1197 1198 #define MSG_ERR_ARG_CMDOA_VAL "command argument has ELFEDIT_CMDOA_F_VALUE set, which is only allowed for command options: %s : %s:%s %s\n" 1199 #define MSG_ERR_ARG_CMDOA_VAL_SIZE 105 1200 1201 #define MSG_ERR_ARG_MASKNOT0 "command argument oa_idmask and oa_excmask fields must both be set to 0: %s : %s:%s %s\n" 1202 #define MSG_ERR_ARG_MASKNOT0_SIZE 86 1203 1204 #define MSG_ERR_BADSTDOA "internal error: argument or option uses ELFEDIT_CMDOA_F_VALUE incorrectly: %s : %s:%s\n" 1205 #define MSG_ERR_BADSTDOA_SIZE 86 1206 1207 #define MSG_ERR_CMDOA_VALNAM "ELFEDIT_CMDOA_F_VALUE optarg has NULL oa_name: %s : %s:%s %s\n" 1208 #define MSG_ERR_CMDOA_VALNAM_SIZE 61 1209 1210 #define MSG_ERR_CMDOA_VALNOT0 "ELFEDIT_CMDOA_F_VALUE optarg has non-0 oa_help, oa_flags, oa_idmask or oa_excmask field: %s : %s:%s %s\n" 1211 #define MSG_ERR_CMDOA_VALNOT0_SIZE 103 1212 1213 #define MSG_ERR_BADMODOPTVAL "command option has ELFEDIT_CMDOA_F_VALUE bit set, but following value item is missing: %s : %s:%s %s\n" 1214 #define MSG_ERR_BADMODOPTVAL_SIZE 101 1215 1216 #define MSG_ERR_CNTOPNFILE "open failed: %s: %s\n" 1217 #define MSG_ERR_CNTOPNFILE_SIZE 20 1218 1219 #define MSG_ERR_CNTOPNDIR "unable to read directory: %s: %s\n" 1220 #define MSG_ERR_CNTOPNDIR_SIZE 33 1221 1222 #define MSG_ERR_SIGACTION "unable to set signal handler: %s\n" 1223 #define MSG_ERR_SIGACTION_SIZE 33 1224 1225 #define MSG_ERR_NOAR "unable to edit ELF archive: %s\n" 1226 #define MSG_ERR_NOAR_SIZE 31 1227 1228 #define MSG_ERR_UNRECELFFILE "unable to edit non-ELF file: %s\n" 1229 #define MSG_ERR_UNRECELFFILE_SIZE 32 1230 1231 #define MSG_ERR_BADELFCLASS "unable to edit file with unknown ELFCLASS: %s\n" 1232 #define MSG_ERR_BADELFCLASS_SIZE 46 1233 1234 #define MSG_ERR_MALLOC "%s: malloc: %s\n" 1235 #define MSG_ERR_MALLOC_SIZE 15 1236 1237 #define MSG_ERR_LIBELF "%s: %s failed: %s\n" 1238 #define MSG_ERR_LIBELF_SIZE 18 1239 1240 #define MSG_ERR_MODNOCMD "module '%s' specified without a command\n" 1241 #define MSG_ERR_MODNOCMD_SIZE 40 1242 1243 #define MSG_ERR_CNTFORK "unable to execute child process: %s\n" 1244 #define MSG_ERR_CNTFORK_SIZE 36 1245 1246 #define MSG_ERR_CNTWAIT "unable to wait for child process: %s\n" 1247 #define MSG_ERR_CNTWAIT_SIZE 37 1248 1249 #define MSG_ERR_CNTEXEC "%sunable to exec %s: %s\n" 1250 #define MSG_ERR_CNTEXEC_SIZE 24 1251 1252 #define MSG_ERR_CNTSTAT "unable to stat %s: %s\n" 1253 #define MSG_ERR_CNTSTAT_SIZE 22 1254 1255 #define MSG_ERR_CNTCHMOD "unable to chmod %s: %s\n" 1256 #define MSG_ERR_CNTCHMOD_SIZE 23 1257 1258 #define MSG_ERR_BADSECNDX "Specified section index [%d] is outside valid range: 1-%d\n" 1259 #define MSG_ERR_BADSECNDX_SIZE 58 1260 1261 #define MSG_ERR_NOCAP "ELF object does not have a capabilities section\n" 1262 #define MSG_ERR_NOCAP_SIZE 48 1263 1264 #define MSG_ERR_NODYN "ELF object does not have a dynamic section\n" 1265 #define MSG_ERR_NODYN_SIZE 43 1266 1267 #define MSG_ERR_NOSYM "[%d: %s]: Symbol table does not contain symbol: %s\n" 1268 #define MSG_ERR_NOSYM_SIZE 51 1269 1270 #define MSG_ERR_NOSYMTAB "symbol table section not found\n" 1271 #define MSG_ERR_NOSYMTAB_SIZE 31 1272 1273 #define MSG_ERR_NOSYMINFO "ELF object does not have a syminfo section\n" 1274 #define MSG_ERR_NOSYMINFO_SIZE 43 1275 1276 #define MSG_ERR_NOTSYMTAB "[%d: %s]: section is not a symbol table\n" 1277 #define MSG_ERR_NOTSYMTAB_SIZE 40 1278 1279 #define MSG_ERR_STRSHNDX "string section index %d is outside expected range 1 - %d\n" 1280 #define MSG_ERR_STRSHNDX_SIZE 57 1281 1282 #define MSG_ERR_NOTSTRSH "[%d: %s]: Section is not a string table as expected\n" 1283 #define MSG_ERR_NOTSTRSH_SIZE 52 1284 1285 #define MSG_ERR_NOSTRPAD "[%d: %s]: String table does not have room to add string\n" 1286 #define MSG_ERR_NOSTRPAD_SIZE 56 1287 1288 #define MSG_ERR_BADSTROFF "[%d: %s]: String offset [%d] is outside valid range: 0-%d\n" 1289 #define MSG_ERR_BADSTROFF_SIZE 58 1290 1291 #define MSG_ERR_NOVERSYMSEC "[%d: %s]: symbol table does not have an associated versym section\n" 1292 #define MSG_ERR_NOVERSYMSEC_SIZE 66 1293 1294 #define MSG_ERR_NOXSHSEC "[%d: %s]: symbol table does not have an associated extended index section\n" 1295 #define MSG_ERR_NOXSHSEC_SIZE 74 1296 1297 #define MSG_ERR_BADATOISTR "not a valid numeric value: '%s'\n" 1298 #define MSG_ERR_BADATOISTR_SIZE 32 1299 1300 #define MSG_ERR_ATOIRANGE "%s value is out of range [%lld - %lld]: %lld\n" 1301 #define MSG_ERR_ATOIRANGE_SIZE 45 1302 1303 #define MSG_ERR_ATOUIRANGE "%s value is out of range [%llu - %llu]: %llu\n" 1304 #define MSG_ERR_ATOUIRANGE_SIZE 45 1305 1306 #define MSG_ERR_BADPATHCODE "Unrecognized code encountered in module search path: %%%c\n" 1307 #define MSG_ERR_BADPATHCODE_SIZE 58 1308 1309 #define MSG_ERR_UNKNOWNSYSERR "<unknown>" 1310 #define MSG_ERR_UNKNOWNSYSERR_SIZE 9 1311 1312 #define MSG_ERR_PAGERFINI "Error encountered closing pager process\n" 1313 #define MSG_ERR_PAGERFINI_SIZE 40 1314 1315 #define MSG_ERR_PRINTF "Error encountered writing output\n" 1316 #define MSG_ERR_PRINTF_SIZE 33 1317 1318 #define MSG_ERR_FWRITE "Error encountered writing output: %s\n" 1319 #define MSG_ERR_FWRITE_SIZE 37 1320 1321 #define MSG_ERR_MODNAMTOOLONG "module name too long: %s\n" 1322 #define MSG_ERR_MODNAMTOOLONG_SIZE 25 1323 1324 #define MSG_ERR_CNTGETORIGIN "Unable to determine elfedit $ORIGIN\n" 1325 #define MSG_ERR_CNTGETORIGIN_SIZE 36 1326 1327 #define MSG_ERR_GLREAD "error reading from stdin: %s\n" 1328 #define MSG_ERR_GLREAD_SIZE 29 1329 1330 #define MSG_ERR_READONLY "Operation not allowed in readonly session\n" 1331 #define MSG_ERR_READONLY_SIZE 42 1332 1333 #define MSG_ERR_NODIRTYQUIT "Output ELF file has changes pending. Use 'write' to save them, or 'quit -f' to exit without saving\n" 1334 #define MSG_ERR_NODIRTYQUIT_SIZE 99 1335 1336 #define MSG_ERR_NOSECNAM "File does not contain section of name: %s\n" 1337 #define MSG_ERR_NOSECNAM_SIZE 42 1338 1339 #define MSG_ERR_NOSECTYP "File does not contain section of type: %s\n" 1340 #define MSG_ERR_NOSECTYP_SIZE 42 1341 1342 #define MSG_ERR_ARRBNDS "%s[%d]: attempt to access elements outside of valid of range for this section: 0-%d\n" 1343 #define MSG_ERR_ARRBNDS_SIZE 84 1344 1345 #define MSG_ERR_ARRMVOVERLAP "%s: Array source [%d-%d] and destination [%d-%d] regions overlap\n" 1346 #define MSG_ERR_ARRMVOVERLAP_SIZE 65 1347 1348 #define MSG_ERR_BADOSABI "Operation not supported by current OS ABI: %s\n" 1349 #define MSG_ERR_BADOSABI_SIZE 46 1350 1351 #define MSG_HLPFMT_MOD "\nMODULE\n %s - %s\n" 1352 #define MSG_HLPFMT_MOD_SIZE 19 1353 1354 #define MSG_HLPFMT_NAME "\nNAME\n %s - %s\n" 1355 #define MSG_HLPFMT_NAME_SIZE 17 1356 1357 #define MSG_HLPFMT_SYNOPSIS "\nSYNOPSIS\n %s\n" 1358 #define MSG_HLPFMT_SYNOPSIS_SIZE 16 1359 1360 #define MSG_HLPFMT_ALIASES "\nALIASES\n" 1361 #define MSG_HLPFMT_ALIASES_SIZE 9 1362 1363 #define MSG_HLPFMT_MODDEFCMD "module default" 1364 #define MSG_HLPFMT_MODDEFCMD_SIZE 14 1365 1366 #define MSG_HLPFMT_DEFCMD "\t\t(Default Command For Module)" 1367 #define MSG_HLPFMT_DEFCMD_SIZE 30 1368 1369 #define MSG_HLPFMT_DESC "\nDESCRIPTION\n" 1370 #define MSG_HLPFMT_DESC_SIZE 13 1371 1372 #define MSG_HLPFMT_ARGS "\nARGUMENTS\n" 1373 #define MSG_HLPFMT_ARGS_SIZE 11 1374 1375 #define MSG_HLPFMT_OPT "\nOPTIONS\n" 1376 #define MSG_HLPFMT_OPT_SIZE 9 1377 1378 #define MSG_HLPFMT_MULTIEND "[End: %s, Next: %s]\n" 1379 #define MSG_HLPFMT_MULTIEND_SIZE 20 1380 1381 #define MSG_HLPFMT_INFILE "Input File: %s\n" 1382 #define MSG_HLPFMT_INFILE_SIZE 16 1383 1384 #define MSG_HLPFMT_INFILERO "Input File: %s (readonly)\n" 1385 #define MSG_HLPFMT_INFILERO_SIZE 27 1386 1387 #define MSG_HLPFMT_INFILENONE "Input File: <not present>\n" 1388 #define MSG_HLPFMT_INFILENONE_SIZE 26 1389 1390 #define MSG_HLPFMT_OUTFILE "Output File: %s\n" 1391 #define MSG_HLPFMT_OUTFILE_SIZE 16 1392 1393 #define MSG_HLPFMT_CNGPENDING " (changes pending)\n" 1394 #define MSG_HLPFMT_CNGPENDING_SIZE 22 1395 1396 #define MSG_HLPFMT_VARHDR "\nOptions:\n" 1397 #define MSG_HLPFMT_VARHDR_SIZE 10 1398 1399 #define MSG_HLPFMT_AFLG " a (Autoprint): %s\n" 1400 #define MSG_HLPFMT_AFLG_SIZE 25 1401 1402 #define MSG_HLPFMT_DFLG " d (Debug): %s\n" 1403 #define MSG_HLPFMT_DFLG_SIZE 25 1404 1405 #define MSG_HLPFMT_OFLG " o (Output Style): %s\n" 1406 #define MSG_HLPFMT_OFLG_SIZE 25 1407 1408 #define MSG_HLPFMT_PATHHDR "\nModule Load Path:\n" 1409 #define MSG_HLPFMT_PATHHDR_SIZE 19 1410 1411 #define MSG_HLPFMT_MODHDR "\nCurrently Loaded Modules:\n" 1412 #define MSG_HLPFMT_MODHDR_SIZE 27 1413 1414 #define MSG_HLPFMT_SUMSYNOPSIS "\n %s\n" 1415 #define MSG_HLPFMT_SUMSYNOPSIS_SIZE 15 1416 1417 #define MSG_UNKNOWNSECNAM "<unknown section name>" 1418 #define MSG_UNKNOWNSECNAM_SIZE 22 1419 1420 #define MSG_BADSYMOFFSETNAM "<bad symbol name>" 1421 #define MSG_BADSYMOFFSETNAM_SIZE 17 1422 1423 #define MSG_MOD_SYS_DESC "Built in elfedit commands" 1424 #define MSG_MOD_SYS_DESC_SIZE 25 1425 1426 #define MSG_SYS_DESC_HELP "Display module information and/or command documentation" 1427 #define MSG_SYS_DESC_HELP_SIZE 55 1428 1429 #define MSG_SYS_DESC_LOAD "Load module(s)" 1430 #define MSG_SYS_DESC_LOAD_SIZE 14 1431 1432 #define MSG_SYS_DESC_SET "Set elfedit options" 1433 #define MSG_SYS_DESC_SET_SIZE 19 1434 1435 #define MSG_SYS_DESC_STATUS "Session status (files, modules, options)" 1436 #define MSG_SYS_DESC_STATUS_SIZE 40 1437 1438 #define MSG_SYS_DESC_QUIT "Exit elfedit session" 1439 #define MSG_SYS_DESC_QUIT_SIZE 20 1440 1441 #define MSG_SYS_DESC_UNLOAD "Unload module(s)" 1442 #define MSG_SYS_DESC_UNLOAD_SIZE 16 1443 1444 #define MSG_SYS_DESC_WRITE "Flush any changes back to current ELF file" 1445 #define MSG_SYS_DESC_WRITE_SIZE 42 1446 1447 #define MSG_SYS_OPTDESC_HELP_S "Generate a command synopsis rather than full command help.\n" 1448 #define MSG_SYS_OPTDESC_HELP_S_SIZE 59 1449 1450 #define MSG_SYS_OPTDESC_LOAD_A "Load every module that can be found by following the module\nload path.\n" 1451 #define MSG_SYS_OPTDESC_LOAD_A_SIZE 71 1452 1453 #define MSG_SYS_OPTDESC_QUIT_F "Exit the elfedit session without first requiring changes to\nbe saved. Any modifications made to the output file will be\nquietly discarded, and will be lost." 1454 #define MSG_SYS_OPTDESC_QUIT_F_SIZE 156 1455 1456 #define MSG_SYS_OPTDESC_UNLOAD_A "Unload every currently loaded module. Loaded modules can be\ndisplayed using the \"status\" command.\n" 1457 #define MSG_SYS_OPTDESC_UNLOAD_A_SIZE 98 1458 1459 #define MSG_ARGDESC_HELP_ARG "Items for which help is desired. Module names and/or command\nnames are allowed, as described above.\n" 1460 #define MSG_ARGDESC_HELP_ARG_SIZE 100 1461 1462 #define MSG_ARGDESC_LOAD_MODNAME "Name(s) of modules to be loaded.\n" 1463 #define MSG_ARGDESC_LOAD_MODNAME_SIZE 33 1464 1465 #define MSG_ARGDESC_SET_OPTION "Name of option to be set.\n" 1466 #define MSG_ARGDESC_SET_OPTION_SIZE 26 1467 1468 #define MSG_ARGDESC_SET_VALUE "Value to be set for option.\n" 1469 #define MSG_ARGDESC_SET_VALUE_SIZE 28 1470 1471 #define MSG_ARGDESC_UNLOAD_MODNAME "Name(s) of modules to be loaded.\n" 1472 #define MSG_ARGDESC_UNLOAD_MODNAME_SIZE 33 1473 1474 #define MSG_SYS_HELP_HELP_NOARG " Welcome to elfedit, a utility for examining and editing\nELF objects. This brief discussion will tell you the basics\nyou need to know in order to use the elfedit help facility.\nWith that, you will be able to find desired information about\nelfedit and its available commands.\n\nTo reach the point where you are reading this text, you entered\nthe elfedit command \"help\", without any arguments. Actually, you\nmay have entered any of the following:\n\n\t?, help, man, sys:?, sys:help, sys:man\n\nAs we will see below, these are simply different names for the\nhelp command.\n\nYou use elfedit by issuing commands for it to execute.\nThe syntax is similar to that used by Unix command line\nutilities, and follows the general form:\n\n\t> module:command [-opt]... arg...\n\nThe '>' character is the elfedit prompt, and not part of the\ncommand. We show elfedit commands with the prompt, but you\nshould not type the prompt in. elfedit supplies it to let\nyou know when it is expecting a command to process.\n\nAs with a Unix utility, there are options (which start with a '-'\ncharacter) and plain arguments (which do not start with a '-').\nThe plain arguments follow the options. The options and plain\narguments differ from command to command. Each command sets its own\nrules for whether it accepts options and arguments, as well as\nwhich ones and how many. These details are found in the online\nhelp that is available for each command. To learn more about\nany command, use the help command:\n\n\t> help cmdname\n\nwhere 'cmdname' is the name of the command you are interested in.\nhelp is simply an elfedit command, like any other. As such, you\ncan read the full documentation for help by entering the command:\n\n\t> help sys:help\n\nelfedit functionality is organized as \"modules\", which are\ndynamically loadable ELF objects that contain related editing\ncommands. To refer to a command, you enter its module name,\na colon (:), and the command name, all as a single unit without\nany intervening white-space. The 'sys' module is special: It is\na built in module that contains the core commands required for\nelfedit to work. As a convenience, if you omit the module name\nfrom a command, elfedit assumes that you are referring to the sys\nmodule. This is why sys:help and help are really the same command,\nand why we did not have to write the above help command as:\n\n\t> sys:help sys:help\n\nIn fact, we could have written it even more simply, as:\n\n\t> help help\n\nTo access a command from any module other than sys, you must\nenter both the module and command names. This means that if\nyou write your own module, the module name needs to be unique,\nbut the command names it supplies can be the same names used by\nother modules. For instance, most elfedit modules supply a command\nnamed dump to display information about their part of the ELF \nfile in a style similar to that used by the Unix elfdump command.\nDespite having the same name (dump), these are all distinct and\nseparate commands. elfedit uses the module/command pair to know\nwhich one you mean.\n\nelfedit commands can sometimes have more than one name, or alias.\nUsually, each command only has one name, but there are some\nexceptions. For example, as we have already seen, sys:?, and \nsys:man are aliases of sys:help. These are all common names\nthat different programs use to supply help. elfedit accepts all\nof these names in the hope that a new user who doesn't know\nelfedit yet will try one of them, and find this information.\n\nMost modules provide a \"default command\". This command will be\nrun if you provide only the module name. Most modules use this\nfeature to provide a shortcut for their \"dump\" command. For\ninstance, both of the following commands run dyn:dump:\n\n\t> dyn:\n\t> dyn:dump\n\nAlthough the command name dump was not required, the colon\n(:) character is. Without it, elfedit will think you mean the\ncommand sys:dyn.\n\nUsing the help command (sys:help), you can easily learn about\nthe other commands that are available. To see which modules\nare available and a synopsis of the commands they provide:\n\n\t> help -s\n\nTo see the full documentation for a command, you give the\nname of the command to the help command as a plain argument.\nAs we saw above, this command will show you the detailed\ndocumentation for the help command itself:\n\n\t> help help\n\nThe arguments to help can also be module names, without the\ncommand. In that case, output similar to that from the -s\noption will be displayed for that module.\n\nIf you are new to elfedit, we recommend that you start by learning\nabout the commands in the sys module. This will provide you with\nsuch basic knowledge as how to find out the status of your session\n(sys:status) or how to exit the elfedit program (sys:quit). Once\nyou understand the basic commands, you can branch out and learn\nabout the available modules and commands and how they can be used\nto edit ELF files.\n" 1475 #define MSG_SYS_HELP_HELP_NOARG_SIZE 4854 1476 1477 #define MSG_SYS_HELP_HELP " The sys:help command provides information on elfedit modules\nand commands:\n\no\tIf called with command names as arguments, documentation\n\tfor each given command is displayed. If the -s option is\n\tspecified, a basic synopsis for the command is given.\n\tOtherwise, the full documentation is shown.\n\no\tIf called with module names as arguments, the name and\n\tpurpose of each module is shown, along with a brief synopsis\n\tof the commands the module provides.\n\no\tIf called with the -s option, and no arguments, a brief\n\tsynopsis of every command is shown, organized by module,\n\tfor every module visible from the module load path.\n\no\tIf called with no arguments, and the -s option is not\n\tused, a brief welcome message is displayed, giving basic\n\tinformation on elfedit operation and the use of the\n\thelp command.\n" 1478 #define MSG_SYS_HELP_HELP_SIZE 807 1479 1480 #define MSG_SYS_HELP_LOAD "The sys:load command is used to explicitly load elfedit modules.\n\nMost of the functionality available in elfedit is not built\ninto the elfedit program directly. Instead, functionality\nis contained in \"modules\", which are implemented as dynamically\nloadable ELF sharable objects. This design allows for easy\nextensibility of elfedit's abilities, and it is also efficient,\nsince it allows elfedit to be a relatively small program.\n\nelfedit will automatically load a module under the following\ncircumstances:\n\n o\tA command from the module needs to be run.\n\n o\tTo display help information about the module or a command\n\tfound in the module.\n\n o\tTo perform command completion in an interactive session.\n\tCommand completion can cause many, or all modules visible\n\tin the module path to be loaded.\n\nThere is usually little need for explicit module loading.\nIt is usually best to allow elfedit to load modules as they\nare needed.\n" 1481 #define MSG_SYS_HELP_LOAD_SIZE 928 1482 1483 #define MSG_SYS_HELP_SET "Set options that control how elfedit works.\n\nMost variables accept boolean (true/false) values. The sys:set\ncommand accepts any of the following as a boolean value:\n0/1, true/false, t/f, yes/no, y/n, on/off.\n\nThe variables, and their allowed values, are as follows:\n\na\tAutoprint [boolean]\n\tWhen autoprint is active, elfedit automatically displays\n\tthe results of any edits after carrying them out. By default,\n\tautoprint is on for interactive sessions, and false for\n\tsessions where the input is not a tty. The elfedit -a option\n\tcan be used to enable autoprint at session start.\n\nd\tDebug [boolean]\n\tWhen enabled, elfedit issues detailed messages showing\n\twhere ELF data is being accessed, and how specific edits\n\tare being carried out. Debug mode is off by default. The\n\telfedit -d option can be used to enable debug mode at\n\tsession start.\n\no\tOutput Style [default, simple, num]\n\tControls the format in which elfedit prints ELF data:\n\n\tdefault\n\tInformation is displayed in a style similar to that used by\n\tthe elfdump utility. This style is best for interactive use.\n\n\tsimple\n\tData is displayed in a simple format, without extraneous\n\tinformation or formatting. Strings are displayed as is.\n\tNumbers are displayed as symbolic constants when possible,\n\tand in integer form otherwise.\n\n\tnum\n\tInteger values are always shown in integer form. Strings\n\tare shown as the integer offset into the containing string\n\ttable.\n" 1484 #define MSG_SYS_HELP_SET_SIZE 1417 1485 1486 #define MSG_SYS_HELP_STATUS "The status of the current elfedit session is shown:\n\no\tInput and output files\n\no\tCurrent settings of the elfedit options (See 'help set'\n\tfor more information on elfedit options)\n\no\tModule load path\n\no\tLoaded modules and the paths of the sharable objects\n\tthat provide them\n" 1487 #define MSG_SYS_HELP_STATUS_SIZE 274 1488 1489 #define MSG_SYS_HELP_QUIT "Exits the elfedit session.\n\nelfedit will normally refuse to exit a non-readonly session\nwhile there are unsaved edits pending. The sys:write command\ncan be used to save such edits, or the -f option can be used to\ndiscard pending edits and exit immediately.\n" 1490 #define MSG_SYS_HELP_QUIT_SIZE 257 1491 1492 #define MSG_SYS_HELP_UNLOAD "The sys:unload command is used to explicitly unload elfedit modules.\n\nThere is usually little need to explicitly unload modules.\n\nThe description of the sys:load command discusses module loading\nin more detail.\n" 1493 #define MSG_SYS_HELP_UNLOAD_SIZE 211 1494 1495 #define MSG_SYS_HELP_WRITE "Writes all pending edits to the output file. Until this is done,\nthe edits are not permanent, and can be abandoned by exiting the\nsession using the -f option to sys:quit. Once sys:write is used,\nthese changes become permanent.\n" 1496 #define MSG_SYS_HELP_WRITE_SIZE 227 1497 1498 #define MSG_STDOA_OPTDESC_AND "The new value should be bitwised AND'd against the\nexisting value.\n" 1499 #define MSG_STDOA_OPTDESC_AND_SIZE 67 1500 1501 #define MSG_STDOA_OPTDESC_CMP "The new value should be bitwise complemented\n(1 values set to 0, and 0 values set to 1) before being\napplied to the existing value.\n" 1502 #define MSG_STDOA_OPTDESC_CMP_SIZE 132 1503 1504 #define MSG_STDOA_OPTDESC_O "Overrides the global output style (as set via the sys:set\ncommand) for the duration of the call to this command.\nThe valid values for the outstyle argument are: default,\nsimple, or num.\n\nOutput styles are described in more detail in the documentation\nfor the sys:set command.\n" 1505 #define MSG_STDOA_OPTDESC_O_SIZE 276 1506 1507 #define MSG_STDOA_OPTDESC_OR "The new value should be bitwised OR'd against the\nexisting value.\n" 1508 #define MSG_STDOA_OPTDESC_OR_SIZE 66 1509 1510 #define MSG_ELF_BEGIN "elf_begin" 1511 #define MSG_ELF_BEGIN_SIZE 9 1512 1513 #define MSG_ELF_GETEHDR "elf_getehdr" 1514 #define MSG_ELF_GETEHDR_SIZE 11 1515 1516 #define MSG_ELF_GETDATA "elf_getdata" 1517 #define MSG_ELF_GETDATA_SIZE 11 1518 1519 #define MSG_ELF_GETPHDRNUM "elf_getphdrnum" 1520 #define MSG_ELF_GETPHDRNUM_SIZE 14 1521 1522 #define MSG_ELF_GETPHDR "elf_getphdr" 1523 #define MSG_ELF_GETPHDR_SIZE 11 1524 1525 #define MSG_ELF_GETSCN "elf_getscn" 1526 #define MSG_ELF_GETSCN_SIZE 10 1527 1528 #define MSG_ELF_GETSHDR "elf_getshdr" 1529 #define MSG_ELF_GETSHDR_SIZE 11 1530 1531 #define MSG_ELF_GETSHDRNUM "elf_getshdrnum" 1532 #define MSG_ELF_GETSHDRNUM_SIZE 14 1533 1534 #define MSG_ELF_GETSHDRSTRNDX "elf_getshdrstrndx" 1535 #define MSG_ELF_GETSHDRSTRNDX_SIZE 17 1536 1537 #define MSG_ELF_UPDATE "elf_update" 1538 #define MSG_ELF_UPDATE_SIZE 10 1539 1540 #define MSG_SHT_SYMTAB "SHT_SYMTAB" 1541 #define MSG_SHT_SYMTAB_SIZE 10 1542 1543 #define MSG_SHT_SYMTAB_ALT1 "symtab" 1544 #define MSG_SHT_SYMTAB_ALT1_SIZE 6 1545 1546 #define MSG_SHT_STRTAB "SHT_STRTAB" 1547 #define MSG_SHT_STRTAB_SIZE 10 1548 1549 #define MSG_SHT_STRTAB_ALT1 "strtab" 1550 #define MSG_SHT_STRTAB_ALT1_SIZE 6 1551 1552 #define MSG_SHT_DYNSYM "SHT_DYNSYM" 1553 #define MSG_SHT_DYNSYM_SIZE 10 1554 1555 #define MSG_SHT_DYNSYM_ALT1 "dynsym" 1556 #define MSG_SHT_DYNSYM_ALT1_SIZE 6 1557 1558 #define MSG_SHT_SUNW_LDYNSYM "SHT_SUNW_LDYNSYM" 1559 #define MSG_SHT_SUNW_LDYNSYM_SIZE 16 1560 1561 #define MSG_SHT_SUNW_LDYNSYM_ALT1 "sunw_ldynsym" 1562 #define MSG_SHT_SUNW_LDYNSYM_ALT1_SIZE 12 1563 1564 #define MSG_ISA_SPARC_32 "sparc" 1565 #define MSG_ISA_SPARC_32_SIZE 5 1566 1567 #define MSG_ISA_SPARC_64 "sparcv9" 1568 #define MSG_ISA_SPARC_64_SIZE 7 1569 1570 #define MSG_ISA_X86_32 "i386" 1571 #define MSG_ISA_X86_32_SIZE 4 1572 1573 #define MSG_ISA_X86_64 "amd64" 1574 #define MSG_ISA_X86_64_SIZE 5 1575 1576 #define MSG_FMT_BLDPATH "%s/%s" 1577 #define MSG_FMT_BLDPATH_SIZE 5 1578 1579 #define MSG_FMT_BLDSOPATH "%s/%s.so" 1580 #define MSG_FMT_BLDSOPATH_SIZE 8 1581 1582 #define MSG_FMT_MODCMD "%s:%s" 1583 #define MSG_FMT_MODCMD_SIZE 5 1584 1585 #define MSG_FMT_SYSCMD "[sys]:%s" 1586 #define MSG_FMT_SYSCMD_SIZE 8 1587 1588 #define MSG_FMT_WORDVAL "%u" 1589 #define MSG_FMT_WORDVAL_SIZE 2 1590 1591 #define MSG_FMT_WRAPUSAGE "\n%s" 1592 #define MSG_FMT_WRAPUSAGE_SIZE 3 1593 1594 #define MSG_FMT_SECMSGPRE "[%d: %s]" 1595 #define MSG_FMT_SECMSGPRE_SIZE 8 1596 1597 #define MSG_STR_NULL "" 1598 #define MSG_STR_NULL_SIZE 0 1599 1600 #define MSG_STR_ARG "arg" 1601 #define MSG_STR_ARG_SIZE 3 1602 1603 #define MSG_STR_SP_BAR_SP " | " 1604 #define MSG_STR_SP_BAR_SP_SIZE 3 1605 1606 #define MSG_STR_ELIPSES "..." 1607 #define MSG_STR_ELIPSES_SIZE 3 1608 1609 #define MSG_STR_OPTIONS "ade:L:o:r" 1610 #define MSG_STR_OPTIONS_SIZE 9 1611 1612 #define MSG_STR_ELFEDIT "elfedit: " 1613 #define MSG_STR_ELFEDIT_SIZE 9 1614 1615 #define MSG_STR_PROMPT "> " 1616 #define MSG_STR_PROMPT_SIZE 2 1617 1618 #define MSG_STR_NL "\n" 1619 #define MSG_STR_NL_SIZE 1 1620 1621 #define MSG_STR_TAB "\t" 1622 #define MSG_STR_TAB_SIZE 1 1623 1624 #define MSG_STR_BINCP "/bin/cp" 1625 #define MSG_STR_BINCP_SIZE 7 1626 1627 #define MSG_STR_BINMORE "/bin/more" 1628 #define MSG_STR_BINMORE_SIZE 9 1629 1630 #define MSG_STR_PAGER "PAGER" 1631 #define MSG_STR_PAGER_SIZE 5 1632 1633 #define MSG_STR_ELFEDITINIT32 "elfedit32_init" 1634 #define MSG_STR_ELFEDITINIT32_SIZE 14 1635 1636 #define MSG_STR_ELFEDITINIT64 "elfedit64_init" 1637 #define MSG_STR_ELFEDITINIT64_SIZE 14 1638 1639 #define MSG_STR_HLPINDENT " " 1640 #define MSG_STR_HLPINDENT_SIZE 3 1641 1642 #define MSG_STR_HLPUSEINDENT " " 1643 #define MSG_STR_HLPUSEINDENT_SIZE 8 1644 1645 #define MSG_STR_HLPSUMINDENT " " 1646 #define MSG_STR_HLPSUMINDENT_SIZE 14 1647 1648 #define MSG_STR_HLPOPTARG "%s" 1649 #define MSG_STR_HLPOPTARG_SIZE 2 1650 1651 #define MSG_STR_HLPOPTARG2 "%s %s" 1652 #define MSG_STR_HLPOPTARG2_SIZE 5 1653 1654 #define MSG_STR_ENVVAR "ELFEDIT_PATH" 1655 #define MSG_STR_ENVVAR_SIZE 12 1656 1657 #define MSG_STR_MODPATH "%r/usr/lib/elfedit/%I" 1658 #define MSG_STR_MODPATH_SIZE 21 1659 1660 #define MSG_STR_EMPTY "" 1661 #define MSG_STR_EMPTY_SIZE 0 1662 1663 #define MSG_STR_DOT "." 1664 #define MSG_STR_DOT_SIZE 1 1665 1666 #define MSG_STR_COLON ":" 1667 #define MSG_STR_COLON_SIZE 1 1668 1669 #define MSG_STR_SPACE " " 1670 #define MSG_STR_SPACE_SIZE 1 1671 1672 #define MSG_STR_COMMA_SP ", " 1673 #define MSG_STR_COMMA_SP_SIZE 2 1674 1675 #define MSG_STR_CPAREN ")" 1676 #define MSG_STR_CPAREN_SIZE 1 1677 1678 #define MSG_STR_DOTSO ".so" 1679 #define MSG_STR_DOTSO_SIZE 3 1680 1681 #define MSG_STR_MINUS_MINUS "--" 1682 #define MSG_STR_MINUS_MINUS_SIZE 2 1683 1684 #define MSG_STR_MINUS_A "-a" 1685 #define MSG_STR_MINUS_A_SIZE 2 1686 1687 #define MSG_STR_MINUS_AND "-and" 1688 #define MSG_STR_MINUS_AND_SIZE 4 1689 1690 #define MSG_STR_MINUS_CMP "-cmp" 1691 #define MSG_STR_MINUS_CMP_SIZE 4 1692 1693 #define MSG_STR_MINUS_F "-f" 1694 #define MSG_STR_MINUS_F_SIZE 2 1695 1696 #define MSG_STR_MINUS_S "-s" 1697 #define MSG_STR_MINUS_S_SIZE 2 1698 1699 #define MSG_STR_MINUS_O "-o" 1700 #define MSG_STR_MINUS_O_SIZE 2 1701 1702 #define MSG_STR_MINUS_OR "-or" 1703 #define MSG_STR_MINUS_OR_SIZE 3 1704 1705 #define MSG_STR_MODNAME "modname" 1706 #define MSG_STR_MODNAME_SIZE 7 1707 1708 #define MSG_STR_TRUE "true" 1709 #define MSG_STR_TRUE_SIZE 4 1710 1711 #define MSG_STR_FALSE "false" 1712 #define MSG_STR_FALSE_SIZE 5 1713 1714 #define MSG_STR_ON "on" 1715 #define MSG_STR_ON_SIZE 2 1716 1717 #define MSG_STR_OFF "off" 1718 #define MSG_STR_OFF_SIZE 3 1719 1720 #define MSG_STR_YES "yes" 1721 #define MSG_STR_YES_SIZE 3 1722 1723 #define MSG_STR_NO "no" 1724 #define MSG_STR_NO_SIZE 2 1725 1726 #define MSG_STR_0 "0" 1727 #define MSG_STR_0_SIZE 1 1728 1729 #define MSG_STR_1 "1" 1730 #define MSG_STR_1_SIZE 1 1731 1732 #define MSG_STR_A "a" 1733 #define MSG_STR_A_SIZE 1 1734 1735 #define MSG_STR_D "d" 1736 #define MSG_STR_D_SIZE 1 1737 1738 #define MSG_STR_F "f" 1739 #define MSG_STR_F_SIZE 1 1740 1741 #define MSG_STR_N "n" 1742 #define MSG_STR_N_SIZE 1 1743 1744 #define MSG_STR_O "o" 1745 #define MSG_STR_O_SIZE 1 1746 1747 #define MSG_STR_OPTION "option" 1748 #define MSG_STR_OPTION_SIZE 6 1749 1750 #define MSG_STR_T "t" 1751 #define MSG_STR_T_SIZE 1 1752 1753 #define MSG_STR_VALUE "value" 1754 #define MSG_STR_VALUE_SIZE 5 1755 1756 #define MSG_STR_W "w" 1757 #define MSG_STR_W_SIZE 1 1758 1759 #define MSG_STR_Y "y" 1760 #define MSG_STR_Y_SIZE 1 1761 1762 #define MSG_STR_DEFAULT "default" 1763 #define MSG_STR_DEFAULT_SIZE 7 1764 1765 #define MSG_STR_MINUS_O_DEFAULT "-odefault" 1766 #define MSG_STR_MINUS_O_DEFAULT_SIZE 9 1767 1768 #define MSG_STR_SIMPLE "simple" 1769 #define MSG_STR_SIMPLE_SIZE 6 1770 1771 #define MSG_STR_MINUS_O_SIMPLE "-osimple" 1772 #define MSG_STR_MINUS_O_SIMPLE_SIZE 8 1773 1774 #define MSG_STR_NUM "num" 1775 #define MSG_STR_NUM_SIZE 3 1776 1777 #define MSG_STR_MINUS_O_NUM "-onum" 1778 #define MSG_STR_MINUS_O_NUM_SIZE 5 1779 1780 #define MSG_STR_OUTSTYLE "outstyle" 1781 #define MSG_STR_OUTSTYLE_SIZE 8 1782 1783 #define MSG_HLPFMT_MULTIHDR "::::::::::::::\n%s\n::::::::::::::\n" 1784 #define MSG_HLPFMT_MULTIHDR_SIZE 33 1785 1786 #define MSG_HLPFMT_NAMDSCCOL " %-15s%s\n" 1787 #define MSG_HLPFMT_NAMDSCCOL_SIZE 11 1788 1789 #define MSG_HLPFMT_NAMDSCHDR "%s - %s\n" 1790 #define MSG_HLPFMT_NAMDSCHDR_SIZE 8 1791 1792 #define MSG_HLPFMT_NAMSUMHDR " %s - %s\n" 1793 #define MSG_HLPFMT_NAMSUMHDR_SIZE 14 1794 1795 #define MSG_HLPFMT_PATHELT " %s\n" 1796 #define MSG_HLPFMT_PATHELT_SIZE 10 1797 1798 #define MSG_HLPFMT_MULTNAM "%s (" 1799 #define MSG_HLPFMT_MULTNAM_SIZE 4 1800 1801 #define MSG_MOD_SYS "sys" 1802 #define MSG_MOD_SYS_SIZE 3 1803 1804 #define MSG_SYS_CMD_HELP "help" 1805 #define MSG_SYS_CMD_HELP_SIZE 4 1806 1807 #define MSG_SYS_CMD_HELP_A1 "?" 1808 #define MSG_SYS_CMD_HELP_A1_SIZE 1 1809 1810 #define MSG_SYS_CMD_HELP_A2 "man" 1811 #define MSG_SYS_CMD_HELP_A2_SIZE 3 1812 1813 #define MSG_SYS_CMD_LOAD "load" 1814 #define MSG_SYS_CMD_LOAD_SIZE 4 1815 1816 #define MSG_SYS_CMD_QUIT "quit" 1817 #define MSG_SYS_CMD_QUIT_SIZE 4 1818 1819 #define MSG_SYS_CMD_QUIT_A1 "exit" 1820 #define MSG_SYS_CMD_QUIT_A1_SIZE 4 1821 1822 #define MSG_SYS_CMD_QUIT_A2 "bye" 1823 #define MSG_SYS_CMD_QUIT_A2_SIZE 3 1824 1825 #define MSG_SYS_CMD_SET "set" 1826 #define MSG_SYS_CMD_SET_SIZE 3 1827 1828 #define MSG_SYS_CMD_STATUS "status" 1829 #define MSG_SYS_CMD_STATUS_SIZE 6 1830 1831 #define MSG_SYS_CMD_UNLOAD "unload" 1832 #define MSG_SYS_CMD_UNLOAD_SIZE 6 1833 1834 #define MSG_SYS_CMD_WRITE "write" 1835 #define MSG_SYS_CMD_WRITE_SIZE 5 1836 1837 #define MSG_SYS_CMD_WRITE_A1 "flush" 1838 #define MSG_SYS_CMD_WRITE_A1_SIZE 5 1839 1840 #define MSG_SYS_CMD_WRITE_A2 "save" 1841 #define MSG_SYS_CMD_WRITE_A2_SIZE 4 1842 1843 #endif /* LINTSUP_SUPPRESS_STRINGS */ 1844 1845 #endif /* __lint */ 1846 1847 #endif 1848