[PATCH] Add support for link-time warning on DLL usage

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Sat Apr 10 21:53:00 GMT 2004


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



More information about the Binutils mailing list