Peeter Joot's (OLD) Blog.

Math, physics, perl, and programming obscurity.

A linker option to try out.

Posted by peeterjoot on October 21, 2010

Note to self:

Saw a linker .map file generated as a side effect of a bld today (some non-DB2 code) that was generated by:

g++ ... -Xlinker -Map -Xlinker

(linux, and the gnu-binutils linker).

I’ve used linker .map files on AIX countless times, and wished for the same in our linux builds (but didn’t think of looking for the option to generate something equivalent).

I want to try this out next time I have a link error where the unresolved symbol comes from one of the many static archives that we bundle into our product shared libs. Would this verbosity help with understanding the origin of the link error better?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: