This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Add support for link-time warning on DLL usage
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: Thorsten Glaser <x86 at ePost dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 10 Apr 2004 17:38:37 +0200
- Subject: Re: [PATCH] Add support for link-time warning on DLL usage
- References: <Pine.BSO.4.58.0404100132430.5965@herc.66h.42h.de>
Thorsten Glaser wrote:
> Hello all,
>
> the patch below adds support for emitting a link-time warning each
> time a DLL is used.
Wouldn't it be simpler to just remove offending shared libraries
from your system?
> We can already offer link-time warnings for used symbols (OpenBSD
> uses this for strcpy() for example;
What is this good for? For correct usage of strcpy(), it is annoying.
If the use of strcpy() is unwanted for some reason, you have to
search and change the source code anyway. If you want to find out
if the C library's strcpy() is used by some object, you have nm or
readelf or objdump. If the C compiler happens to use a builtin
strcpy(), the check will fail.
Thiemo