This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ELF and libg++


> 
> > 
> > Hi,
> > 
> > I have got the shared ELF libg++ working under i486-linuxelf. The
> > only problem is I have to link with libtermcap.a and libcurses.a
> > althought I don't use them. That is because CursesW.o requires
> > them. For the shared library, they must be linked in.
> > 
> > I am not sure to put CursesW.o in libg++.a is a good idea. Maybe
> > there should be a libcurses++.a.
> 
> On SVr4 there is a linker option to ignore unresolved externals. This
> solves the problem you describe above. Of course, if you write a prog that
> uses functions defined in CursesW.o you have to link it against libcurses.
> This technique is routine when linking X apps.
> 
> I don't use the gnu loader so I'm not sure if it has an equivalent option.
> May be a good thing to suggest to the bunutils crowd.

I am not sure GNU ld support that. Eric, can we tell d-linker to ignore
unresolved externals? How can we pass that from ld to d-linker?

-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com