This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Language-specific libraries and `gcc' driver


On Thu, 20 Jan 2000, Theodore Papadopoulo wrote:

> The compiler currently always emits a gcc2_compiled. symbol in the .o 
> file for gdb's use. I always wondered why this idea cannot be extended
> to add a new symbol (or modify this one, but gdb might not appreciate 
> that) in such a way that gcc used in link mode can automatically detect
> which library to use.

I actually played with this idea a while ago for the x86-win32 ports --
emit the needed libraries and some linker flags in .drectve section,
and then ld would read it and hopefully do the right thing. Never 
finished it however, but it's quite doable. Whether it's desirable or 
not is a different question. FYI, this is how MSVC manages the humongous 
mess of different libraries, thanks to the split universe with all the 
combinations of debug/non-debug/dll/static libraries, on windows boxes.

Collect2 also implements something similar, albeit for different purpose,
in the .rpo files.

Regards,
Mumit



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