`Hiding' libc symbols
Terry Lambert
tlambert2 at mindspring.com
Mon May 5 21:36:41 PDT 2003
"Andrey A. Chernov" wrote:
> What produce less errors in application and libraries?
> a) Allow application to replace any standard function.
> b) Produce linker error on such attempts.
>
> Please also note that I not treat functions like err(), warn() etc. as
> standard, so namespace.h is right for them.
Probably you want to add an option to the linker to make it
treat weak symbols as strong, and *do not* turn it on by
default, and make it apply positionally, so that it can be
applied on a per-library basis by the ports maintainer. It
would be a much better approach than trying to relink, which,
after reading the code, I'm convinced would not work (my
previous suggestion).
-- Terry
More information about the freebsd-arch
mailing list