This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: A patch for default version and archive
On Wed, Nov 08, 2000 at 11:49:04AM -0800, Ulrich Drepper wrote:
> "H . J . Lu" <hjl@valinux.com> writes:
>
> > When we have default version in an archive, we fail to resolve the
> > reference with only one `@':
>
> You are completely destroying the concept. If no default version is
> defined the link is supposed to fail. This allows removing
> interfaces.
>
Maybe I missed something. Could you please tell me what is wrong with
my testcase? In my testcase,
# nm foo.o
00000000 T foo1
00000000 T foo@@GLIBC_2.0
00000000 t gcc2_compiled.
# nm test.o
U foo@GLIBC_2.0
00000000 t gcc2_compiled.
00000000 T main
# gcc test.o foo.o
works. But
# gcc test.o libfoo.a
doesn't. Why is there a difference?
--
H.J. Lu (hjl@gnu.org)