[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] avr-objdump behaviour

From: E. Weddington
Subject: Re: [avr-gcc-list] avr-objdump behaviour
Date: Thu, 11 Nov 2004 12:53:06 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

gouy yann wrote:


my context is:
I compile several files from the same directory,
I link them
and finally, I extract the .lst from the .elf.

why for some files the C is mixed with the assembly?
why for others it is not, only the assembly is seen?

From the Binutils 2.15 user manual, on objdump



   Display source code intermixed with disassembly, if possible.
Implies |-d|.

Note the words, "if possible". When you use objdump, you are getting a disassembly from the ELF file, which is a binary format. I'm surprised you would even get *any* C source code from it. It's probably getting what little C source code it has from debugging information embedded in the ELF file. (As a side note, I wonder if you strip the ELF file [using avr-strip], if you don't get any C source code from avr-objdump?)

For more information as to why, it would be best to ask the developers on the binutils mailing list:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]