What is __i686.get_pc_thunk.bx? Why do we need this call?

This call is used in position-independent code on x86. It loads the position of the code into the %ebx register, which allows global objects (which have a fixed offset from the code) to be accessed as an offset from that register. Position-independent code is code that can be loaded and executed, unmodified, at different addresses. … Read more

Does Tomcat load the same library file into memory twice if they are in two web apps?

As you can see here, Tomcat creates one class-loader per webapp on your server. Thus, if you have webapp1 and webapp2 that share the same library, then this library will be indeed loaded twice. You can eventually place this library in the common directory (tomcat-dir/common/lib) if it is shared by all webapps that run on … Read more

Determine target ISA extensions of binary file in Linux (library or executable)

The unix.linux file command is great for this. It can generally detect the target architecture and operating system for a given binary (and has been maintained on and off since 1973. wow!) Of course, if you’re not running under unix/linux – you’re a bit stuck. I’m currently trying to find a java based port that … Read more

How to list library dependencies of a non-native binary?

is there any way to get a list of the dynamically linked dependency for of a foreign binary You can list direct dependencies of a binary easily enough: readelf -d a.out | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] I know of no way to recursively continue this to get … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)