This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Language-specific libraries and `gcc' driver
- To: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Subject: Re: Language-specific libraries and `gcc' driver
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Thu, 20 Jan 2000 18:57:26 -0600 (CST)
- cc: Mike Stump <mrs at windriver dot com>, gcc at gcc dot gnu dot org, peter at gerwinski dot de
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