Listing source files with objdump

Bruce Dawson bruced@valvesoftware.com
Wed Jun 5 19:08:00 GMT 2013


I'll poke around and see if I can submit a patch. The actual coding is simple enough, but I may decide not to bother submitting just 'cause that always takes a while on a new project.

I do have access to the build system -- this is running on the build machine. The main value it has over the list of source files in the makefile is that it also includes any header files that were brought in, which may contain a significant amount of code.

For each file I then get the Perforce path and version information, which gives us a machine-neutral specifier for all of the files.

-----Original Message-----
From: nick clifton [mailto:nickc@redhat.com] 
Sent: Wednesday, June 05, 2013 3:23 AM
To: Bruce Dawson; 'binutils@sourceware.org'
Subject: Re: Listing source files with objdump

Hi Bruce,

> I want to get a list of all of the source files and header files used to create a particular shared object.

Presumably you do not have access to the build system that created the shared object in the first place ?

 > Does it seem worthwhile to add a new objdump command line option to  > just dump this information? I could see it being useful for others.
 > Perhaps -WS for Source.

Go for it. :-)

Cheers
   Nick



More information about the Binutils mailing list