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 foo.map
(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?