This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: naming bounded pointer libraries
- To: greg at mcgary dot org
- Subject: Re: naming bounded pointer libraries
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 4 Aug 2000 13:40:27 -0700
- CC: libc-hacker at sourceware dot cygnus dot com, gcc at gcc dot gnu dot org, binutils at sourceware dot cygnus dot com
- References: <200008041842.LAA05151@kayak.mcgary.org>
Date: Fri, 4 Aug 2000 11:42:18 -0700
From: Greg McGary <greg@mcgary.org>
3) Drop the suffix and instead install special libraries in a subdir,
e.g. /usr/lib/libc.a (regular), /usr/lib/bp/libc.a (bounded),
/usr/lib/prof/libc.a (profiled), and so on for any lib. Now,
something still must be responsible for directing ld to prefer the
appropriate subdir. ...
3a) Gcc could do it in the specs by passing `-L' options which give
precedence to the specialized subdirs, also in this case gcc would
need to assume knowledge of where all the default library dirs
reside and could no longer assume ld knew where to find
everything. Any makefile that invokes ld directly would need to
do that job for itself. ...
gcc already does this for multilib stuff. I think you should consider
this option. Look for MULTILIB in the index of the gcc manual.
It is already quite difficult to invoke ld directly, rather than via
gcc. For example, you need to get the right dynamic linker. Don't
worry about that part of it.
Ian