Lines Matching +full:system +full:- +full:on +full:- +full:module
9 elfedit \- examine or edit ELF files
12 \fBelfedit\fR [\fB-adr\fR] [\fB-e\fR \fIcmd\fR] [\fB-L\fR \fIpath\fR] [\fB-o\fR \fBdefault\fR | \fB…
24 \fBelfedit\fR processes commands from the command line (\fB-e\fR option) or
34 \fBelfedit\fR functionality is organized in the form of modules. Each module
35 delivers a set of commands, focused on related functionality. A command is
36 specified by combining the module and command names with a colon (\fB:\fR)
38 refers to the \fBrunpath\fR command provided by the \fBdyn\fR module. Module
39 names must be unique. The command names within a given module are unique within
40 that module, but the same command names can be used in more than one module.
44 module. This command is run when the user specifies only a module name. Most
47 covered by the module. It is common for a module to specify dump as its default
54 arguments that start with the hyphen (\fB-\fR) character follow the command.
57 always precede plain arguments. The special option, \fB--\fR, (two hyphens) can
60 with a \fB-\fR.
63 The interpretation of the characters in an \fBelfedit\fR token depends on the
206 The core commands belong to an internal module named \fBsys\fR. All other
208 loads modules on demand, when a command that requires it is executed, or as the
211 specify commands from the \fBsys\fR module without including the \fBsys:\fR
213 from any other module, you must specify the full \fImodule\fR\fB:\fR\fIcmd\fR
321 Module search path
331 Included with every \fBelfedit\fR module is extensive online documentation for
348 \fBelfedit\fR, and on how to use the help system.
351 To obtain summary information for a module:
355 > help module
362 To obtain the full documentation for a specific command provided by a module:
366 > help module:command
373 Using the \fBdyn\fR module and \fBdyn:runpath\fR commands as examples:
385 help (\fBsys:help\fR) can be used to obtain help on itself:
394 .SS "Module Search Path"
395 \fBelfedit\fR modules are implemented as sharable objects which are loaded on
396 demand. When a module is required, \fBelfedit\fR searches a module path in
397 order to locate the sharable object that implements the module. The path is a
417 Expands to the 64-bit ISA. This is the same thing as \fB%i\fR for 64-bit
418 versions of \fBelfedit\fR, but expands to the empty string for 32-bit versions.
437 Root of file system tree holding the \fBelfedit\fR program, assuming that
438 \fBelfedit\fR is installed as \fBusr/bin/elfedit\fR within the tree. On a
439 standard system, this is simply the standard system root directory (\fB/\fR).
440 On a development system, where the copy of \fBelfedit\fR can be installed
456 The default module search path for \fBelfedit\fR is:
474 32-bit \fBelfedit\fR
483 64-bit \fBelfedit\fR (\fBsparc\fR)
492 64-bit \fBelfedit\fR (\fBx86\fR)
498 environment variable, or by using the \fB-L\fR command line option. If you
499 specify both, the \fB-L\fR option supersedes the environment variable.
505 \fB\fB-a\fR\fR
511 \fB-o\fR option. The default output style is the style used by the
514 terminals). Therefore, the \fB-a\fR option only has meaning when \fBelfedit\fR
515 is used in non-interactive contexts. To disable \fBautoprint\fR in an
530 \fB\fB-d\fR\fR
542 \fB\fB-e\fR \fIcmd\fR\fR
545 Specifies an edit command. Multiple \fB-e\fR options can be specified. If edit
546 commands are present on the command line, \fBelfedit\fR operates in batch mode.
555 \fB\fB-L\fR \fIpath\fR\fR
559 \fBModule Search Path\fR section of this manual page.
565 \fB\fB-o\fR \fBdefault\fR | \fBsimple\fR | \fBnum\fR\fR
570 using the set (\fBsys:set\fR) command, or by providing \fB-o\fR options to the
608 \fB\fB-r\fR\fR
611 Read-only mode. The input file is opened for read-only access, and the results
613 \fIoutfile\fR argument when \fB-r\fR is specified. Read-only mode is highly
635 allows executing commands from the \fBsys:\fR module. This mode is primarily to
646 The \fB-r\fR option can be used to open \fIinfile\fR for read-only access. This
657 is opened for read-only access, and the modified object contents are written to
662 When supported by the system, \fBelfedit\fR runs as a 64-bit application,
673 allows executing commands from the \fBsys\fR module. This mode is primarily to
678 If one or more \fB-e\fR options are specified, the commands they supply are
685 If no \fB-e\fR options are specified, \fBelfedit\fR reads commands from
734 elfedit -e 'dyn:runpath $ORIGIN/../lib'
741 The use of single quotes with the argument to the \fB-e\fR option is necessary
748 non-batch mode:
776 attributes of the running system to determine whether a given object is able to
777 be run by the current system. Programs that require abilities not available on
778 the system are prevented from running.
785 system capabilities at runtime. Such a program might have optimized code to use
788 compatibility mask prevents such a program from running on the older hardware.
802 elfedit -e 'cap:hw1 -and -cmp sse3' prog
818 % SHNUM=`elfedit -r -onum -e 'ehdr:e_shnum' /usr/bin/ls`
827 You might get a different value, depending on the version of Solaris and type
828 of machine that you are using. The \fB-r\fR option causes the file to be opened
829 read-only, allowing a user with ordinary access permissions to open the file,
830 and protecting against accidental damage to an important system executable. The
842 % TYPE=`elfedit -r -osimple -e 'sym:st_type unlink' /lib/libc.so`
855 Alters the default module search path. Module search paths are discussed in the
856 \fBModule Search Path\fR section of this manual page.
865 Suppresses the automatic execution of the 64-bit \fBelfedit\fR. By default, the
866 64-bit version of \fBelfedit\fR runs if the system is 64-bit capable.
885 Default directory for \fBelfedit\fR modules that are loaded on demand to supply
929 system. It offers the ability to examine and change nearly every piece of ELF
949 out on every ELF object. \fBelfedit\fR is constrained by the existing sections
968 % elfedit -r -e 'dyn:tag DT_SUNW_STRPAD' file
984 % elfedit -r -e 'dyn:runpath' file
996 % elfedit -r -e 'dyn:tag DT_NULL' file
1009 When an operation fails, the detailed information printed using the \fB-d\fR
1018 fields by identifying the module and looking for a command with the name of the