User and Reference Guide

  • 2021.1
  • 12/04/2020
  • Public Content
Contents

Unable to Load Symbols from the .elf Binary File

Cause
The
.elf
file does not contain debug symbols.
Solution
First, you should analyze the
.elf
file to determine if the suggested cause is true in your case. To do analyze the file, you can use the
readelf
tool, which is a part of GNU* development utilities:
  1. Check the individual file information by running the following command:
    readelf -a <filename>
    In the command output, check if the
    .debug_str
    and
    .debug_info
    sections are present.
  2. Dump the
    .debug_str
    header and identify the memory address of the function you want to debug by running the following command:
    readelf --string-dump=.debug_str <elf_file>
IMPORTANT
: Make sure the system instruction pointer refers to the same memory address as defined in the output above.
If debug symbols are indeed missing in the
.elf
file, refer to the documentation for your toolchain and find how to enable debug symbols.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.