[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] WCOWORK implementation : conclusions.



On Mon, 2005-07-18 at 16:48 -0700, Howard Chu wrote:

> Dynamic shared libs are no help if the newer library changes an API 
> incompatibly with the old one.
> 
> Another interesting approach would be to keep enough symbol table info 
> in statically linked apps to allow them to be relinked. That is, run a 
> linker command
> 	relink foo.app -lnewlib
> which replaces all the symbols in foo.app that appear in newlib with the 
> version from newlib. So you can keep your snappy static library load 
> times, but still take advantage of bugfixed libraries over the course of 
> time. The IBM linker does this on most of their operating systems (AIX, 
> OS/390, z/OS)... It requires an object format that records both the 
> address and the size of every symbol. They really have a lot of good 
> ideas in their dev tools, better than what SVR4/Sun/Linux have to offer.
> 

Hrmm... I like that.. And probably a nice easy implementation.
You could make that a part of the rpm postop too.

relink /bin/*:/usr/bin/* -lmintlib

Slick :)

Thanks,
Mark