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!

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

For recent versions of GCC, this should work

strings - yourlib.so | grep GCC