5.2. Using elfutils
To execute any of the tools that are part of elfutils, run the command as follows:
scl enable devtoolset-6 'tool [option...] file_name'
See Table 5.1, “Tools Included in elfutils for Red Hat Developer Toolset” for a list of tools that are distributed with elfutils. For example, to use the
eu-objdumptool to inspect an object file, type:
scl enable devtoolset-6 'eu-objdump [option...] object_file'
Note that you can execute any command using the
sclutility, causing it to be run with the Red Hat Developer Toolset binaries used in preference to the Red Hat Enterprise Linux system equivalent. This allows you to run a shell session with Red Hat Developer Toolset binary tools as default:
scl enable devtoolset-6 'bash'
To verify the version of elfutils you are using at any point, type the following at a shell prompt:
Red Hat Developer Toolset's
eu-objdumpexecutable path will begin with
/opt. Alternatively, you can use the following command to confirm that the version number matches that for Red Hat Developer Toolset