Hi,
Is there a way to list all object files on my machine, and then to locate all matches to a particular function?
Many thanks and best wishes! Sincerely, GT
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Globe Trotter wrote:
Hi,
Is there a way to list all object files on my machine, and then to locate all matches to a particular function?
Many thanks and best wishes!
define "object files." Most people mean the output of an assembler (or compiler), but I'm not sure that's what you mean.
Such files generally have names ending in ".o"
I suggest you write a little script like this:
#!/bin/bash echo $1 nm $1
Shall we call it "listem" and store it in ~/bin/
Don't forget "chmod +x ~/bin/listem"
Then: find <where you expect them> -type f -name *.o \ -exec ~/bin/listem {} ; \ >/tmp/listed
If you mean "shared object" then the suffix is .so, and there might be some .a files of interest.
Hi,
--- John Summerfied debian@herakles.homelinux.org wrote:
Globe Trotter wrote:
Hi,
Is there a way to list all object files on my machine, and then to locate
all
matches to a particular function?
Many thanks and best wishes!
define "object files." Most people mean the output of an assembler (or compiler), but I'm not sure that's what you mean.
Many thanks! That is exactly what I mean!
Such files generally have names ending in ".o"
I suggest you write a little script like this:
#!/bin/bash echo $1 nm $1
Shall we call it "listem" and store it in ~/bin/
Don't forget "chmod +x ~/bin/listem"
Then: find <where you expect them> -type f -name *.o \ -exec ~/bin/listem {} ; \ >/tmp/listed
If you mean "shared object" then the suffix is .so, and there might be some .a files of interest.
I assume for .so, I would have to use nm -D? Would there be any place else (other than .o, .so and .a files) that I could find them on the system?
Many thanks again! Best wishes!
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Sorry, I do not know what a .ko file is.
Best, Globe
--- Mike Klinke lsomike@futzin.com wrote:
On Wednesday 01 March 2006 17:25, Globe Trotter wrote:
Would there be any place else (other than .o, .so and .a files) that I could find them on the system?
Would you be interested in *.ko files?
Regards, Mike Klinke
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Globe Trotter wrote:
Sorry, I do not know what a .ko file is.
locate *.ko
locate /li*.ko | xargs rpm -qf | sort -u
Probably not.
Another question: while this does give me a list of all the functions in all the files, is it possible to get only the list of object files with the function in it?
Many thanks!
--- John Summerfied debian@herakles.homelinux.org wrote:
Globe Trotter wrote:
Hi,
Is there a way to list all object files on my machine, and then to locate
all
matches to a particular function?
Many thanks and best wishes!
define "object files." Most people mean the output of an assembler (or compiler), but I'm not sure that's what you mean.
Such files generally have names ending in ".o"
I suggest you write a little script like this:
#!/bin/bash echo $1 nm $1
Shall we call it "listem" and store it in ~/bin/
Don't forget "chmod +x ~/bin/listem"
Then: find <where you expect them> -type f -name *.o \ -exec ~/bin/listem {} ; \ >/tmp/listed
If you mean "shared object" then the suffix is .so, and there might be some .a files of interest.
--
Cheers John
-- spambait 1aaaaaaa@computerdatasafe.com.au Z1aaaaaaa@computerdatasafe.com.au Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
do not reply off-list
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Globe Trotter wrote:
Another question: while this does give me a list of all the functions in all the files, is it possible to get only the list of object files with the function in it?
Many thanks!
Learn to research: man -k search | less
The answer's in there somewhere.
Thanks, I knew that, actually. Just wondered if there was a more elegant way.
Best wishes!
--- John Summerfied debian@herakles.homelinux.org wrote:
Globe Trotter wrote:
Another question: while this does give me a list of all the functions in
all
the files, is it possible to get only the list of object files with the function in it?
Many thanks!
Learn to research: man -k search | less
The answer's in there somewhere.
--
Cheers John
-- spambait 1aaaaaaa@computerdatasafe.com.au Z1aaaaaaa@computerdatasafe.com.au Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
do not reply off-list
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Wednesday 01 March 2006 17:06, Globe Trotter wrote:
Is there a way to list all object files on my machine, and then to locate all matches to a particular function?
Just taking a stab at what you mean. How about:
man -k <function>
or
man -K <function>
for executable "objects".
How about:
grep -r <function> *
for most any "object" which contains the text string <function> (This is a recursive directory search).
Regards, Mike Klinke