Changeset da13982 in mainline for kernel/generic/include/symtab.h


Ignore:
Timestamp:
2023-10-26T15:20:07Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fbb42f
Parents:
d28bdbe
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 14:42:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 15:20:07)
Message:

Read symbol table from ELF sections

Instead of the currently broken data generated using genmap.py,
read the ELF symbol table for stack traces and symbol names.
In addition to that, prepare ground for accessing DWARF debug
sections.

Because neither .symtab, nor .debug_* sections are
normally part of the program image, these have to be provided
externally. Instead of the previous way of relinking kernel
to bake in the symbol data, we now only link kernel once
and the extra debug data is loaded as part of the initrd image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/symtab.h

    rd28bdbe rda13982  
    3636#define KERN_SYMTAB_H_
    3737
    38 #include <symtab_lookup.h>
    39 #include <console/chardev.h>
     38#include <typedefs.h>
    4039
    4140extern void symtab_print_search(const char *);
    4241extern const char *symtab_hints_enum(const char *, const char **, void **);
     42extern const char *symtab_fmt_name_lookup(uintptr_t);
     43extern errno_t symtab_addr_lookup(const char *, uintptr_t *);
     44extern const char *symtab_name_lookup(uintptr_t, uintptr_t *);
    4345
    4446#endif
Note: See TracChangeset for help on using the changeset viewer.