This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to lookup a symbol for vma using BFD?


"Dmitry Smirnov" <divis1969@gmail.com> writes:

(Please don't top-post.)

>> You need to include DWARF2 debugging info in your object files for this
>> work.  ie you need to have the "-g" switch present on gcc's command line
>> when you compile your object files.

> But let's assume I do not have such a possibility. I just need to know
> what is the name of the file that contains some address.

There is no way in general.  Source code file names do not propagate
to ordinary (stripped, -g debugging information-less) object files.


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]