A patch for default version and archive
H . J . Lu
hjl@valinux.com
Wed Nov 8 12:19:00 GMT 2000
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)
More information about the Binutils
mailing list