Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

4.1.6.12.2. More Complex nios2-elf-c++filt Example

The following example command line causes the display of all demangled function names in an entire file:
nios2-elf-strings <file>.elf | grep ^_Z | nios2-elf-c++filt -n

In this example, the nios2-elf-strings operation outputs all strings in the .elf file. This output is piped to a grep operation that identifies all strings beginning with _Z. (GCC always prepends mangled function names with _Z). The output of the grep command is piped to a nios2-elf-c++filt command. The result is a list of all demangled functions in a GCC C++ .elf file.