This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: It is ok to have undefined hidden symbols in a .o file
- To: "H . J . Lu" <hjl at valinux dot com>
- Subject: Re: It is ok to have undefined hidden symbols in a .o file
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 05 Jun 2000 13:03:43 -0700
- Cc: loewis at informatik dot hu-berlin dot de, binutils at sourceware dot cygnus dot com
- References: <20000605125844.A22433@valinux.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
"H . J . Lu" <hjl@valinux.com> writes:
> Where there are
>
> 1. foo is undefined, hidden in bar.o
> 2. foo is defined in foo.o.
Yep, this must be possible.
> both
>
> # gcc -shared -o libfoo.so bar.o foo.o
> # gcc -shared -o libfoo.so foo.o bar.o
>
> should work. This patch fixes it. I'd like to check it in if it
> is ok with everyone.
Makes sense to me.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------