On 10/14/07, Brian D. Horn <Brian.Horn at sun.com> wrote:
>
> Yes.  The thing is that we hadn't been rebuilding the linker since we
> had it working properly
> for building the boot and kernel, since we were not up to application
> code.  When, recently,
> we started building application code (libc.so.1 and such) I found that
> there was a bug in the
> linker (ld).  I went to fix that bug and cam across this error.  It has
> to do with the -W0,globalstatic option, but
> I need to investigate a bit more to find out when and how this problem
> game into being.



Righto.  It was in the Makefile.master all along..
# When -g is used, the compiler globalizes static objects
# (gives them a unique prefix). Disable that.
CNOGLOBAL= -W0,-noglobal

# Direct the Sun Studio compiler to use a static globalization prefix based
on the
# name of the module rather than something unique. Otherwise, objects
# will not build deterministically, as subsequent compilations of identical
# source will yeild objects that always look different.
#
# In the same spirit, this will also remove the date from the N_OPT stab.
CGLOBALSTATIC= -W0,-xglobalstatic

I was missing CNOGLOBAL in CFLAGS (which may not be the correct place, but
moves me past that error and on to new ones :)  Learned something new: -g
forces global scope (which does make some sense).

Thanks for the tip.  I do realize it may still be an issue in general, so I
look forward to what you come up with...

Mark



-- 
------------------------------------------------------
Born to the false world, the wanderer,
Storyteller, The Pied Piper
On a quest for immortality
Gathering a troop to find the fantasy
-- Nightwish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/powerpc-discuss/attachments/20071014/3d9d64c2/attachment.html>

Reply via email to