This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: -z defs option


Ulrich Drepper <drepper@redhat.com> wrote:
>> Can we add a flag
>> to avoid -z defs for all shared libraries?
> 
> I've made some change so that if you define
> 
>   no-z-defs = yes
> 
> the option will never be used.  Please try it.

It works fine. Thanks a lot.
 
> But you should also be aware that the -z defs test is a good check for
> correctness and avoiding this option is not the best thing to do.  But I
> don't know the ABI well enough, maybe the undefined symbol cannot be
> avoided.

Sure. It might be better to add a new ld option to allow an exception
for -z defs something like --allow-shlib-undefined-sym SYMBOL.

Regards,
	kaz


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