This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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