[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Common symbols cause load from archive
From: |
Ian Lance Taylor |
Subject: |
Re: Common symbols cause load from archive |
Date: |
28 Jun 2002 08:51:53 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Ian Dall <address@hidden> writes:
> What happens is that "glob" is a common symbol after assembling, but
> it causes glob.o to be loaded from libc.a, and then it gets resolved
> to an address in the text segment and a core dump results when it is
> assigned to.
>
> Is this behaviour correct? It seems to be as documented except that I
> think archives should probably only be searched to resolve undefined
> variables, not common variables.
That is how archives normally work, although perhaps there is a bug in
this target. Use the -M option to confirm that nothing else is
causing glob to be pulled in from libc.a.
Ian