how to backtrace a shared library file (.so)


 
Thread Tools Search this Thread
Operating Systems Linux how to backtrace a shared library file (.so)
# 1  
Old 09-27-2008
how to backtrace a shared library file (.so)

I have a shared library file (.so) and I need to know some information
1. By which GCC version was this .so built?
2. Was this .so built in 32 bits mode or 64 bits mode

Any command / tools to backtrace such kind of information?

Thanks in advance!
# 2  
Old 09-27-2008
1) not sure how you determine that

2) use the file command to determine bit width

file yourlib.so

you should be able to use the GNU debugger - gdb to get backtrace data
# 3  
Old 09-28-2008
For recent versions of GCC, this should work
Code:
strings - yourlib.so | grep GCC

Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. HP-UX

Problem in Shared library file .sl on 64bit HP-UX 11.11

We are facing issue with shared library file, we are getting difference in content for same shared file for chatr command :confused: , below are the detail about *.sl file, even we are also getting difference in size of both file. can you please tell me what will be the issue for same. is my new... (1 Reply)
Discussion started by: amodkavi
1 Replies

2. UNIX for Dummies Questions & Answers

What programs access shared library file

I was curious how to tell which programs are accessing a file (libobjc.A.dylib) in /usr/lib This file seems to be the culprit in a bunch of Safari crashes, and I just wanted to know if and what other programs use it. Also, I was curious what a good way to find out what files are being written... (4 Replies)
Discussion started by: glev2005
4 Replies

3. AIX

How to debug a shared library(.so file) on AIX?

How to debug a shared library(.so file) on AIX? (1 Reply)
Discussion started by: AlbertGao
1 Replies
Login or Register to Ask a Question