I have some compiled libraries i.e. shared library (*.so) on x86 Linux and I want to quickly determine whether they were compiled with debugging symbols (i.e with -g/debug option) or not. How to check it? Answer You can use the file command to see if a file is stripped. Basically, this means that the debugging symbols are there or not.
Tag: debug-symbols
How to debug problems in Linux kernel module `init()`?
I am using remote (k)gdb to debug a problem in a module that causes a panic when loaded e.g. when init() is called. The stack trace just shows that do_one_initcall(mod->init) causes the crash. In order to get the symbol file loaded in the gdb, I need to get the address of the module text section, and to get that I