Scott L. Burson wrote:
> Okay, I tried an experiment: I installed snv_101 in a virtual machine, then
> copied the following files from it to the same locations in my snv_86 system:
>
> /usr/bin/amd64/ld
> /lib/amd64/libld.so.4
> /lib/amd64/liblddbg.so.4
> /lib/amd64/libelf.so.1
>
> Linking the .so in question took much longer -- 18 minutes, up from 5 -- but
> when I looked in the build log I saw that it had emitted some 22MB of
> warnings, so I guess it's not happy with the .o files produced by GCC 4.1.2.
> (I guess that spitting out all those warnings was what took so long.)
>
> The warnings appear to all say something about "relocation against discarded
> COMDAT section". Do I need a newer GCC?
>
> -- Scott
I think you need a build with the fix for:
6763342 sloppy relocations need to get sloppier
which would be snv_104. Note that OpenSolaris 2008.11
does not have this fix, though I'm sure it will be available
from a repository at some point.
A newer gcc would also help, except that you'll probably be
bootstrapping it with an older one, and will hit this issue
then.
- Ali