The symbols are taken from the dynamic symbol table; you need the -rdynamic
option to gcc
, which makes it pass a flag to the linker which ensures that all symbols are placed in the table.
(See the Link Options page of the GCC manual, and / or the Backtraces page of the glibc manual.)
More Related Contents:
- How Can I debug a C program on Linux?
- How to solve “ptrace operation not permitted” when trying to attach GDB to a process?
- Cannot insert breakpoints. Addresses with low values
- How do I pass a command line argument while starting up GDB in Linux? [duplicate]
- How do I make this Linux program compile? [closed]
- Given an executable file, display its complete path [closed]
- Undefined reference to pthread_create in Linux
- what’s the differences between r and rb in fopen
- How to create a high resolution timer in Linux to measure program performance?
- What does malloc(0) return? [duplicate]
- What is the purpose of a zero length array in a struct? [duplicate]
- Detached vs. Joinable POSIX threads
- Set ALSA master volume from C code
- What is the Windows equivalent to the capabilities defined in sys/select.h and termios.h
- Convert a Static Library to a Shared Library?
- What is the difference between a Linux platform driver and normal device driver?
- Checking if a dir. entry returned by readdir is a directory, link or file. dent->d_type isn’t showing the type
- Why does forking my process cause the file to be read infinitely
- What does a dot before the variable name in struct mean?
- CPU cache inhibition
- Check if process exists given its pid
- How do I reimplement (or wrap) a syscall function on Linux?
- Executing shell script with system() returns 256. What does that mean?
- How to use SO_KEEPALIVE option properly to detect that the client at the other end is down?
- What can cause a “Resource temporarily unavailable” on sock send() command
- addr2line on kernel module
- How to read terminal’s input buffer immediately after keypress
- What is ‘:-!!’ in C?
- What is the difference between AF_INET and PF_INET in socket programming?
- Can you bind() and connect() both ends of a UDP connection