Keywords: gcc, PPC, Power PC, powerpc-eabi-objdump, assembly, source, debug, ELF
When I dump the contents of the ELF with the command powerpc-eabi-objump -S <file_name>, I do not get the source intermixed with the assembly code. What is wrong?
There are two ways to work around this issue:
Solution 1
Add -gstabs to the compiler flags. This reverts to stabs based debugging, but also causes objdump to intermix source code.
Solution 2
Run object dump from the folder containing the source files.