Archive | October, 2008

Digging Deeper into Weak Symbols

Following on from my last post, I thought I’d dig a bit deeper into GCC’s weak symbols and use the NM utility from GNU’s Binutils package to help understand a bit better how it works.

I probably don’t use the Binutils package as often as I should when debugging and thought this post would be a perfect opportunity to do so – for those that are unfamiliar with it, it’s a package that usually comes with your compiler and provides the ability to explore and manipulate the object code of various binaries. It consists of things like readelf, objdump, nm, etc – sound familiar?

Continue Reading →